[Filter: smut] jthi's post body matched "cum", board "discussions".
Post Subject: Re: Scripting help for Table Box() within a List Box()
Post Body:
For item 1:
I would guess there is some other / better way to do this, but I found << Lower and << Upper (requires Lower to be specified) messages. With << Lower you could get first values from the Cumulative Column and then set those to Plot Col Box with Lower
pcb << Lower(ncb << get as matrix);

With your code it would look something like this (add references and use those):
View more...
Names Default To Here( 1 );
PC_dt = Current Data Table();
PC_n = {};
PC_eigv = {};
PC_per = {};
PC_cump = {};
For( i = 1, i <= N Rows( PC_dt ), i++,
Insert Into( PC_n, PC_dt:"Number"n[i] );
Insert Into( PC_eigv, Round( PC_dt:"Eigenvalue"n[i], 5 ) );
Insert Into( PC_per, Round( PC_dt:"Percent"n[i], 5 ) );
Insert Into( PC_cump, Round( PC_dt:"Cum Percent"n[i], 5 ) );
);
PC_Rpt_win = New Window( "PC Results",
Outline Box( "Eigenvalues & cumulative Percent",
//List Box(
//List Box(
Table Box(
Number Col Box( "Number", Eval List( PC_n ) ),
Number Col Box( "Eigenvalue", Eval List( PC_eigv ), <<Set Format("Fixed Dec", 6,6) ),
Number Col Box( "Percent", Eval List( PC_per ), <<Set Format("Fixed Dec", 6,6) ),
pcb = Plot Col Box( "", Eval List( PC_per ), <<Set Scale(0,100, "Percent") ),
ncb = Number Col Box( "cumulative Percent", Eval List( PC_cump ), <<Set Format("Fixed Dec", 6,6) )
)
//)
//)
)
);
wait(2);
pcb << Lower(ncb << get as matrix);
For getting values:
Sometimes it might be enough to use Make into data table (depending on platform and if you are using By variable):

and then checking from the resulting table the table script:


Sometimes that gives quite quick way to get references to correct Display Boxes.
Body text "Cum" matched filter pattern "cum".
Post by User[id=14366,login=jthi] was rejected for the following end-user facing error(s):
- Your post has been changed because invalid HTML was found in the message body. The invalid HTML has been removed. Please review the message and submit the message when you are satisfied.