Starting and continuing a tour
You configure any action control with an API script to start or continue a guided tour.
Do the following:
- Open the Actions tab on the control cell properties panel.
- Click the Create an action set button.
- Click Add an event and select the event.
- Click Add an action.
- In the menu, click all actions and select Run script.
- In the Function Name field enter one of the following (enclosed in quotes ""):
"pega.d.automation.support.startTour
"— Displays the first tour stop defined on the Definition tab. When the user selects the control, the tour restarts at the initial stop."pega.d.automation.support.continueTour"
— Starts the tour at the initial stop unless the user exited the tour at an intermediate stop. In this case, the function continues the tour where the user exited. As a best practice, use this function to start a tour.
- In the Parameters area, specify the guided tour you want to run. Enter the following parameter values:
- Identifier (name) key value
- Apply to class
- Save the control.
Tour stop navigation
The tour stop window contains the following navigation buttons based upon where it is displayed in the tour sequence:
- Next — First tour stop
- Next and Previous— Any intermediate tour stop
- Previous and Finish—Last tour stop
A window remains open until the user clicks either:
- A navigation button.
- The X icon to exit the tour.
Automatically starting a tour
You can automatically start a guided tour by including and configuring the pxGuidedTourAutoStart control in a section. To add the control:
- Click in the cell where you would like to include the control and then click the gear to view the cell property panel.
- Click change.
- Select other.
- In the Select a control field, select pxGuidedTourAutoStart.
- Fill out the following fields on the Parameters tab:
- TourClass - the class in which the tour is defined
- TourName - the name of the tour to run
- AutoLaunchAlways - set to true to start the tour every time the section that includes the control is displayed, set to false (default) to start the tour the first time the section is displayed.
- Submit the cell properties configuration and save the section.
Users must have Data-Preference-Operator write permissions or the tour will not start. This is used to record a user's tour history.
Open topic with navigation