<?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 Re: Is it possible to dynamically update &amp;quot;graph title&amp;quot; based item selection in local data filter (including multiple selections)? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/640039#M83750</link>
    <description>&lt;P&gt;Something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

gb = Graph Builder(

	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	Local Data Filter( Conditional, Add Filter( columns( :age ) ) )
);

ldf = Current Report()["Local Data Filter"] &amp;lt;&amp;lt; get scriptable object;

changeTitle = Function( {this},
	print(this);
	ldfText = Regex(ldf &amp;lt;&amp;lt; get where clause(),"Select Where\((.+)\)","\1");
	(Report( gb ) &amp;lt;&amp;lt; XPath( "//TextEditBox" ))[1] &amp;lt;&amp;lt; Set Text( ldfText );
);
fsh = ldf &amp;lt;&amp;lt; Make Filter Change Handler(
	changeTitle();
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;edit:&lt;BR /&gt;final (?) version tackling special more cases of Where clauses:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ldfText = Regex(ldf &amp;lt;&amp;lt; get where clause(),"(:age == .*?)\)","\1");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2023 10:44:19 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-06-23T10:44:19Z</dc:date>
    <item>
      <title>Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/639951#M83745</link>
      <description>&lt;P&gt;I use the following to display "my text" at the top of my charts.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Dispatch( {}, "graph title", TextEditBox, {Set Text( "my text" )} )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, I would like to have the item(s) selected in the local data filter to be displayed in the graph title as I select them (perhaps multiple sections as comma delimited?).&lt;/P&gt;&lt;P&gt;How to achieve this in JSL?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:11:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/639951#M83745</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-06-09T16:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/640025#M83749</link>
      <description>&lt;P&gt;The approach you can take is to add to the Local Data Filter, a Change Handler (Make Filter Change Handler), that when the filter changes, it captures the Where Clause(Get where clause) and then takes that result and applies it to the Title in the Graph's title(set text).&lt;/P&gt;
&lt;P&gt;The documentation on how to manipulate the output can be found in the Scripting Guide section on Display Trees.&amp;nbsp; This documentation is available in the JMP Documentation Library, available under the Help pull down menu.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 17:04:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/640025#M83749</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-06-07T17:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/640039#M83750</link>
      <description>&lt;P&gt;Something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

gb = Graph Builder(

	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	Local Data Filter( Conditional, Add Filter( columns( :age ) ) )
);

ldf = Current Report()["Local Data Filter"] &amp;lt;&amp;lt; get scriptable object;

changeTitle = Function( {this},
	print(this);
	ldfText = Regex(ldf &amp;lt;&amp;lt; get where clause(),"Select Where\((.+)\)","\1");
	(Report( gb ) &amp;lt;&amp;lt; XPath( "//TextEditBox" ))[1] &amp;lt;&amp;lt; Set Text( ldfText );
);
fsh = ldf &amp;lt;&amp;lt; Make Filter Change Handler(
	changeTitle();
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;edit:&lt;BR /&gt;final (?) version tackling special more cases of Where clauses:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ldfText = Regex(ldf &amp;lt;&amp;lt; get where clause(),"(:age == .*?)\)","\1");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 10:44:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/640039#M83750</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-23T10:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/640327#M83761</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp; Thanks. This will work but I have more than one data filters panel and I want to have the title changed based on only one of them (You script appears to capture all changes in any of the local data filter panels).&lt;/P&gt;&lt;P&gt;How to capture changes in a specific local data filter panel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 09:03:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/640327#M83761</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-06-08T09:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/640352#M83768</link>
      <description>&lt;P&gt;If there are several data filters in the same report, to get the correct one, you could start from the respective GaphBuilder object, go one step up and search for the Data Filter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ldf = (gb  &amp;lt;&amp;lt; parent)["Local Data Filter"] &amp;lt;&amp;lt; get scriptable object;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;full code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

New window("test",
H List Box(

gb1 = Graph Builder(
	Show Control Panel( 0 ),
	Local Data Filter( Conditional, Add Filter( columns( :age ) ) )
),
gb = Graph Builder(

	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	Local Data Filter( Conditional, Add Filter( columns( :age ) ) )
)));

ldf = (gb  &amp;lt;&amp;lt; parent)["Local Data Filter"] &amp;lt;&amp;lt; get scriptable object;

changeTitle = Function( {this},
	print(this);
	ldfText = Regex(ldf &amp;lt;&amp;lt; get where clause(),"Select Where\((.+)\)","\1");
	(Report( gb ) &amp;lt;&amp;lt; XPath( "//TextEditBox" ))[1] &amp;lt;&amp;lt; Set Text( ldfText );
);
fsh = ldf &amp;lt;&amp;lt; Make Filter Change Handler(
	changeTitle();
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatives which are less robust:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ldf = (current report() &amp;lt;&amp;lt; XPath("(//OutlineBox[text()='Local Data Filter'])"))[2] &amp;lt;&amp;lt; get scriptable object;

ldf = current report()[OutlineBox(3)]&amp;lt;&amp;lt; get scriptable object;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 13:06:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/640352#M83768</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-08T13:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/640363#M83773</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;Thanks for your suggestions. I tried your second less robust option but I can see that it is not very robust as you say and I could not get it to work properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the following script, if I want to show only the "age" selection on the chart tile, how to script it?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");

Graph Builder(
	Size( 570, 518 ),
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	Local Data Filter(
		Conditional,
		Add Filter(
			columns( :sex, :age, :weight ),
			Display( :sex, "Check Box Display" ),
			Display( :age, "Check Box Display" )
		)
	),
	SendToReport( Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} ) )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:56:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/640363#M83773</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-06-08T16:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/640504#M83787</link>
      <description>&lt;P&gt;Sorry, for the misunderstanding.&lt;BR /&gt;If there is just a single Data Filter in the report, there is no need to specify the reference more precisely.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;On the other hand:&lt;BR /&gt;If you want to restrict the title to some part of the &lt;STRONG&gt;Where Clause&lt;/STRONG&gt;, you need another Regex expression like the one below.&lt;BR /&gt;It searches for any &lt;FONT face="courier new,courier"&gt;:age ==&amp;nbsp;&lt;/FONT&gt; within round brackets and returns the whole string within the brackets.&lt;BR /&gt;So, For cases like&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;"Select Where( (:age == 14 | :age == 15) &amp;amp; :weight &amp;gt;= 113.5 )";
"Select Where(:age == 14 | :age == 16 | :age == 17 )"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;it will just return the :age ... part.&lt;BR /&gt;&lt;BR /&gt;&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");

gb = Graph Builder(
	Size( 570, 518 ),
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	Local Data Filter(
		Conditional,
		Add Filter(
			columns( :sex, :age, :weight ),
			Display( :sex, "Check Box Display" ),
			Display( :age, "Check Box Display" )
		)
	),
	SendToReport( Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} ) )
);

