I have written JSL scripts that pull machine data for individual pieces of equipment for a given time range. Instead of having a series of JSL scripts floating around I am now looking at the JMP application builder as a better solution. I could have buttons for each piece of equipment and the scripts then tied to those buttons.
I have figured out this much but wanted to tidy things up by adding the calendar selection into the application. Is there a way to embed the calendar prompt into the application to add date ranges that are then picked up in a JSL sql query? Below is the prompt I have at the start of each data pull script that I would like to have embedded in the application.
Also any suggestions on tutorials on JMP App Building would be appreciated.
sd=Today();
ed=Today();
New Window( "Query Date", <<Modal,
HListBox(
PanelBox( "From Time",
scal = Calendar Box(, SetFunction(Function({this}, sd=scal<< Get Date) ))
),
spacerbox(Size(20,20)),
PanelBox( "To Time",
ecal = Calendar Box(, SetFunction(Function({this}, ed=ecal<< Get Date) ))
)
));