shortcut

Parent: app

Direct Properties:

PropertyTypeRequiredDefault ValueDetails
staticIdstringYesdata type=string; maxLen=255
The shortcut name identifies the shortcut and is the name that the shortcut is referenced using. To reference a shortcut use the "SHORTCUT_STATIC_ID" syntax wherever a shortcut is permitted The name will automatically be converted into all uppercase. All references to shortcuts must be in upper case.

Property Groups:

  • source
  • error
  • config
  • subscription
  • comments
source
PropertyTypeRequiredDefault ValueDetails
typeenumYeshtmlTextdata type=string; lov=STATIC
Valid values: functionBody htmlText htmlEscapeSpecialChars image jsEscapeSingleQuotes message jsMessageEscapeSingleQuotes
htmlCodemultiline stringYesdata type=multiline string; maxLen=32767
Applies whentype in (htmlText)type in (htmlEscapeSpecialChars)
languageenumYesplsqldata type=string; lov=STATIC
Valid values: plsql javaScript-mle
Applies whentype = functionBody
plsqlFunctionBodymultiline stringYesdata type=multiline string; maxLen=4000
Applies whentype = functionBody and language = plsql
javaScriptFunctionBodymultiline stringYesdata type=multiline string; maxLen=4000
Applies whentype = functionBody and language = javaScript-mle
textmultiline stringYesdata type=multiline string; maxLen=32767
Applies whentype = jsEscapeSingleQuotes
messageNamestringYesdata type=string; maxLen=255; textCase=UPPER
Applies whentype in (message)type in (jsMessageEscapeSingleQuotes)
imageUrlstringYesdata type=string; maxLen=255
Applies whentype = image
source {
  type: functionBody
  htmlCode: ```html
    value
  ```
  language: plsql
  plsqlFunctionBody: ```plsql
    value
  ```
  javaScriptFunctionBody: ```javascript-mle
    value
  ```
  text: ```
    value
  ```
  messageName: value
  imageUrl: value
}
error
PropertyTypeRequiredDefault ValueDetails
errorMessagemultiline stringNodata type=multiline string; maxLen=4000
If an error should occur during the processing of a shortcut then the following text is displayed.
error {
  errorMessage: ```
    value
  ```
}
config
PropertyTypeRequiredDefault ValueDetails
buildOptionreferenceNodata type=reference; lov=COMPONENT; references=buildOption
config {
  buildOption: @component
}
subscription
PropertyTypeRequiredDefault ValueDetails
masterreferenceNodata type=reference; lov=COMPONENT; references=shortcut
subscription {
  master: @component
}
comments
PropertyTypeRequiredDefault ValueDetails
commentsmultiline stringNodata type=multiline string; maxLen=4000
comments {
  comments: ```
    value
  ```
}

APEXlang Example

shortcut sample (
    staticId: value
    source {
        type: functionBody
        htmlCode: ```html
          value
        ```
        language: plsql
        plsqlFunctionBody: ```plsql
          value
        ```
        javaScriptFunctionBody: ```javascript-mle
          value
        ```
        text: ```
          value
        ```
        messageName: value
        imageUrl: value
    }
    error {
        errorMessage: ```
          value
        ```
    }
    config {
        buildOption: @component
    }
    subscription {
        master: @component
    }
    comments {
        comments: ```
          value
        ```
    }
)