ldf = Current Report()["Local Data Filter"] &amp;lt;&amp;lt; get scriptable object;

changeTitle = Function( {this},
	print(this);
	ldfText = Regex(ldf &amp;lt;&amp;lt; get where clause(),".*\((:age == .*?)\).*","\1");
	(Report( gb ) &amp;lt;&amp;lt; XPath( "//TextEditBox" ))[1] &amp;lt;&amp;lt; Set Text( ldfText );
);
fsh = ldf &amp;lt;&amp;lt; Make Filter Change Handler(
	changeTitle();
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Jun 2023 14:45:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/640504#M83787</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-10T14:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/640663#M83799</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;. Your script below does not show or change the chart title for me in JMP 16.2.0.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ames Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = Graph Builder(
	Size( 570, 518 ),
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	Local Data Filter(
		Conditional,
		Add Filter(
			columns( :sex, :age, :weight ),
			Display( :sex, "Check Box Display" ),
			Display( :age, "Check Box Display" )
		)
	),
	SendToReport( Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} ) )
);

ldf = Current Report()["Local Data Filter"] &amp;lt;&amp;lt; get scriptable object;

changeTitle = Function( {this},
	print(this);
	ldfText = Regex(ldf &amp;lt;&amp;lt; get where clause(),".*\((:age == .*?)\).*","\1");
	(Report( gb ) &amp;lt;&amp;lt; XPath( "//TextEditBox" ))[1] &amp;lt;&amp;lt; Set Text( ldfText );
);
fsh = ldf &amp;lt;&amp;lt; Make Filter Change Handler(
	changeTitle();
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 11:55:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/640663#M83799</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-06-09T11:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/641060#M83828</link>
      <description>&lt;P&gt;try this -&amp;nbsp;works for both versions:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(:age == 14 );
( :age == 14 )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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");

gb = Graph Builder(
	Size( 570, 518 ),
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	Local Data Filter(
		Conditional,
		Add Filter(
			columns( :sex, :age, :weight ),
			Display( :sex, "Check Box Display" ),
			Display( :age, "Check Box Display" )
		)
	),
	SendToReport( Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} ) )
);

ldf = Current Report()["Local Data Filter"] &amp;lt;&amp;lt; get scriptable object;

