Subscribe Bookmark RSS Feed

HTML5: how to set column width, how to wrap text to specified px

saitcopuroglu

Community Trekker

Joined:

Sep 29, 2014

Dear Community,

 

Working a lot with interactive html output, attached file has colums which are much wider than needed and the column named "text" needs wrapping (too long).  Could I do that with JSL? 

Screen Shot 2017-06-20 at 22.47.42.png

3 REPLIES
txnelson

Super User

Joined:

Jun 22, 2012

I am not aware of how to set the cell width for a character column, however, you can set the cell height, which effectively will wrap the cell values.

Jim
markbailey

Staff

Joined:

Jun 23, 2011

Could you use the Set Field Width or Set Display Width data column messages in this case?

Learn it once, use it forever!
saitcopuroglu

Community Trekker

Joined:

Sep 29, 2014

This is an ongoing question for me since 2014 and till today I could not find a solution.

https://community.jmp.com/t5/Discussions/command-line-for-html5-CSS-wrapping-the-table-to-screen-wid...

I wish I could set the CSS commands inside JMP Settings so I could control the html output (table style, background color, fonts.... these three I can do after exporting the html file and later editing the CSS but setting wrap width and setting columns to the width of the data, I could not find....

 

How could I impement a data column message in a JSL?

And how do I set the column height?

The script for the table box is:

 

nw = New Window( "ALL COMMENTS",

     Table Box(

        Data Table Col Box( :QUESTION ),

        Data Table Col Box( :Text ),

        Data Table Col Box( :CInDate ),

        Data Table Col Box( :COutDate ),

        Data Table Col Box( :Lastname ),

        Data Table Col Box( :Firstname ),

        Data Table Col Box( :COUNTRY ),

        Data Table Col Box( :Agency ),

        Data Table Col Box( :Room ),

        Data Table Col Box( :RoomType ),

        Data Table Col Box( :EntryId )

    )

);

 

Many thanks in advance