JMP App( Set Name( "Application" ), Set Description( "An empty workspace for creating custom applications with one or more windows and scripts" ), Auto Launch( 1 ), Snap To Grid( 1 ), Show Grid( 1 ), Show Properties( 1 ), Show Sources( 1 ), Group By Category( 1 ), Dashboard Mode( 0 ), Parameters, Tables, Script(JSL Quote(// This script is executed when the application is run. // Named objects have been created for the application modules // (for example, "Module1") and the pre-defined object // "thisApplication" refers to the application object itself. // Variables and functions declared here are scoped to the // Application namespace. ) ), Allocate( Module1 = Plan( PreAllocate, Script(JSL Quote(// This script is executed when a new module instance is // created. The pre-defined object "thisModuleInstance" refers // to the instance object, but other objects such as boxes and // scripts have not yet been created. Variables declared here are // scoped to the ModuleInstance namespace. // This special function will receive parameters passed to CreateInstance() OnModuleLoad({}, ); thisModuleInstance << Create Objects; // After this point your module instance objects have been created // and can be referred to by name (for example, "Button1"). RunAnalysis = function({}, AnalysisSelected = AnalysisTypes << Get Selected; //show(AnalysisSelected); Error Text << Set Text(AnalysisSelected); ); ) ), Allocate( List1 = V List Box(); AnalysisTypes = Radio Box(); Error Text = Text Box(); Button1 = Button Box(); ), Organize( Reparent( List1( Button1 ) ); Reparent( List1( Error Text ) ); Reparent( List1( AnalysisTypes ) ); Relocate( List1( 0, 0 ) ); ), Initialize( List1 << Background Color( 2147483647 ); List1 << Border( {Left( 0 ), Top( 0 ), Right( 0 ), Bottom( 0 )} ); List1 << Enabled( 1 ); List1 << Horizontal Alignment( "Default" ); List1 << Margin( {Left( 0 ), Top( 0 ), Right( 0 ), Bottom( 0 )} ); List1 << Padding( {Left( 0 ), Top( 0 ), Right( 0 ), Bottom( 0 )} ); List1 << Text Color( 2147483647 ); List1 << Vertical Alignment( "Default" ); List1 << Visibility( "Visible" ); List1 << set horizontal( 0 ); AnalysisTypes << Background Color( 2147483647 ); AnalysisTypes << Border( {Left( 0 ), Top( 0 ), Right( 0 ), Bottom( 0 )} ); AnalysisTypes << Enabled( 1 ); AnalysisTypes << Horizontal Alignment( "Default" ); AnalysisTypes << Margin( {Left( 2 ), Top( 2 ), Right( 2 ), Bottom( 2 )} ); AnalysisTypes << Padding( {Left( 0 ), Top( 0 ), Right( 0 ), Bottom( 0 )} ); AnalysisTypes << Text Color( 2147483647 ); AnalysisTypes << Vertical Alignment( "Default" ); AnalysisTypes << Visibility( "Visible" ); AnalysisTypes << Set Items( {"Item1", "Item2"} ); AnalysisTypes << Set Min Size( 49, 28 ); AnalysisTypes << Set Max Size( 49, 28 ); AnalysisTypes << Set Auto Stretching( 0, 0 ); Error Text << Background Color( 2147483647 ); Error Text << Border( {Left( 0 ), Top( 0 ), Right( 0 ), Bottom( 0 )} ); Error Text << Enabled( 1 ); Error Text << Horizontal Alignment( "Default" ); Error Text << Margin( {Left( 0 ), Top( 0 ), Right( 0 ), Bottom( 0 )} ); Error Text << Padding( {Left( 0 ), Top( 0 ), Right( 0 ), Bottom( 0 )} ); Error Text << Text Color( 2147483647 ); Error Text << Vertical Alignment( "Default" ); Error Text << Visibility( "Visible" ); Error Text << Set Base Font( "Text" ); Error Text << Set Font Scale( 1 ); Error Text << Set Text( "Text1" ); Error Text << Bullet point( 0 ); Error Text << Font Color( 101 ); Error Text << Justify Text( "Left" ); Error Text << Rotate Text( "Horizontal" ); Error Text << Set Width( -1 ); Error Text << Set Wrap( 360 ); Error Text << Set Tip( "" ); Error Text << Set Min Size( 30, 16 ); Error Text << Set Max Size( 30, 16 ); Error Text << Set Auto Stretching( 0, 0 ); Button1 << Background Color( 2147483647 ); Button1 << Border( {Left( 0 ), Top( 0 ), Right( 0 ), Bottom( 0 )} ); Button1 << Enabled( 1 ); Button1 << Horizontal Alignment( "Default" ); Button1 << Margin( {Left( 2 ), Top( 2 ), Right( 2 ), Bottom( 2 )} ); Button1 << Padding( {Left( 0 ), Top( 0 ), Right( 0 ), Bottom( 0 )} ); Button1 << Text Color( 2147483647 ); Button1 << Vertical Alignment( "Default" ); Button1 << Visibility( "Visible" ); Button1 << Set Button Name( "Button1" ); Button1 << Style( "Normal" ); Button1 << Set( 0 ); Button1 << Set Icon( "" ); Button1 << Set Icon Location( "Right" ); Button1 << Set Function( RunAnalysis() ); Button1 << Set Min Size( 60, 19 ); Button1 << Set Max Size( 60, 19 ); Button1 << Set Auto Stretching( 0, 0 ); ) ) ), Initialize( Module1 << Auto Launch( 1 ); Module1 << Set Module Type( "Report" ); Module1 << Set Window Title( "^TABLENAME - ^APPNAME" ); Module1 << Set Min Size( 0, 0 ); Module1 << Set Max Size( 30000, 30000 ); Module1 << Set Auto Stretching( ., . ); ) )