Create an event in guided mode
The Adaptive Designer provides a guided mode to create events within an adaptive application. The guided mode enables the selection of actions and assignment to applications to facilitate event creation.
Prerequisites
-
You have created an adaptive application in which to create your event.
-
You are in edit mode.
Procedure
-
In the Settings and properties pane, in the Event select Settings next to the relevant event type, for example, Item Press.
Result: The Event dialog for events opens with the Guided mode switch turned on by default.
You can turn the Guided mode switch on or off. The selection is stored upon creation of an event. -
In Step 1 Target, in the Action drop-down menu, select one of the following, relevant actions as a target for your use case:
-
Open Adaptive Application
-
Open Application
-
Run Server Script
-
Open Adaptive Application
-
If you select Open Adaptive Application, in Application, assign your event to an adaptive application from the Adaptive Applications dialog.
-
Select Next.
-
To customize field mapping in guided mode, optionally select Customize field mapping.
-
In Field Mapping, map fields from the current adaptive application to your selected target adaptive application.
-
Select Next.
-
In Details, in Open as, select Fullscreen, Dialog, or Sidepanel to select how the adaptive application opens after triggering the event. For Dialog and Sidepanel, select further layout configurations, for example, Combine title with a variable.
-
Select Save.
Open Application
-
If you select Open Application, in Application, assign your event to an application from the Applications dialog.
-
In Details, in Open as, select Fullscreen, Dialog, or Sidepanel to select how the application opens after triggering the event. For Dialog and Sidepanel, select further layout configurations, for example, Combine title with a variable.
-
Select Save.
Run Server Script
-
If you select Run Server Script, in Script, assign your event to a server script from the Server Script dialog.
-
To customize the script response to be displayed when running the script, select Display script response. In Step 2 Response, you can enter customized script success and/or script error messages to display when the script has run.
Alternatively, you can return a response from the script by using a code snippet in the Script Editor tool, or, if you leave the field blank, default responses provided by Neptune DXP - Open Edition, for example, 'Event completed successfully', are displayed. -
Select Save.
Results
-
You have created an event in guided mode for your use case, to open an adaptive application, to open an application, or to run a server script.
-
In the Settings and properties pane, in the Event section, Settings next to the event type is highlighted green to indicate that the event is enabled according to your configurations.