Widgets And Parameters Revision
Posted: January 27th, 2022, 12:46 pm
As of DesignTime Revision 2121 and RunTime Revision 831 widgets can now be opened from any control, parameters in a view have been renamed to viewparameters to give a clarification where the values come from, and the calendar widget is now a widget users can checkout and modify.
Controls now open widgets by adding it as an event on that control by selecting the action, selecting the new Open Window radio button on the Event popup, and filling out the parameters. The lefticonclick and righticonclick actions will automatically add returned values back to the control. For example if the lefticonclick opens the calendar widget, then when the user selects a date it will be automatically added to the control and the window will close. You can model this behavior with any widget by adding an Event on the Widget with the value/s you are passing back to the main page and adding the event to event on the widget. In the Widget you can add an Event to be able to call a controller on the main page and a controller to close the widget if you want. Then on the control you want to invoke the action of sending values to the main page you can add an action with the event and controller/s that you wanted called. Then back in the main page on the control that opened the widget there will be a widget icon where you can add the widget event to call a controller to grab the value/s that you sent back to the main page.
If you are on a preexisting MVC application you can download the Calendar widget (VIEW-20000002.xml). You can create a new widget in your application called Calendar and import from XML using the downloaded xml.
Controls now open widgets by adding it as an event on that control by selecting the action, selecting the new Open Window radio button on the Event popup, and filling out the parameters. The lefticonclick and righticonclick actions will automatically add returned values back to the control. For example if the lefticonclick opens the calendar widget, then when the user selects a date it will be automatically added to the control and the window will close. You can model this behavior with any widget by adding an Event on the Widget with the value/s you are passing back to the main page and adding the event to event on the widget. In the Widget you can add an Event to be able to call a controller on the main page and a controller to close the widget if you want. Then on the control you want to invoke the action of sending values to the main page you can add an action with the event and controller/s that you wanted called. Then back in the main page on the control that opened the widget there will be a widget icon where you can add the widget event to call a controller to grab the value/s that you sent back to the main page.
If you are on a preexisting MVC application you can download the Calendar widget (VIEW-20000002.xml). You can create a new widget in your application called Calendar and import from XML using the downloaded xml.