changeTitle = Function( {this},
	print(this);
	ldfText = Regex(ldf &amp;lt;&amp;lt; get where clause(),"\( *(:age == .*?)\)","\1");
	(Report( gb ) &amp;lt;&amp;lt; XPath( "//TextEditBox" ))[1] &amp;lt;&amp;lt; Set Text( ldfText );
);
fsh = ldf &amp;lt;&amp;lt; Make Filter Change Handler(
	changeTitle();
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;edit&lt;/STRONG&gt;: final (?) version&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/644314/highlight/true#M84111" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/644314/highlight/true#M84111&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ldfText = Regex(ldf &amp;lt;&amp;lt; get where clause(),"(:age == .*?)\)","\1");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Jun 2023 10:45:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/641060#M83828</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-23T10:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/641070#M83830</link>
      <description>&lt;P&gt;Nice regex!&lt;/P&gt;
&lt;P&gt;The parentheses are being used in two clever ways:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Regex(ldf &amp;lt;&amp;lt; get where clause(),"\( *(:age == .*?)\)","\1");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;At the beginning and end of the pattern, the backslash character is escaping a parenthesis, \(...\) so it matches a literal parenthesis in the where clause. The space followed by asterisk matches zero or more spaces.&lt;/P&gt;
&lt;P&gt;The inner pair of parentheses &lt;EM&gt;look&lt;/EM&gt; like they would be matching the actual parentheses in the where clause, but no! The actual parentheses were already matched. These inner parentheses are grouping parentheses, and they form the first group in the match.&lt;/P&gt;
&lt;P&gt;Within the grouping parentheses, the literal characters &lt;FONT face="courier new,courier"&gt;:age ==&lt;/FONT&gt; &amp;nbsp; are matched, then &lt;FONT face="courier new,courier"&gt;.*? &lt;/FONT&gt;matches characters, one at a time, until that final, escaped, literal parenthesis can be matched. The . matches anything, the * means 0 or more, and the ? changes the 0 or more from greedy (race to the end) to reluctant (one at a time). The reluctant behavior makes sure the first parenthesis is used.&lt;/P&gt;
&lt;P&gt;Finally, the "\1" is used to format a result: everything the first set of grouping parentheses matched.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:41:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/641070#M83830</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-06-10T20:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/641335#M83848</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp; Your script below now works in JMP 16.2 but with the following issues.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The chart starts with no age selected and no title shown but the last one remains shown on the chart title when all age checkboxes are unchecked.&lt;/LI&gt;&lt;LI&gt;In the actual problem, the title starts showing only when more than one check boxes are checked.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;How to resolve these two issues (unless this is my JMP version specific) ?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = Graph Builder(
	Size( 570, 518 ),
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	Local Data Filter(
		Conditional,
		Add Filter(
			columns( :sex, :age, :weight ),
			Display( :sex, "Check Box Display" ),
			Display( :age, "Check Box Display" )
		)
	),
	SendToReport( Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} ) )
);

ldf = Current Report()["Local Data Filter"] &amp;lt;&amp;lt; get scriptable object;

