<?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: Popup box to add variable in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Popup-box-to-add-variable/m-p/387681#M63789</link>
    <description>&lt;P&gt;You need to use a Modal box for your input, otherwise the processing will not wait for the user input, before trying to Save.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = New Window( "Input",
	&amp;lt;&amp;lt;modal,
	H List Box( Text Box( "Input Tool ID " ), Tool = Text Edit Box() ),
	Button Box( "OK", TooID = Tool &amp;lt;&amp;lt; get text )
);
If( nw["button"] == -1,
	Throw(),
	dt &amp;lt;&amp;lt; save(
		Route || ToolID || "TrendFile-" || "WW" || Char( Week Of Year( Today() ) ) || "."
		 || Char( Day( Today() ) ) || "." || Char( Month( Today() ) ) || "." ||
		Char( Year( Today() ) ) || ".txt"
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 22 May 2021 14:39:36 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-05-22T14:39:36Z</dc:date>
    <item>
      <title>Popup box to add variable</title>
      <link>https://community.jmp.com/t5/Discussions/Popup-box-to-add-variable/m-p/387655#M63787</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I Want to save a file but i want to put a variable before my "TrendFile"&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; save(&lt;BR /&gt;Route || "TrendFile-" ||"WW"||&lt;BR /&gt;Char( Week Of Year( Today() ) ) || "." || Char( Day ( Today() ) )|| "."|| Char( month ( Today() ) ) || "." ||Char( Year ( Today() ) )||&lt;BR /&gt;".txt"&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;So was going to create a popup box&lt;/P&gt;&lt;P&gt;nw = New Window( "Input",&lt;BR /&gt;H List Box( Text Box( "Input Tool ID " ), Tool = Text Edit Box() ),&lt;BR /&gt;Button Box( "OK",&lt;BR /&gt;&lt;STRONG&gt;&lt;U&gt;TooID&lt;/U&gt;&lt;/STRONG&gt; = Tool &amp;lt;&amp;lt; get text;&lt;BR /&gt;nw &amp;lt;&amp;lt; close window;&lt;BR /&gt;&lt;BR /&gt;)&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; save(&lt;BR /&gt;Route ||&lt;U&gt;&lt;STRONG&gt; ToolID&lt;/STRONG&gt; &lt;/U&gt;|| "TrendFile-" ||"WW"||&lt;BR /&gt;Char( Week Of Year( Today() ) ) || "." || Char( Day ( Today() ) )|| "."|| Char( month ( Today() ) ) || "." ||Char( Year ( Today() ) )||&lt;BR /&gt;".txt"&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;would this be right?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:47:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Popup-box-to-add-variable/m-p/387655#M63787</guid>
      <dc:creator>jearls11</dc:creator>
      <dc:date>2023-06-09T19:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Popup box to add variable</title>
      <link>https://community.jmp.com/t5/Discussions/Popup-box-to-add-variable/m-p/387681#M63789</link>
      <description>&lt;P&gt;You need to use a Modal box for your input, otherwise the processing will not wait for the user input, before trying to Save.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = New Window( "Input",
	&amp;lt;&amp;lt;modal,
	H List Box( Text Box( "Input Tool ID " ), Tool = Text Edit Box() ),
	Button Box( "OK", TooID = Tool &amp;lt;&amp;lt; get text )
);
If( nw["button"] == -1,
	Throw(),
	dt &amp;lt;&amp;lt; save(
		Route || ToolID || "TrendFile-" || "WW" || Char( Week Of Year( Today() ) ) || "."
		 || Char( Day( Today() ) ) || "." || Char( Month( Today() ) ) || "." ||
		Char( Year( Today() ) ) || ".txt"
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 May 2021 14:39:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Popup-box-to-add-variable/m-p/387681#M63789</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-05-22T14:39:36Z</dc:date>
    </item>
  </channel>
</rss>

