Option
An option is an action that can be executed by the user. It can be a link to another view, a command executed on the server, or a link to an external resource
Attributes
All required fields are marked as required; the rest are optional.
name(required): The name of the option.command: Multiple values available, separated by commas.title: Title associated with the name.label: Label for the option.text: URL or command to be executed when the option is selected.- Server-side variables
[[variable]]are available; see server-side variables. - Client-side parameters are available as
{parameter}, replaced in order of priority:- client side parameters passed to the srs
- query string parameters
- Server-side variables
acl: Permission settings for the option.css: CSS class for styling.opts: extra options can be used to modify behavior of the option on the client side for exampleopts="clipboard"scope: Limits the scope of the option to a single command in the user interface, can be separated by commasscope="orders,items".opts:uimenu: Renders directly in the options menu without a dialog.
type:pa_post: Execute a POST request with a single object selected in the user interface.pa_post_many: Execute a POST request with an array of selected objects.pa_post_clipboard: Execute a single POST with serialized clipboardpa_post_single: Executes a POST request with a query object.pa_blink: Opens an external link in a new window.pa_elink: Opens an external link in the same browser tab, replacing the current content.pa_mlink: Opens in a modal dialog within the application, typically used to display content or perform actions without navigating away from the current view.pa_download: Downloads a file from an external link; the download is initiated automatically without user interaction.pa_info: Simple message display; a value is required.v_(Name_of_the_component): Opens the specified component (given in theName_of_the_componentsection) at the top of the SRS view. The type name must start with the 'v_' prefix.
Examples
pa_post
Type pa_post requires opts="clipboard" on the command.
| XML | |
|---|---|
| XML | |
|---|---|
pa_mlink, pa_elink, pa_blink, pa_download
These types are used to open links in different ways.
- URL can be a relative or absolute path.
- Server-side variables
[[variable]]are available; see server-side variables. - Client-side parameters are available as
{parameter}, replaced in order of priority:- client side parameters passed to the srs
- query string parameters
| XML | |
|---|---|
Display custom component
Type attribute must start with the 'v_' prefix and contain the name of the component.