<?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 Format List Box text by value that naturally shows up when using the By clause in JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Format-List-Box-text-by-value-that-naturally-shows-up-when-using/m-p/685259#M87122</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make an individual oneway chart based on the value in a given list.&amp;nbsp;I am able to do it in a for loop using where column == value in list and so on. The issue is that when I use a where clause I get this TextBox in the Listbox above the chart that I am unable to change the text of through JSL. I am able to change it when I right click and go into the properties but I want this to happen through code. Any help would be appreciated as this way doesn't show what the data is and can be misleading without me being able to change the text. The correct way happens when I use a generic By clause for the column but want that same look through code. Please look at the examples below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA/Big Class.jmp");

types = {"F", "M"};

ow = Oneway(
    Y( :height ),  // Dependent variable
    X( :age ),     // Factor variable
    Where(:sex == types[1])
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;produces:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neelsrejan_0-1696908094877.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57323iE400AC632976CDC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neelsrejan_0-1696908094877.png" alt="neelsrejan_0-1696908094877.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like this part to say :Sex == "F" so if the graph is in a report that it shows that it has been subsetted by "F" as right now it does not give such information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA/Big Class.jmp");

ow = Oneway(
    Y( :height ),  // Dependent variable
    X( :age ),     // Factor variable
    By(:sex)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neelsrejan_1-1696908236239.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57324iA49ED52812B0A496/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neelsrejan_1-1696908236239.png" alt="neelsrejan_1-1696908236239.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I know the for loop will give me "M" but how can I get the same details with sex=F onto the first one by using a where clause.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance and any help would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2023 03:25:11 GMT</pubDate>
    <dc:creator>neelsrejan</dc:creator>
    <dc:date>2023-10-10T03:25:11Z</dc:date>
    <item>
      <title>Format List Box text by value that naturally shows up when using the By clause in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Format-List-Box-text-by-value-that-naturally-shows-up-when-using/m-p/685259#M87122</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make an individual oneway chart based on the value in a given list.&amp;nbsp;I am able to do it in a for loop using where column == value in list and so on. The issue is that when I use a where clause I get this TextBox in the Listbox above the chart that I am unable to change the text of through JSL. I am able to change it when I right click and go into the properties but I want this to happen through code. Any help would be appreciated as this way doesn't show what the data is and can be misleading without me being able to change the text. The correct way happens when I use a generic By clause for the column but want that same look through code. Please look at the examples below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA/Big Class.jmp");

types = {"F", "M"};

ow = Oneway(
    Y( :height ),  // Dependent variable
    X( :age ),     // Factor variable
    Where(:sex == types[1])
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;produces:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neelsrejan_0-1696908094877.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57323iE400AC632976CDC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neelsrejan_0-1696908094877.png" alt="neelsrejan_0-1696908094877.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like this part to say :Sex == "F" so if the graph is in a report that it shows that it has been subsetted by "F" as right now it does not give such information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA/Big Class.jmp");

ow = Oneway(
    Y( :height ),  // Dependent variable
    X( :age ),     // Factor variable
    By(:sex)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neelsrejan_1-1696908236239.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57324iA49ED52812B0A496/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neelsrejan_1-1696908236239.png" alt="neelsrejan_1-1696908236239.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I know the for loop will give me "M" but how can I get the same details with sex=F onto the first one by using a where clause.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance and any help would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 03:25:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Format-List-Box-text-by-value-that-naturally-shows-up-when-using/m-p/685259#M87122</guid>
      <dc:creator>neelsrejan</dc:creator>
      <dc:date>2023-10-10T03:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Format List Box text by value that naturally shows up when using the By clause in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Format-List-Box-text-by-value-that-naturally-shows-up-when-using/m-p/685281#M87124</link>
      <description>&lt;P&gt;What needs to be done is to fully expand what is passed to JMP, so that when you pass the Oneway to JMP, there are not expression evaluations that need to be done.&lt;/P&gt;
&lt;P&gt;Here is one way to do it:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1696910099546.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57326iE4CC165D07CB9504/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1696910099546.png" alt="txnelson_0-1696910099546.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

types = {"F", "M"};

Eval(
	Substitute(
			Expr(
				ow =
				Oneway(
					Y( :height ),  // Dependent variable
					X( :age ),     // Factor variable
					Where( :sex == _types_ )
				)
			),
		Expr( _types_ ), types[1]
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Oct 2023 03:55:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Format-List-Box-text-by-value-that-naturally-shows-up-when-using/m-p/685281#M87124</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-10-10T03:55:32Z</dc:date>
    </item>
  </channel>
</rss>

