I'm using JMP 19. I have a modal window with an interactive user interface. Inside that interface the user chooses some dates and I want to use those dates when they close the window.
I can get the value of a RadioBox or a TextEditBox, so why does the CalendarBox show as Empty() when I try to get values from it?
QueryWindow = NewWindow("Query.jsl",
<<Modal,
<<Return Result,
PanelBox("Test Data Query Builder",
PanelBox("Database Info", TextBox("Connection Info", <<SetFontSize(6))),
PanelBox("Date Range",
rb_DateOption = RadioBox({"From-To","From-to-Present","Wildcard"},<<SetFunction(
Function({this},
Sel1 = rb_DateOption << GetSelected();
if_From << Set(Sel1 == "From-To"|Sel1 == "From-to-Present");
if_To << Set(Sel1 == "From-To");
if_cb << Set(Sel1 == "From-To"|Sel1 == "From-to-Present");
))),
LineupBox(NCol(2), if_From = IfBox(1,qw_From = CalendarBox(<<Date(Today()-In Days(180)),
<<Min Date(Parse Date("1/1/2000")),
<<Max Date(Today()-In Hours(12)),
<<ShowTime(0)
)
),
if_To = IfBox(1,qw_To = CalendarBox(<<Date(Today()),
<<Min Date(qw_From),
<<Max Date(Today()),
<<ShowTime(0)
)
),
if_cb = IfBox(1,TextBox("Dates are absolute in each time zone unless \!"To Present\!" is selected.",
<<SetFontSize(8))),
),
),
PanelBox("Query Parameters",
LineupBox(NCol(2), TextBox("Category "), lb_Category = ListBox({"1","2"}, <<SetFontSize(8))),
LineupBox(NCol(2), TextBox("Part Numbers"), tb_PartNums = TextEditBox("%", <<SetNLines(3), <<SetWidth(200))),
),
)
);
show(QueryWindow["tb_PartNums"]);
show(QueryWindow["rb_DateOption"]);
show(QueryWindow["qw_From"]);