you can use Eval(Eval Expr()).
//an example of how the window could appear
report_win = New Window( "test",
content_VLB = V List Box(),
Scroll box (Size(20,1500)),
Outline Box( "Example: Distribution" ),
Scroll box (Size(20,1500)),
Outline Box( "Example: Multivariate" )
);
//example of the variable that would store the name of scripts that created the OBs
script_new = {"Distribution", "Multivariate", "Profiler"};
//the for loop to correctly setup the expression with the correct section name and add a button
For( i = 1, i <= N Items( script_new ), i++,
buttonclickexpr = Expr(
report_win << Scroll Window( report_win[sectionName ] );
Caption(sectionName)
);
Substitute Into( buttonclickexpr, Expr( sectionName ), Char( "Example: " || script_new[i] ) );
Write( buttonclickexpr );
// Add a button to the list
Eval (Eval Expr(content_VLB << append( Button Box( "Go to " || script_new[i], Expr(Name Expr(buttonclickexpr)))) ));
);
In OutlineBox("tag"), the tag is the HelperKey of the OutlineBox. To access the Outline box via the title, you can directly use the title [without OutlineBox()).
Details can be found in Re: Expression Handling in JMP: Tipps and Trapdoors
| use |
|
| Name Expr() |
... to retrieve the expression that is stored in the name buttonclickexpr |
| Expr() |
... to mark the code - such that Eval Expr() can find it |
| Eval Expr() |
... to find Expr() and evaluate it |
| Eval() |
... to evaluate the whole expression after the previous steps. |