Switching Apps using Widget Action Configuration
Canvas now enables you to switch apps (widgets) at runtime. By making use of the Switch functionality, you can easily switch from one app to another in a feasible manner. Let's assume that the New Classic Grid app is already created in Canvas Studio. For the full set of information on creating apps (widgets), refer Creating App and Steps to Create Apps.
Configure Switch for New Classic Grid Widget
To trigger the Switch functionality using the Publish Field List in Action Configuration, perform the following steps:
- On the App Designer page, hover the mouse on the New Classic Grid Widget and click the Action Configuration icon.
The Action Configuration page appears.
- Click the Event drop-down list and select the rowdblclick event.
- Click the Launch Type drop-down list and select Publish.
- Click the Configuration icon to configure the Publish Field List.
The Publish Field List page appears.
- On the Publish Field List page, click App on the left navigation pane.
- Click the Data drop-down list and choose the relevant column, e.g. CARD_NO.
- Click the On Complete drop-down list and select the Switch option. For detailed information on the Launch functionality, refer Example - Widget Action Configuration. Note: On applying Switch, the NEW_CLASSIC_GRD_WGT gets automatically selected as the target widget. It is not possible to modify the target widget.
- Click the Search Icon on the Source Widget search box and select the relevant widget (app), e.g. CARD_SUMMARY_WGT.
- Once the proceedings are completed, click Save.
- On the Action Configuration page, click Save.
A confirmation message, indicating a successful save, appears.
Let's assume that the New Classic Grid app is mapped to the Card Summary Details workspace in the functional application, Modelhouse. The data from the New Classic Grid is displayed.
- Click any record (row) categorized under the column of Card Number.
On clicking the record (row), the Card Summary app (widget) appears. The New Classic Grid widget gets switched to the Card Summary widget. The data of the Card Summary app gets displayed.