Hello,
is there a way to create a place holder variable via array that can be substituted into the distribution report layer syntax? The code I have just loops the distribution giving me 10 windows with 10 graphs each with no frame adjustments. I want 1 window with 10 graphs that have had the frame size adjusted.
My Code
/*Run Analyte Array*/
analyteArr = Associative Array(:Analyte) << Get Keys;
For( eachAnalyte = 1, eachAnalyte <= N Items( analyteArr ), eachAnalyte++,
/*Slope Distribution*/
Current Data Table (dtmain);
dtmain << Distribution(
Automatic Recalc( 1 ),
SendToByGroup( {:Analyte == analyteArr[eachAnalyte]} ),
SendToByGroup(
{:Analyte == analyteArr[eachAnalyte]},
Continuous Distribution( Column( :Slope ), Vertical( 0 ) )
),
By( :Analyte ),
SendToByGroup(
{:Analyte == analyteArr[eachAnalyte]},
SendToReport(
Dispatch(
{"Distributions Analyte=" || analyteArr[eachAnalyte], "Slope"},
"Distrib Outlier Box",
FrameBox,
{Frame Size( 550, 50 )}
),
Dispatch(
{"Distributions Analyte=" || analyteArr[eachAnalyte], "Slope"},
"Distrib Histogram",
FrameBox,
{Frame Size( 550, 325 )}
)
)
)
)
);