<?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 Entering dates into data table from dialog box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Entering-dates-into-data-table-from-dialog-box/m-p/425493#M67496</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to enter a date into a specific row in a data table after the user inputs it from a dialog box (ex: into row 5). Is there a way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&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 = New Table( "Untitled", 
						New Column( "Date 1", Numeric, "Continuous", Format( "yyyy-mm-dd", 12 )),
						New Column( "Date 2", Numeric, "Continuous", Format( "yyyy-mm-dd", 12 )),
);



q = New Window( "Enter Dates",		// Window for entering dates 
		Spacer Box( size(500, 30)), 
    H List Box(
		Spacer Box(Size(100, 10)),
		V list box (
		    Spacer Box(Size(10, 15)),
            Text Box("Enter Dates (yyyy-mm-dd)"),
            Spacer Box(Size(10, 20)),
			Text Box("Enter Date 1"),
			Spacer Box(Size(10,10)),
			fontobj = da =  Number Edit box(),
				da &amp;lt;&amp;lt; Set Format( Format("yyyy-mm-dd", 12)),
				da &amp;lt;&amp;lt; Set (Date MDY ( 12, 31, 2000)),
			Spacer Box(Size(10,10)),
			Text Box("Enter Date 2"),
			Spacer Box(Size(10,10)),
			fontobj = db =  Number Edit box(),
				db &amp;lt;&amp;lt; Set Format( Format("yyyy-mm-dd", 12)),
				db &amp;lt;&amp;lt; Set (Date MDY ( 12, 31, 2000)),
        ),
    ),
    Button Box( "Continue",
		
		//code for adding dates to data table
		
		q &amp;lt;&amp;lt;closewindow;
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:38:16 GMT</pubDate>
    <dc:creator>EMB</dc:creator>
    <dc:date>2023-06-10T23:38:16Z</dc:date>
    <item>
      <title>Entering dates into data table from dialog box</title>
      <link>https://community.jmp.com/t5/Discussions/Entering-dates-into-data-table-from-dialog-box/m-p/425493#M67496</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to enter a date into a specific row in a data table after the user inputs it from a dialog box (ex: into row 5). Is there a way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&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 = New Table( "Untitled", 
						New Column( "Date 1", Numeric, "Continuous", Format( "yyyy-mm-dd", 12 )),
						New Column( "Date 2", Numeric, "Continuous", Format( "yyyy-mm-dd", 12 )),
);



q = New Window( "Enter Dates",		// Window for entering dates 
		Spacer Box( size(500, 30)), 
    H List Box(
		Spacer Box(Size(100, 10)),
		V list box (
		    Spacer Box(Size(10, 15)),
            Text Box("Enter Dates (yyyy-mm-dd)"),
            Spacer Box(Size(10, 20)),
			Text Box("Enter Date 1"),
			Spacer Box(Size(10,10)),
			fontobj = da =  Number Edit box(),
				da &amp;lt;&amp;lt; Set Format( Format("yyyy-mm-dd", 12)),
				da &amp;lt;&amp;lt; Set (Date MDY ( 12, 31, 2000)),
			Spacer Box(Size(10,10)),
			Text Box("Enter Date 2"),
			Spacer Box(Size(10,10)),
			fontobj = db =  Number Edit box(),
				db &amp;lt;&amp;lt; Set Format( Format("yyyy-mm-dd", 12)),
				db &amp;lt;&amp;lt; Set (Date MDY ( 12, 31, 2000)),
        ),
    ),
    Button Box( "Continue",
		
		//code for adding dates to data table
		
		q &amp;lt;&amp;lt;closewindow;
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:38:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Entering-dates-into-data-table-from-dialog-box/m-p/425493#M67496</guid>
      <dc:creator>EMB</dc:creator>
      <dc:date>2023-06-10T23:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Entering dates into data table from dialog box</title>
      <link>https://community.jmp.com/t5/Discussions/Entering-dates-into-data-table-from-dialog-box/m-p/425515#M67499</link>
      <description>&lt;P&gt;Here is a modification to your code to handle both the text input of date, and the numeric input of date.&amp;nbsp; Also note that one has to add rows to the data table before they can be populated.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = New Table( "Untitled",
	New Column( "Date 1", Numeric, "Continuous", Format( "yyyy-mm-dd", 12 ) ),
	New Column( "Date 2", Numeric, "Continuous", Format( "yyyy-mm-dd", 12 ) ),

);
dt &amp;lt;&amp;lt; add rows( 1 );



q = New Window( "Enter Dates", 		// Window for entering dates 
	Spacer Box( size( 500, 30 ) ),
	H List Box(
		Spacer Box( Size( 100, 10 ) ),
		V List Box(
			Spacer Box( Size( 10, 15 ) ),
			Text Box( "Enter Dates (yyyy-mm-dd)" ),
			Spacer Box( Size( 10, 20 ) ),
			Text Box( "Enter Date 1" ),
			Spacer Box( Size( 10, 10 ) ),
			fontobj = da = Number Edit Box(),
			da &amp;lt;&amp;lt; Set Format( Format( "yyyy-mm-dd", 12 ) ),
			da &amp;lt;&amp;lt; Set( Date MDY( 12, 31, 2000 ) ),
			Spacer Box( Size( 10, 10 ) ),
			Text Box( "Enter Date 2" ),
			Spacer Box( Size( 10, 10 ) ),
			fontobj2 = db2 = Number Edit Box(),
			db2 &amp;lt;&amp;lt; Set Format( Format( "yyyy-mm-dd", 12 ) ),
			db2 &amp;lt;&amp;lt; Set( Date MDY( 12, 31, 2000 ) ),

		),

	),
	Button Box( "Continue",
		dt:Date1[1] = da &amp;lt;&amp;lt; get;
		dt:Date2[1] = Informat( db2 &amp;lt;&amp;lt; get text, "yyyy-mm-dd" );
		//code for adding dates to data table
		
		q &amp;lt;&amp;lt; closewindow;
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Oct 2021 21:15:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Entering-dates-into-data-table-from-dialog-box/m-p/425515#M67499</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-10-11T21:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Entering dates into data table from dialog box</title>
      <link>https://community.jmp.com/t5/Discussions/Entering-dates-into-data-table-from-dialog-box/m-p/425520#M67500</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 21:34:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Entering-dates-into-data-table-from-dialog-box/m-p/425520#M67500</guid>
      <dc:creator>EMB</dc:creator>
      <dc:date>2021-10-11T21:34:48Z</dc:date>
    </item>
  </channel>
</rss>

