Advanced and Additional Actions

The advanced actions include running an action sequence, using snippets, publishing events, and actions for voice commands and offline syncing.

Advanced Actions

Run Action Sequence

Used to select a reusable action sequence to run within the current set of actions.

  • Action Sequence: The action sequence to run.
  • Description: The description entered within the chosen action sequence’s properties.

Note

In addition to the Action Sequence property, any inputs that have been specified on the reusable action sequence are displayed as properties. For more information, see Inputs.

Warning

Use action sequences thoughtfully. If there are actions within an action sequence that are contingent on context, recognize that the context changes depending upon where and how the sequence is invoked.

When invoking an action sequence, be sure to examine the individual actions for properties and merge syntax that rely on context, and ensure that you are using the correct model conditions for that action to work within the context requirements.

Run a Skuid JavaScript Snippet

Like Skuid Javascript snippets? Use a snippet alongside other actions without adding more code to the existing snippet.

  • Name of Snippet to run: The exact name of the snippet.

Snippets must be registered using skuid.snippet.registerSnippet(snippetName, snippetFunction).

Publish Event

Use the Action Framework to publish events. Subscribe to these events using an event-triggered action sequence or with the skuid.events.subscribe() API.

  • Event name: The name of the event to be published.
  • Publishing Scope: Determines how “far” outside the current page that the published event will reach.
    • All active pages and Lightning Components: (Skuid on Salesforce only) The event will be published on all Skuid pages and all Lightning components active on the current Lightning page.
    • All active pages: The event will be published on all Skuid pages that are active in the current window.
    • Only this page (default): The event will only be published on the current Skuid page.
  • Channel (optional): Determines on which “channel” an event is published, providing another option to narrow the scope of an event. An event subscription only activates if it is also pointed to the channel specified here, even if the event name is the same.

Listen for a voice command

Requires a voice-enabled page. This command prompts the user for voice input, which is then sent to the data source specified in the Voice tab of the Page Properties.

Note

If users have not already done so, they may be prompted by their browser to allow the Skuid site access to their microphone when this action occurs.

  • Silence Wait Time (Seconds): Length of time Skuid waits after a user is finished speaking—assuming there is silence—before sending the recorded speech to the voice input service for processing.

Offline Mode Actions

Sync Changes Made Offline

Initiates the offline syncing process. Primarily used when automatic syncing is disabled.

Disable Online Mode

Places the page into an offline state, even if a network connection is available at the time.

The page will not automatically detect a network connection when online mode is disabled. To return to an online state, the user will need to click the refresh icon in the Offline banner at the top of the page or trigger the Enable Online Mode action.

Enable Online Mode

Places the page into an online state. This action is typically paired with the Disable Online Mode action.

Show Pending Offline Saves

Launches a popup that displays all pending saves initiated while in Offline mode.

In the popup, pending saves will be grouped by model. Each model’s pending saves will be listed in a Table.

Note

Need to make a change to a pending save? The records in the Pending Offline Saves popup are editable.

Additional Actions

Other possible actions.

Open/Close a drawer

Displays a closed drawer, or closes an open one.

  • Configure Drawer: Opens drawer configuration window, where you build the drawer.
  • Drawer Opened Icon: The icon displayed when the drawer is open; users click this to close the drawer.