Scripting Guide > Scripting Platforms > Execute Embedded Red Triangle Options
发布日期: 11/15/2021

Execute Embedded Red Triangle Options

In addition to the red triangle menu at the top of a report, some report windows contain embedded red triangle menus. These appear when you select an option that has sub-options, such as profilers. To execute options in embedded red triangle menus, use the Get Scriptable Object message. The following example creates a Life Distribution report then turns off the Confidence Intervals option in the Hazard Profiler red triangle menu:

dt = Open( "$SAMPLE_DATA/Reliability/Fan.jmp" );
 

// create a Life Distribution report with a lognormal distribution

obj = dt << Life Distribution(
       Y( :Time ),
       Censor( :Censor ),
       << Fit Lognormal
);
 

// get a reference to the Hazard Profiler red triangle menu

haz_prof = ( report( obj )[ "Hazard Profiler" ] << Get Scriptable Object);
 
// turn off confidence intervals in the Hazard Profiler
haz_prof << Confidence Intervals( 0 );
需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).