cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use to use Text Explorer to glean valuable information from text data at April 25 webinar.
Choose Language Hide Translation Bar
View Original Published Thread

User input dates

KST-CPT
Level II

I have a column of date time in a table.  When I run my script I want a dialog box to come up (calendar selection would make selection easier), which asks for a start date and end date.  They can be seperate dialog boxes, or they can be the same, either would suffice.  I want to store these dates in variables so that I can "select where" to create a subset within or around these dates.

 

I have tried numerous approaches, the one I like best:

startDate = new window("Start Date of Data",<<Modal, numbereditbox(today(),20,<<setformat(Format("m/d/y", 12)),Button Box( "OK", StartDateRT << get ), Button Box( "Cancel" )));

Show(StartDateRT);
show(StartDate);

 

gives me this result in the Log:

StartDateRT = DisplayBox[];
StartDate = {Button(1)};

 

How do I get the selected date so that I can use it later?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User


Re: User input dates

Use a Calendar Box().  Go to 

     Help==>Scripting Index==>Calendar Box()

for details.

Here is the JSL example from the Help entry

Names Default To Here( 1 );
New Window( "Calendar Box Example", Calendar Box() );

calendar.PNG

Jim

View solution in original post

1 REPLY 1
txnelson
Super User


Re: User input dates

Use a Calendar Box().  Go to 

     Help==>Scripting Index==>Calendar Box()

for details.

Here is the JSL example from the Help entry

Names Default To Here( 1 );
New Window( "Calendar Box Example", Calendar Box() );

calendar.PNG

Jim