<?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: JMP SCRIPT: Name not resolve : prod_n when accessing or evaluating of &amp;quot;prod_n&amp;quot; in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-Name-not-resolve-prod-n-when-accessing-or-evaluating/m-p/616966#M81655</link>
    <description>&lt;P&gt;The reason for this error is that at the time of the execution of the specific line of code, prod_n does not exist in memory.&amp;nbsp; You may want to add before the If() clause&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( isEmpty( prod_n ), prod_n = .);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 27 Mar 2023 14:49:23 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2023-03-27T14:49:23Z</dc:date>
    <item>
      <title>JMP SCRIPT: Name not resolve : prod_n when accessing or evaluating of "prod_n"</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-Name-not-resolve-prod-n-when-accessing-or-evaluating/m-p/616908#M81649</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got this message error:&lt;/P&gt;&lt;P&gt;Name not resolve : prod_n&amp;nbsp;when accessing or evaluating of "prod_n"&lt;/P&gt;&lt;P&gt;...&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="Sebastienlg_0-1679925190998.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51515i31E547004D09CEC6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sebastienlg_0-1679925190998.png" alt="Sebastienlg_0-1679925190998.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is my program:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( prod_n == 3,

Include( "Utils/utils_data.jsl" );
Include( "Utils/utils_menu.jsl" );

// Table des limites
limite_table = load_limit_table(D);

// Table principale
main_table = load_main_table(D);

Current Data Table( RAW_DATA_TABLE );
New Window( "Test", 
	V List Box(
		coltstst = RAW_DATA_TABLE &amp;lt;&amp;lt; 
		Column Switcher(:Name("Y"),list),
		graph = RAW_DATA_TABLE &amp;lt;&amp;lt; 
				Control Chart Builder(
					Size( 534, 450 ),
					Show Two Shewhart Charts( 0 ),
					Show Control Panel( 0 ),			
					Sort by Row Order( 1 ),
					Show Limit Summaries( 0 ),
					Variables( Y( :"Y" ),Subgroup( :X ), Phase(:"Version")),	
					Get Limits(LIMIT_TABLE),
				),
		N = N Items( phaseLevels );
		// On met en forme les lignes
		For( i = 1, i &amp;lt;= N Items( phaseLevels ), i++,
			graph &amp;lt;&amp;lt; SendToReport(
					Dispatch(
						{},
						"Control Chart Builder",
						OutlineBox,
						{Set Title( "Représentation graphique" )},
						FrameBox( 2 ),
						{
						DispatchSeg( Line Seg( Eval(3*i+N-2) ),		{Line Color( "Medium Light Green" ),Line Style( "Dotted" ), Line Width( 1.5 )} ),
						DispatchSeg( Line Seg( Eval(3*i+1+N-2) ),	{Line Color( "Medium Light Orange" ), Line Style( "Dotted" ), Line Width( 2.5 )}),
						DispatchSeg( Line Seg( Eval(3*i+2+N-2) ),	{Line Color( "Medium Light Red" ), Line Style( "Dotted" ), Line Width( 2.5 )})
						}
					)
				)
			)
		);
	);
	
coltstst &amp;lt;&amp;lt; Link Platform( table );
coltstst &amp;lt;&amp;lt; Link Platform( Cadreall );
coltstst &amp;lt;&amp;lt; Link Platform( graph );

ncols = n items (coltstst &amp;lt;&amp;lt; get list);

for each ({i}, 1::ncols,
	cadreall &amp;lt;&amp;lt; journal;
	table &amp;lt;&amp;lt; journal;
	graph &amp;lt;&amp;lt; Journal;
	coltstst &amp;lt;&amp;lt; next;
);
RAW_DATA_TABLE &amp;lt;&amp;lt;journal;
// add the header and page breaks to the journal
w = Current Journal();
listOfReports = w &amp;lt;&amp;lt; child;
nReports = N Items( listOfReports );

w = Current Journal(R5);
w &amp;lt;&amp;lt; Set page setup( margins(0.1, 0.75, 0.1, 0.1 ), scale( 0.8 ), portrait( 0 ), paper size( "Letter" ) );
w &amp;lt;&amp;lt; save pdf( "P:\XX\data analysis.pdf" );
w &amp;lt;&amp;lt; close window;

);



If( prod_n == 2,

Include( "Utils/utils_data.jsl" );
Include( "Utils/utils_menu.jsl" );

);
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The program works well, however I always get this message.&lt;/P&gt;&lt;P&gt;Do you have any suggestion to help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sebastien&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:06:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-Name-not-resolve-prod-n-when-accessing-or-evaluating/m-p/616908#M81649</guid>
      <dc:creator>Sebastienlg</dc:creator>
      <dc:date>2023-06-09T16:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: JMP SCRIPT: Name not resolve : prod_n when accessing or evaluating of "prod_n"</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-Name-not-resolve-prod-n-when-accessing-or-evaluating/m-p/616966#M81655</link>
      <description>&lt;P&gt;The reason for this error is that at the time of the execution of the specific line of code, prod_n does not exist in memory.&amp;nbsp; You may want to add before the If() clause&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( isEmpty( prod_n ), prod_n = .);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Mar 2023 14:49:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-Name-not-resolve-prod-n-when-accessing-or-evaluating/m-p/616966#M81655</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-03-27T14:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: JMP SCRIPT: Name not resolve : prod_n when accessing or evaluating of "prod_n"</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-Name-not-resolve-prod-n-when-accessing-or-evaluating/m-p/617431#M81697</link>
      <description>&lt;P&gt;Great it works! Thank you very much!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 11:49:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-SCRIPT-Name-not-resolve-prod-n-when-accessing-or-evaluating/m-p/617431#M81697</guid>
      <dc:creator>Sebastienlg</dc:creator>
      <dc:date>2023-03-28T11:49:34Z</dc:date>
    </item>
  </channel>
</rss>

