Choose Language Hide Translation Bar
Highlighted
Shlomi
Level I

how to create 2 text lines in one table cell

Hello

I wolud like to write into one table cell long string. Is there any option to write the string in 2 lines and put it into same cell (similar to Alt+enter in excel)?

Thanks,  

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
txnelson
Super User

Re: how to create 2 text lines in one table cell

Here is an example, taken directly from 

     Help==>Scripting Index

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Set Cell Height( 20 );
Jim

View solution in original post

12 REPLIES 12
Highlighted
txnelson
Super User

Re: how to create 2 text lines in one table cell

JMP does not have such an option.  The row height can be changed, which will allow long strings to wrap within a cell, however, when you change one rows height, all rows will be changed to the same height.

Jim
Highlighted
Shlomi
Level I

Re: how to create 2 text lines in one table cell

Thanks a lot 

Highlighted
ian_jmp
Staff

Re: how to create 2 text lines in one table cell

Perhaps you could put the escape seequence '\!N" in your text?

dt = New Table( "Double Height",
				Add Rows( 1 ),
				New Column( "Column 1", Character, Nominal)
			);

Column(dt, "Column 1")[1] = "The quick\!Nbrown fox";
Highlighted
Shlomi
Level I

Re: how to create 2 text lines in one table cell

This one remoce the second part of the string 

Capture.PNG

 

Thanks,

 

Highlighted
ian_jmp
Staff

Re: how to create 2 text lines in one table cell

Increase the cell height by dragging:

Screen Shot 2017-11-08 at 14.40.50.png

Highlighted
Shlomi
Level I

Re: how to create 2 text lines in one table cell

I am using JMP11 with windows , and does not success to change the hight of the cell.

Is there a JSL code to change the cell height ?

 

Thanks,

Highlighted
txnelson
Super User

Re: how to create 2 text lines in one table cell

You will need to upgrade to get the cell height capability

Jim
Highlighted
Shlomi
Level I

Re: how to create 2 text lines in one table cell

Is there jsl splrict to do it in JMP12 or 13 ?

 

Thanks,

Highlighted
txnelson
Super User

Re: how to create 2 text lines in one table cell

The Cell Height() setting for JSL was first implemented in JMP 12, therefore, you can use JSL to set it.

Jim
Article Labels

    There are no labels assigned to this post.