<?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: Can I modify &amp;quot;Remembered settings&amp;quot; in a table and re-import them into the profiler? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Can-I-modify-quot-Remembered-settings-quot-in-a-table-and-re/m-p/713259#M89663</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/46445"&gt;@BenGengenbach&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for your reply. I have modified my jsl so that the error does not occur. Please see my jsl in the previous reply.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2024 02:40:57 GMT</pubDate>
    <dc:creator>yuichi_katsumur</dc:creator>
    <dc:date>2024-01-03T02:40:57Z</dc:date>
    <item>
      <title>Can I modify "Remembered settings" in a table and re-import them into the profiler?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-I-modify-quot-Remembered-settings-quot-in-a-table-and-re/m-p/712104#M89548</link>
      <description>&lt;P&gt;Hi JMP community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to modify and run different settings of the prediction profiler in a more efficient way.&lt;/P&gt;&lt;P&gt;Modifying each single entry by hand is tedious.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I modify the settings in an exported table and re-impiort them into the profiler to predict the new settings?&lt;/P&gt;&lt;P&gt;I am alos open to other suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers&amp;nbsp;&lt;/P&gt;&lt;P&gt;ben&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 12:34:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-I-modify-quot-Remembered-settings-quot-in-a-table-and-re/m-p/712104#M89548</guid>
      <dc:creator>BenGengenbach</dc:creator>
      <dc:date>2023-12-22T12:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I modify "Remembered settings" in a table and re-import them into the profiler?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-I-modify-quot-Remembered-settings-quot-in-a-table-and-re/m-p/712721#M89601</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/46445"&gt;@BenGengenbach&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It seems that you need to use script to do what you want.&lt;BR /&gt;Here is a sample script. I hope it works for you.&lt;/P&gt;
&lt;P&gt;1. Run fit model&lt;BR /&gt;2. Open factor setting table you want to apply&lt;BR /&gt;3. Open script file and run script&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;rpt = Current Report();
obj = rpt &amp;lt;&amp;lt; XPath( "//OutlineBox[@helpKey='Profiler']" );
profiler = obj[1] &amp;lt;&amp;lt; get scriptable object;
current_setting_values = profiler &amp;lt;&amp;lt; Get Factor Settings;

//Select data table
dtNames = {};
For( t = 1, t &amp;lt;= N Table(), t++,
	Insert Into( dtNames, Data Table( t ) &amp;lt;&amp;lt; getName )
);
nw2 = New Window( "Data table selector",
	&amp;lt;&amp;lt;modal(),
	&amp;lt;&amp;lt;Return Result,
	H List Box(
		Panel Box( "Pick a data table",
			dlg_dtlb = List Box( dtNames, width( 280 ), nlines( 5 ), MaxItems( 1 ) ), 
		)
	)
);

//Set the factor values and remember 
setting_tb = Data Table( nw2["dlg_dtlb"][1] );
new_settings_list = {};
fac_name_list = {};
new_settings_script = "";

For( s = 1, s &amp;lt;= N Items( current_setting_values ), s++,
	isstring1 = Is Missing( Min( setting_tb[0, 1 + s] ) );
	isstring2 = Is Missing( Min( Num( setting_tb[0, 1 + s][1] ) ) );
	If( isstring1,
		Insert Into( new_settings_list, Eval List( {setting_tb[0, 1 + s]} ) ),
		Insert Into( new_settings_list, setting_tb[0, 1 + s] );
	
	);
	If( isstring2,
		new_settings_script = new_settings_script || Regex(
			Char( current_setting_values[s] ), 
			"(.*?) = (.*?)",
			"\1"
		) || "( \!"_val_" || Char( s ) || "\!", Lock(0), Show(1)),"
	,
		new_settings_script = new_settings_script || Regex(
			Char( current_setting_values[s] ), 
			"(.*?) = (.*?)",
			"\1"
		) || "( _val_" || Char( s ) || ", Lock(0), Show(1)),"
	)
	;
);

