I am trying to construct a 2D-matrix with 2 nested FOR-loops used in the mouse over hover labels (Graph builder -> Hover Label Editor -> Graphlet).
I provide here a simplified example for 2*2 matrix.
hlb = H List Box();
vlb = V List Box();
For (row=1, row<=2, row++,
For (col=1, col<=2, col++,
hlb << append(Text Box("Row: "|| char(row) ||", Col: "|| char(col) ))
);
vlb << append(hlb);
);
vlb << get picture;
Script above results to wrong output:
To get correct outcome, I need somehow reset the H List Box. However, if I add hlb << Set Items({}); like below, the outcome is very same as above (ie. not correct).
hlb = H List Box();
vlb = V List Box();
For (row=1, row<=2, row++,
For (col=1, col<=2, col++,
hlb << append(Text Box("Row: "|| char(row) ||", Col: "|| char(col) ))
);
vlb << append(hlb);
hlb << Set Items({});
);
vlb << get picture;
I also tried to delete and recreate the H List Box as below. This does not work either as it deletes the H List Box object already fed in to V List Box
hlb = H List Box();
vlb = V List Box();
For (row=1, row<=2, row++,
For (col=1, col<=2, col++,
hlb << append(Text Box("Row: "|| char(row) ||", Col: "|| char(col) ))
);
vlb << append(hlb);
hlb << Delete;
hlb = H List Box();
);
vlb << get picture;
Any further advices? My JMP version is 16.2
Thanks;
Janne