I have a String parameter for BeginDateofCalendar which takes a string of date.
I created a procedure for getting value for the above string parameter using DialogGetDate which gives me option to select a date from Calendar.
But it only working in WinUI.
When i am running the procedure in a page in WebUI its running but the calendar is opening in AIMMS App, not in WebUI.
what should i do so that the calendar opens in WebUI and not in AIMMS App?
Best answer by Chris Kuip
To be honest, there is no direct equivalent of DialogGetDate in the WebUI. In the WebUI, it is possible to get an element in a calendar, and this calendar element can be specific up to a minute. You can convert an element to a string easily using formatString. For instance as follows:
sp_someDay := formatString("%e”, ep_someDay);
Please find enclosed an example AIMMS project for selecting(in sequence):
- A date
- A date/time
The dialogs presented in here can be found by hovering over the value of
ep_someMinute and selecting the small calendar icon that appears.
Please let me know if this answers your question.
With kind regards,