<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Set Width / Set Wrap in a data table box column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Set-Width-Set-Wrap-in-a-data-table-box-column/m-p/812451#M99349</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table that I'd like to display in a window using a table box. The problem is that some of the columns in this table are very wide (because they contain very long text values) and the user has to scroll horizontally to see the whole table.&lt;/P&gt;&lt;P&gt;I've seen that I can apply Set width normally to my column, but that doesn't change anything. Ideally I'd like to apply a set wrap too so that the text comes back on the line and I can adjust the width as I like without losing any information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone had this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; New Column( "Long set",
	character,
	"Nominal",
	&amp;lt;&amp;lt;Set Each Value( "loooooooooooooooooooooooooooooooooooooooooooooooong teeeeeeeeeeeeeeeeeext" )
);

New Window( "Example", Data Table Box( dt ) );

Window("Example")[DataTableColBox(6)] &amp;lt;&amp;lt; set width(150)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 13 Nov 2024 11:24:15 GMT</pubDate>
    <dc:creator>SophieCuvillier</dc:creator>
    <dc:date>2024-11-13T11:24:15Z</dc:date>
    <item>
      <title>Set Width / Set Wrap in a data table box column</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Width-Set-Wrap-in-a-data-table-box-column/m-p/812451#M99349</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table that I'd like to display in a window using a table box. The problem is that some of the columns in this table are very wide (because they contain very long text values) and the user has to scroll horizontally to see the whole table.&lt;/P&gt;&lt;P&gt;I've seen that I can apply Set width normally to my column, but that doesn't change anything. Ideally I'd like to apply a set wrap too so that the text comes back on the line and I can adjust the width as I like without losing any information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone had this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; New Column( "Long set",
	character,
	"Nominal",
	&amp;lt;&amp;lt;Set Each Value( "loooooooooooooooooooooooooooooooooooooooooooooooong teeeeeeeeeeeeeeeeeext" )
);

New Window( "Example", Data Table Box( dt ) );

Window("Example")[DataTableColBox(6)] &amp;lt;&amp;lt; set width(150)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Nov 2024 11:24:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Width-Set-Wrap-in-a-data-table-box-column/m-p/812451#M99349</guid>
      <dc:creator>SophieCuvillier</dc:creator>
      <dc:date>2024-11-13T11:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Width / Set Wrap in a data table box column</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Width-Set-Wrap-in-a-data-table-box-column/m-p/812640#M99350</link>
      <description>&lt;P&gt;I haven't seen a better solution than in &lt;A href="https://community.jmp.com/t5/Discussions/How-to-Set-Cell-Height-or-Text-Wrapping-in-a-Table-Box/m-p/42569?search-action-id=74515263763&amp;amp;search-result-uid=42569" target="_blank" rel="noopener"&gt;this post&lt;/A&gt;.&amp;nbsp; Surprising we still don't have the &amp;lt;&amp;lt;Set Width ability.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; New Column( "Long set", character, Set Each Value( "loooooooooooooooooooooooooooooooooooooooooooooooong teeeeeeeeeeeeeeeeeext" ) );
lsvals = Transform Each( {v, i}, dt:Long set &amp;lt;&amp;lt; Get Values, Text Box( v, &amp;lt;&amp;lt;Set Wrap( 150 ) ) );
New Window( "Example",
	Table Box(
		String Col Box( "name", :name &amp;lt;&amp;lt; Get Values ),
		Number Col Box( "age", :age &amp;lt;&amp;lt; Get Values ),
		String Col Box( "sex", :sex &amp;lt;&amp;lt; Get Values ),
		Number Col Box( "height", :height &amp;lt;&amp;lt; Get Values ),
		Number Col Box( "weight", :weight &amp;lt;&amp;lt; Get Values ),
		Col Box( "Long set" )
	)
);
For Each( {v, i}, lsvals, Get Window( "Example" )[Col Box( 1 )] &amp;lt;&amp;lt; Append( v ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Nov 2024 13:43:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Width-Set-Wrap-in-a-data-table-box-column/m-p/812640#M99350</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2024-11-13T13:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Width / Set Wrap in a data table box column</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Width-Set-Wrap-in-a-data-table-box-column/m-p/813671#M99512</link>
      <description>&lt;P&gt;Thank you very much ! I will add the proposal of set width to the wishlist if it does not already exist&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 08:20:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Width-Set-Wrap-in-a-data-table-box-column/m-p/813671#M99512</guid>
      <dc:creator>SophieCuvillier</dc:creator>
      <dc:date>2024-11-18T08:20:31Z</dc:date>
    </item>
  </channel>
</rss>

