Widgets And Parameters Revision

Read-only forum. Used to announce new releases of EASYProcess.

Locked
JustinVanRegenmorter
Posts: 537
Joined: August 26th, 2021, 9:56 am
Contact:

Widgets And Parameters Revision

Unread post by JustinVanRegenmorter »

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.
Open Widget Event.PNG
Open Widget Event.PNG (52.96 KiB) Viewed 652 times
Open Widget Event.PNG
Open Widget Event.PNG (52.96 KiB) Viewed 652 times
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.
Widget Overview.PNG
Widget Overview.PNG (31.58 KiB) Viewed 652 times
Widget Overview.PNG
Widget Overview.PNG (31.58 KiB) Viewed 652 times
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.
Widget Page Events.PNG
Widget Page Events.PNG (23.82 KiB) Viewed 652 times
Widget Page Events.PNG
Widget Page Events.PNG (23.82 KiB) Viewed 652 times
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.
Widget Event Call.PNG
Widget Event Call.PNG (57.85 KiB) Viewed 652 times
Widget Event Call.PNG
Widget Event Call.PNG (57.85 KiB) Viewed 652 times


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.
VIEW-20000002.xml
(319.4 KiB) Downloaded 134 times
VIEW-20000002.xml
(319.4 KiB) Downloaded 134 times
word count: 396
Locked