cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
SDF1
Super User

JSL how to change size of either panel box or global data filter

Hi All,

 

  I'm working on some JSL where I generate a global data filter (not local to a single platform), and this filter resides within a panel box.

 

  The issue I'm having is that due to the many columns in my data table, the data filter shows up with its default size settings, and it's much larger than I'd like. Using the Semiconductor Capability.jmp file, it looks something like this (default):

SDF1_0-1703082218526.png

  But, I'd really like it to show up in a size like this (ideally modified via JSL):

SDF1_1-1703082266805.png

  I was thinking of trying to force it via the list box NLines() command by accessing the Tree structure, but that didn't work. I also tried setting the height of the panel box or data filter platform using <<Height(), and that doesn't work either. Also tried the <<Set Max Size command for the DisplayBox, but that doesn't work.

 

  Is there a way to force the Data Filter Outline Box or Panel Box that it resides in (in my script) to be a certain size?

 

The code I'm using is something like this:

GDFLogic = V List Box( dt << Data Filter );
GDFPanelBox = Panel Box( "Global Data Filter", GDFLogic );

  The GDFLogic variable references the data filter wrapped in a VList Box(), and then the GDFPanelBox references back to the display box of GDFLogic. The PanelBox is within a new window that pops up when you run the JSL.

 

  So far, I none of the options I've tried have worked out, and even manually resizing the global data filter and then trying to save the script to a script window doesn't provide any resize code that you could use or understand how to resize the data filter list box.

 

  Hopefully this description makes sense. Thanks for any help and input on solving this.

 

Thanks!,

DS

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: JSL how to change size of either panel box or global data filter

This might work on some level

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

nw = New Window("",
	global_filter = dt << Data Filter(Location({1096, 73}));	
);

lbb = nw << XPath("//ListBoxBox");
lbb << Set N Lines(5);

Data Filters have very messy structure and sometimes manipulating how they look can be quite difficult but in this case getting reference to listboxbox seems to work

jthi_0-1703083591821.png

 

Also options what you have available will depend on what you are doing.

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: JSL how to change size of either panel box or global data filter

This might work on some level

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

nw = New Window("",
	global_filter = dt << Data Filter(Location({1096, 73}));	
);

lbb = nw << XPath("//ListBoxBox");
lbb << Set N Lines(5);

Data Filters have very messy structure and sometimes manipulating how they look can be quite difficult but in this case getting reference to listboxbox seems to work

jthi_0-1703083591821.png

 

Also options what you have available will depend on what you are doing.

-Jarmo
SDF1
Super User

Re: JSL how to change size of either panel box or global data filter

Hi @jthi ,

 

  Awesome, thanks for the quick reply and solution! Yes, accessing the ListBoxBox worked -- I had tried doing that through looking at the tree structure, but I must have been accessing an incorrect layer in the tree or nothing at all. I really need to get better with how to use XPath because that makes accessing the different layers so much easier. In this case, I simply wanted fewer lines in the listboxbox for aesthetic reasons.

 

Thanks!,

DS