Why can't I get CalendarBox values from inside an IfBox in a modal window?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></MODAL>
Automation and ScriptingRe: Why can't I get CalendarBox values from inside an IfBox in a modal window?I have not studied this in a while, but it still seems to work Select Date Range with Calendar Boxes
Re: Why can't I get CalendarBox values from inside an IfBox in a modal window?<< Return Result might not work with << Get Date which calendar box uses. Usually I don't rely just on << Return Result and I always add OK/Cancel buttons to Modal windows and when you do this, you can add << Get Date to the OK button for example
QueryWindow = New Window("Query.jsl",
<<MODAL></MODAL>Re: Why can't I get CalendarBox values from inside an IfBox in a modal window?I really appreciate the answer.
I was also able to do the same with OnValidate, though I would still like to know why the QueryWindow[] comes up as Empty(). I think that would help my understanding of what's preventing it from working both ways.
Re: Why can't I get CalendarBox values from inside an IfBox in a modal window?Did you verify that the issue is ifbox + calendar box?
Names Default To Here(1);
nw = New Window("Query.jsl",
<<MODAL></MODAL>
My guess is that << Return Result which you can use to get the results from Modal Window inputs doesn't just work with Calendar Box() so it will return Empty().
Re: Why can't I get CalendarBox values from inside an IfBox in a modal window?Oh, it didn't work either way, IfBox(CalendarBox()) or CalendarBox(). I had to use the buttons or OnValidate.