new_settings_script = "profiler &amp;lt;&amp;lt; Term Value(" || new_settings_script || ")";
For( i = 1, i &amp;lt;= N Row( setting_tb ), i++,
	script = new_settings_script;
	For( f = 1, f &amp;lt;= N Items( current_setting_values ), f++,
		Substitute Into( script, "_val_" || Char( f ), Char( new_settings_list[f][i] ) )
	);
	Try(
		Eval( Parse( script ) );
		profiler &amp;lt;&amp;lt; Remember Settings;
	);
);

//Set Setting name to the report
jmp_version = JMP Version();
jmp_version_num = Num( Left( jmp_version, Contains( jmp_version, "." ) - 1 ) );

if(jmp_version_num &amp;gt;= 17,
s_stringcolbox = obj[1][Outline Box( 2 )][Table Box( 1 )][String Col Edit Box( 1 )];,
s_stringcolbox = obj[1][Outline Box( 2 )][Table Box( 1 )][String Col Box( 1 )];
);
setting_name = s_stringcolbox &amp;lt;&amp;lt; get();
new_settings_name = setting_tb[0, 1];
m = N Items( setting_name ) - N Items( new_settings_name ) + 1;
n = N Items( new_settings_name );
j = 1;
For( i = m, i &amp;lt;= N Items( setting_name ), i++,
	setting_name[i] = new_settings_name[j];
	j = j + 1;
);
s_stringcolbox &amp;lt;&amp;lt; set values( setting_name );&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;Unfortunately, I could not find a way to delete the current settings with a script, so you have to do it manually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 02:38:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-I-modify-quot-Remembered-settings-quot-in-a-table-and-re/m-p/712721#M89601</guid>
      <dc:creator>yuichi_katsumur</dc:creator>
      <dc:date>2024-01-03T02:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can I modify "Remembered settings" in a table and re-import them into the profiler?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-I-modify-quot-Remembered-settings-quot-in-a-table-and-re/m-p/713112#M89653</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1654"&gt;@yuichi_katsumur&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;wow, thank you for your effort, that is awesome and works nicely!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One minor thing: The settings are correctly loaded into the model however I get this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Cannot subscript Display Box in access or evaluation of 'obj[1][Outline Box(2)][Table Box(1)][ /*###*/String Col Edit Box(1)]' , obj[1][Outline Box( 2 )][Table Box( 1 )][/*###*/String Col Edit Box( 1 )]&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="BenGengenbach_0-1704187187345.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60135i560A5775129AC341/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenGengenbach_0-1704187187345.png" alt="BenGengenbach_0-1704187187345.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am not familiar with JSL so maybe you can help me out here ;)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers ben&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 09:22:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-I-modify-quot-Remembered-settings-quot-in-a-table-and-re/m-p/713112#M89653</guid>
      <dc:creator>BenGengenbach</dc:creator>
      <dc:date>2024-01-02T09:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I modify "Remembered settings" in a table and re-import them into the profiler?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-I-modify-quot-Remembered-settings-quot-in-a-table-and-re/m-p/713259#M89663</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/46445"&gt;@BenGengenbach&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for your reply. I have modified my jsl so that the error does not occur. Please see my jsl in the previous reply.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 02:40:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-I-modify-quot-Remembered-settings-quot-in-a-table-and-re/m-p/713259#M89663</guid>
      <dc:creator>yuichi_katsumur</dc:creator>
      <dc:date>2024-01-03T02:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can I modify "Remembered settings" in a table and re-import them into the profiler?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-I-modify-quot-Remembered-settings-quot-in-a-table-and-re/m-p/713273#M89665</link>
      <description>&lt;P&gt;Works like a charm!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 07:54:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-I-modify-quot-Remembered-settings-quot-in-a-table-and-re/m-p/713273#M89665</guid>
      <dc:creator>BenGengenbach</dc:creator>
      <dc:date>2024-01-03T07:54:07Z</dc:date>
    </item>
  </channel>
</rss>

