Subscribe Bookmark RSS Feed

Report() changing size and removing elements

agonzales2021

Contributor

Joined:

Jun 23, 2017

excerpt:

FCC_Tab = Tab Page Box(
"FCC-k",
Lineup Box( N Col( 3 ),
Lineup Box(N Col(1),
FCC_Total( Prod_id );
//Eval( FCC_lims[1] ),
kk = Report( Eval( FCC_lims[1] ) )[axisbox( 3 )];
kk << Min( slidelow );
sb2 = range slider box(
-0.5,
26.5,
slidelow,
slidehigh,
(
kk << Min( slidelow );
kk << Max( slidehigh );
ss << Min( slidelow );
ss << Max( slidehigh );
pp << Min( slidelow );
pp << Max( slidehigh );
rr << Min( slidelow );
rr << Max( slidehigh );
);
),
FCCk_Total( Prod_id , "_FCC_Final" ),
ffs=Eval(FCC_lims[2]),
hh=button box("Top 26 DOI by WW SUMMARY",
temptax = Data Table(Top_Products[Prod_id]||" FCC-k by WW"||"_FCC_Final") << New Data View();
),
),
classlinbox = Lineup Box(N Col(1),
If(Is empty(rb_FCCclass), rb_FCCclass=1);
FCCk_Classes( Prod_id, rb_FCCclass, "_FCC_Final" );
ss = Report( Eval( FCC_lims[3] ) )[axisbox( 1 )];
ss << Min( slidelow );
pp = Report( Eval( FCC_lims[4] ) )[axisbox( 1 )];
pp << Min( slidelow );
rr = Report( Eval( FCC_lims[5] ) )[axisbox( 1 )];
rr << Min( slidelow );
),
//rb_FCC = Lineup Box(N Col(1),
rb_3FC = Radio Box({ "Top 3", "All" }, rb_FCCclass = rb_3FC <<get()
);
//);
)
)

 Why does report remove certain elements of the plot and change the size?

1 REPLY
txnelson

Super User

Joined:

Jun 22, 2012

The Report() function only returns the reference to the Display Tree from the output from a Platform or a window created in a script.  So by itself, it does not change anything.  However, a piece of code such as

ss = Report( Eval( FCC_lims[3] ) )[axisbox( 1 )];
ss << Min( slidelow );

creates a reference to an Axis in the Display Tree referenced by the 3rd element in the list FCC_lims, and then sets the minimum value of the Axis to whatever the value of slidelow is.  And slidelow is set by the Slider Range Box referenced by SB2.  Moving of the slider, will change the minimum value of the Axis.

 

Is this what your question is about?

Jim