Subscribe Bookmark RSS Feed

Set Cell Size with JSL

robot

Community Trekker

Joined:

Feb 27, 2012

I am trying to create an expression column in JMP12 that will hold images grabbed from a URL.  It is possible to define the cell size (width and height) using JSL?

I have not gotten the width() property to work for an Expression column, but I find I can set the column width by first creating the column as a Character, and then changing the data type to Expression:

dt << New Column( "Image", Character, "Nominal", Width( 20 ), Formula( New Image( Open( "URL" ) ) ) );

Column( "Image" ) << Data Type( Expression );

How can I define the row height with JSL?

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Cell height applies to all rows of the data table, and Display Width applies to a specific column.

dt = current data table();

w = :Height << Get Display Width;

:Height << Set Display Width( 2 * w );

ht = dt << Get Cell Height;

dt << set cell height(2*ht);

The above JSL will change the display width of height to twice its original width,

and the rows height to twice its original height.


2 REPLIES
Solution

Cell height applies to all rows of the data table, and Display Width applies to a specific column.

dt = current data table();

w = :Height << Get Display Width;

:Height << Set Display Width( 2 * w );

ht = dt << Get Cell Height;

dt << set cell height(2*ht);

The above JSL will change the display width of height to twice its original width,

and the rows height to twice its original height.


robot

Community Trekker

Joined:

Feb 27, 2012

Thanks ChungWei.  I missed that function.