changeTitle = Function( {this},
	print(this);
	ldfText = Regex(ldf &amp;lt;&amp;lt; get where clause(),"\( *(:age == .*?)\)","\1");
	(Report( gb ) &amp;lt;&amp;lt; XPath( "//TextEditBox" ))[1] &amp;lt;&amp;lt; Set Text( ldfText );
);
fsh = ldf &amp;lt;&amp;lt; Make Filter Change Handler(
	changeTitle();
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Jun 2023 10:00:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/641335#M83848</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-06-12T10:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/641350#M83849</link>
      <description>&lt;P&gt;You are right.&lt;BR /&gt;If Regex doesn't find the age info, it returns missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, after&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ldfText = Regex(ldf &amp;lt;&amp;lt; get where clause(),"\( *(:age == .*?)\)","\1");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;please add&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;if(ismissing(ldfText),ldfText = "all ages");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;to fix the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 10:56:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/641350#M83849</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-12T10:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/641684#M83875</link>
      <description>&lt;P&gt;If you just select &lt;EM&gt;one&lt;/EM&gt; entry at a time, you could use the &lt;STRONG&gt;page&lt;/STRONG&gt; dropzone to automatically label the plot:&lt;BR /&gt;[if multiple entries are selected, the respective data gets split across multiple pages]&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1686648512981.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53751i375CA37C071E0BB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1686648512981.png" alt="hogi_0-1686648512981.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");

Graph Builder(
	Variables( X( :height ), Y( :weight ), Page( :age ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	Local Data Filter(
		Add Filter(
			columns( :sex, :age, :weight ),
			Where( :age == 14 )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Jun 2023 09:29:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/641684#M83875</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-13T09:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/643979#M84086</link>
      <description>&lt;P&gt;My script below (for the actual case) appears to be triggering only after the second check box selection. Any leads as to why would be useful.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;changeTitle = Function( {this},
	print(this);
   	ldfText = Regex(ldf &amp;lt;&amp;lt; get where clause(),"\( *(:Parameter == .*?)\)","\1");
	if(ismissing(ldfText),ldfText = " Selected Test Parameter ");
	(Report( gb ) &amp;lt;&amp;lt; XPath( "//TextEditBox" ))[4] &amp;lt;&amp;lt; Set Text(ldfText);
);

fsh = ldf &amp;lt;&amp;lt; Make Filter Change Handler(
	changeTitle();
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Jun 2023 09:21:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/643979#M84086</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-06-20T09:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/644314#M84111</link>
      <description>&lt;P&gt;Oh, sorry, I always started by selecting the age - and then I missed that the title didn't update for the case of one age selection + something else.&lt;/P&gt;&lt;P&gt;If there is just a single age selection, there is no need for additional brackets.&lt;BR /&gt;So, how about skipping the first bracket ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;NB: please don't use inverse with this version :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1687288651230.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53981i14ABD049E3646715/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1687288651230.png" alt="hogi_1-1687288651230.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;changeTitle = Function( {this},
	print(this);
	print(ldf &amp;lt;&amp;lt; get where clause());
	ldfText = Regex(ldf &amp;lt;&amp;lt; get where clause(),"(:age == .*?)\)","\1");
	if(ismissing(ldfText),ldfText = "any text you want");
	(Report( gb ) &amp;lt;&amp;lt; XPath( "//TextEditBox" ))[1] &amp;lt;&amp;lt; Set Text( ldfText );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Jun 2023 19:18:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/644314#M84111</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-20T19:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/644487#M84124</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;. Does not work for me in JMP 16.2.0. I have opened a new thread on this with a better example on what is not working here (&lt;A href="https://community.jmp.com/t5/Discussions/Make-Filter-Change-Handler-triggering-only-after-second-filter/m-p/644236#M84102" target="_self"&gt;link&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 08:41:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/644487#M84124</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-06-21T08:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/644702#M84136</link>
      <description>&lt;P&gt;Actually, this version should with Jmp 16.2.0:&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6329845885112w616h460r724" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6329845885112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6329845885112w616h460r724');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6329845885112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 13:12:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/644702#M84136</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-21T13:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/644733#M84138</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp; The following is (almost) working and the current issues reported &lt;A href="https://community.jmp.com/t5/Discussions/Make-Filter-Change-Handler-triggering-only-after-second-filter/m-p/644236#M84102" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ldfText = Regex(ldf &amp;lt;&amp;lt; get where clause(),"\(?\s*(:age == .*?)\)","\1");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 13:40:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/644733#M84138</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-06-21T13:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/725594#M91019</link>
      <description>&lt;P&gt;Bonjour à tous,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Comment on fait pour mettre une deuxième colonne dans le remplissage des titres automatiques ?&lt;/P&gt;&lt;P&gt;La colonne "name" ne fait pas parti du filtre des données locales, mais en fonction de la sélection des "ages" dans le filtre on aurait tous les noms correspondants à ces "ages" dans le titre du graphique. Tout ça de façon dynamique.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ldfText = Regex(ldf &amp;lt;&amp;lt; get where clause(),"\( *(:age == .*?)\)","\1");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 14:41:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/725594#M91019</guid>
      <dc:creator>hcarr01</dc:creator>
      <dc:date>2024-02-27T14:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/725606#M91020</link>
      <description>&lt;P&gt;Here is one approach in getting all of the names listed&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;changeTitle = Function( {this},
	Eval( Parse( "theRows = dt &amp;lt;&amp;lt; get rows where" || Substr( ldf &amp;lt;&amp;lt; get where clause(), 13 ) ) );
	If( Length( theRows ) &amp;gt; 0,
		ldfText = Concat Items( :name[theRows],"," ),
		ldfText = "All Names"
	);
	(Report( gb ) &amp;lt;&amp;lt; XPath( "//TextEditBox" ))[1] &amp;lt;&amp;lt; Set Text( ldfText );
);&lt;/CODE&gt;&lt;/PRE&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="txnelson_0-1709049088522.png" style="width: 712px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61596i584A9EE3202EC3AD/image-dimensions/712x479?v=v2" width="712" height="479" role="button" title="txnelson_0-1709049088522.png" alt="txnelson_0-1709049088522.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 15:51:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-dynamically-update-quot-graph-title-quot-based/m-p/725606#M91020</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-02-27T15:51:49Z</dc:date>
    </item>
  </channel>
</rss>

