button

Parent: page

Children: menutype = menu, triggerActiontype = standard and action = triggerAction

Direct Properties:

PropertyTypeRequiredDefault ValueDetails
buttonNamestringYesdata type=string; maxLen=255
Enter the name used to reference the button being clicked. When this page is submitted, the value of REQUEST is set to this button name.
labelstringYesdata type=string; maxLen=255

Property Groups:

  • layout
  • appearance
  • behavior
  • confirmation
  • advanced
  • serverSideCondition
  • security
  • config
  • comments
layout
PropertyTypeRequiredDefault ValueDetails
sequencenumberYesdata type=number; maxLen=22
regionreferenceNodata type=reference; lov=COMPONENT; references=region
Select the region in which the button will be displayed.
slotstringYesdata type=string; lov=SLOTS
startNewLayoutbooleanYesfalsedata type=boolean
startNewRowbooleanYestruedata type=boolean
Applies whenstartNewLayout = false
rowCssClassesarray of stringsNodata type=string; maxLen=255
columnstringNodata type=string; lov=GRID_COLUMNS
newColumnbooleanYestruedata type=boolean
Applies whenstartNewLayout = false and startNewRow = false
columnSpanstringNodata type=string; lov=GRID_COLUMNS
rowSpannumberNodata type=number; maxLen=22
columnCssClassesarray of stringsNodata type=string; maxLen=255
columnAttributesarray of stringsNodata type=string; maxLen=255
horizontalAlignmentenumYesrightdata type=string; lov=STATIC
Valid values: left right
Applies whenslot in (TOP)slot in (TOP_AND_BOTTOM)slot in (ABOVE_BOX)slot in (BELOW_BOX)slot in (BOTTOM)
alignmentenumYesleftCenterdata type=string; lov=STATIC
Valid values: center centerBottom centerCenter centerTop left leftBottom leftCenter leftTop right rightBottom rightCenter rightTop
Applies whenslot = BODY
layout {
  sequence: 42
  region: @component
  slot: value
  startNewLayout: false
  startNewRow: false
  rowCssClasses: [
    value
    value
  ]
  column: value
  newColumn: false
  columnSpan: value
  rowSpan: 42
  columnCssClasses: [
    value
    value
  ]
  columnAttributes: [
    value
    value
  ]
  horizontalAlignment: left
  alignment: center
}
appearance
PropertyTypeRequiredDefault ValueDetails
buttonTemplatereferenceYesdata type=reference; lov=COMPONENT; references=buttonTemplate
hotbooleanYesfalsedata type=boolean
showAsDisabledbooleanYesfalsedata type=boolean
Applies whenbuttonTemplate supports IS_DISABLED

Specify whether to render the button or menu entries as disabled instead of hiding them if the defined server-side condition evaluates to FALSE.

templateOptionsarray of stringsNodata type=string; lov=TEMPLATE_OPTIONS
cssClassesarray of stringsNodata type=string; maxLen=255
Enter classes to add to this component. You may add multiple classes by separating them with spaces.
iconstringNodata type=string; maxLen=255
appearance {
  buttonTemplate: @component
  hot: false
  showAsDisabled: false
  templateOptions: [
    value
    value
  ]
  cssClasses: [
    value
    value
  ]
  icon: value
}
behavior
PropertyTypeRequiredDefault ValueDetails
typeenumYesstandarddata type=string; lov=STATIC
Valid values: standard menu
actionenumYessubmitPagedata type=string; lov=STATIC
Valid values: submitPage triggerAction redirectThisApp redirectOtherApp redirectUrl definedByDynamicAction resetPage nextPage previousPage
Applies whentype = standard
targetcomplexYesdata type=complex; maxLen=32767
Applies whentype = standard and action = redirectThisApp

Click the Target to invoke a modal dialog. You can enter the target to be called when this button is clicked. Only enter a target for buttons that should not invoke page processing when clicked (for example, a Cancel button).

targetcomplexYesdata type=complex; maxLen=32767
Applies whentype = standard and action = redirectOtherApp

Click the Target to invoke a modal dialog. You can enter the target to be called when this button is clicked. Only enter a target for buttons that should not invoke page processing when clicked (for example, a Cancel button).

targetUrlstringYesdata type=string; maxLen=4000
Applies whentype = standard and action = redirectUrl

Enter the URL to call when this button is clicked. Only enter a target for buttons that should not invoke page processing when clicked, for example a Cancel button.

executeValidationsbooleanYestruedata type=boolean
Applies whentype = standard and action in (submitPage)type = standard and action in (redirectUrl)type = standard and action in (definedByDynamicAction)type = standard and action in (triggerAction)
showProcessingbooleanYesfalsedata type=boolean
Applies whentype = standard and action = submitPage
warnOnUnsavedChangesenumNodata type=string; lov=STATIC
Valid values: doNotCheck
Applies whentype = standard
databaseActionenumNodata type=string; lov=STATIC
Valid values: insert update delete
Applies whentype = standard
requiresConfirmationbooleanYesfalsedata type=boolean
Applies whentype = standard
behavior {
  type: standard
  action: submitPage
  target: {
    page: value
    items: [
      value
      value
    ]
    clearCache: value
    action: value
    request: value
    anchor: value
    session: "&SESSION."
    debug: "&DEBUG."
    printerFriendly: N
    otherArgs: value
  }
  targetUrl: value
  executeValidations: false
  showProcessing: false
  warnOnUnsavedChanges: doNotCheck
  databaseAction: insert
  requiresConfirmation: false
}
confirmation
PropertyTypeRequiredDefault ValueDetails
messagemultiline stringYesdata type=multiline string; maxLen=4000
Applies whentype = standard and requiresConfirmation = true
styleenumNodata type=string; lov=STATIC
Valid values: information warning danger success
Applies whentype = standard and requiresConfirmation = true
confirmation {
  message: ```html
    value
  ```
  style: information
}
advanced
PropertyTypeRequiredDefault ValueDetails
htmlDomIdstringNodata type=string; maxLen=255
Enter the DOM ID for the button. If defined, the DOM ID is used as the ID for the button. The DOM ID can be useful when developing custom JavaScript behavior for the button. If the DOM ID is not defined, the button generates an internal ID.

Note: The template must include the #DOM_ID# substitution string, in order for the button to utilize the DOM ID entered.

staticIdstringYesdata type=string; maxLen=255
customAttributesstringNodata type=string; maxLen=2000
Enter HTML text to include for this button:
  • For buttons of type HTML Button, this text is added to the HTML element definition.
  • For buttons based on templates, your template must include the #BUTTON_ATTRIBUTES# substitution string.

You can use this attribute to control tab stops

preTextmultiline stringNodata type=multiline string; maxLen=4000
postTextmultiline stringNodata type=multiline string; maxLen=4000
requestSourceTypeenumNodata type=string; lov=STATIC
Valid values: staticValue databaseColumn item sqlQuerySingleValue sqlQueryMultipleValues plsqlExpression plsqlFunctionBody preference null
requestSourcemultiline stringNodata type=multiline string; maxLen=4000
Applies whenrequestSourceType is set
advanced {
  htmlDomId: value
  staticId: value
  customAttributes: value
  preText: ```html
    value
  ```
  postText: ```html
    value
  ```
  requestSourceType: staticValue
  requestSource: ```
    value
  ```
}
serverSideCondition
PropertyTypeRequiredDefault ValueDetails
typeenumNodata type=string; lov=STATIC
Valid values: always rowsReturned noRowsReturned expression functionBody request=Value request!=Value requestIsContainedInValue requestIsNotContainedInValue item=value item!=value itemIsNull itemIsNotNull itemIsZero itemIsNotZero itemIsNullOrZero itemIsNotNullAndNotZero itemContainsNoSpaces itemIsNumeric itemIsNotNumeric itemIsAlphanumeric itemIsInColonDelimitedList itemIsNotInColonDelimitedList textIsContainedInItem text=value text!=value textIsContainedInValue textIsNotContainedInValue userPreference=value userPreference!=value currentPage=page currentPage!=page currentPageInList currentPageNotInList currentPage=pageSubmitted currentPage!=pageSubmitted currentPageIsInPrinterFriendlyMode currentPageIsNotInPrinterFriendlyMode pageRegionIsReadOnly pageRegionIsNotReadOnly userIsAuthenticated userIsPublicUser inlineValidationErrorsDisplayed inlineValidationErrorsNotDisplayed sqlReportsOkToShowForwardButton sqlReportsOkToShowBackButton currentLanguage=value currentLanguage!=value currentLanguageIsContainedInValue currentLanguageIsNotContainedInValue clientBrowserIsMozilla clientBrowserIsIE7higher clientBrowserIsXhtmlCssCapable clientBrowserIsOther cgiEnvDadName=value cgiEnvDadName!=value cgiEnvServerName=value cgiEnvServerName!=value cgiEnvHttpHost=value cgiEnvHttpHost!=value never
sqlQuerymultiline stringYesdata type=multiline string; maxLen=4000
Applies whentype in (rowsReturned)type in (noRowsReturned)
languageenumYesplsqldata type=string; lov=STATIC
Valid values: sql plsql javaScript-mle
Applies whentype = expression
sqlExpressionmultiline stringYesdata type=multiline string; maxLen=4000
Applies whentype = expression and language = sql
plsqlExpressionmultiline stringYesdata type=multiline string; maxLen=4000
Applies whentype = expression and language = plsql
javaScriptExpressionmultiline stringYesdata type=multiline string; maxLen=4000
Applies whentype = expression and language = javaScript-mle
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
valuestringYesdata type=string; maxLen=4000
Applies whentype in (request=Value)type in (request!=Value)type in (requestIsContainedInValue)type in (requestIsNotContainedInValue)type in (currentLanguageIsContainedInValue)type in (currentLanguageIsNotContainedInValue)type in (currentLanguage!=value)type in (currentLanguage=value)type in (cgiEnvDadName=value)type in (cgiEnvDadName!=value)type in (cgiEnvServerName=value)type in (cgiEnvServerName!=value)type in (cgiEnvHttpHost=value)type in (cgiEnvHttpHost!=value)
itemstringYesdata type=string; maxLen=4000; textCase=UPPER
Applies whentype in (item=value)type in (item!=value)type in (VALUE_OF_ITEM_IN_COND_1_EQ_COND_2)type in (VALUE_OF_ITEM_IN_COND_1_NOT_EQ_COND_2)type in (itemIsNull)type in (itemIsNotNull)type in (itemIsZero)type in (itemIsNotZero)type in (itemIsNullOrZero)type in (itemIsNotNullAndNotZero)type in (itemContainsNoSpaces)type in (itemIsNumeric)type in (itemIsNotNumeric)type in (itemIsAlphanumeric)type in (itemIsInColonDelimitedList)type in (itemIsNotInColonDelimitedList)
preferencestringYesdata type=string; maxLen=4000; textCase=UPPER
Applies whentype in (userPreference=value)type in (userPreference!=value)
pageintegerYesdata type=integer; maxLen=4000
Applies whentype in (currentPage=page)type in (currentPage!=page)
pagesarray of integersYesdata type=integer; maxLen=4000
Applies whentype in (currentPageInList)type in (currentPageNotInList)
textstringYesdata type=string; maxLen=4000
Applies whentype in (textIsContainedInItem)type in (textIsContainedInValue)type in (textIsNotContainedInValue)type in (text=value)type in (text!=value)
valuestringYesdata type=string; maxLen=4000
Applies whentype in (item=value)type in (item!=value)type in (VALUE_OF_ITEM_IN_COND_1_EQ_COND_2)type in (VALUE_OF_ITEM_IN_COND_1_NOT_EQ_COND_2)
listarray of stringsYesdata type=string; maxLen=4000
Applies whentype in (itemIsInColonDelimitedList)type in (itemIsNotInColonDelimitedList)
itemstringYesdata type=string; maxLen=4000; textCase=UPPER
Applies whentype = textIsContainedInItem
valuestringYesdata type=string; maxLen=4000
Applies whentype in (textIsContainedInValue)type in (textIsNotContainedInValue)type in (text=value)type in (text!=value)
serverSideCondition {
  type: always
  sqlQuery: ```sql
    value
  ```
  language: sql
  sqlExpression: ```sql
    value
  ```
  plsqlExpression: ```plsql
    value
  ```
  javaScriptExpression: ```javascript-mle
    value
  ```
  plsqlFunctionBody: ```plsql
    value
  ```
  javaScriptFunctionBody: ```javascript-mle
    value
  ```
  value: value
  item: value
  preference: value
  page: 42
  pages: [
    42
    42
  ]
  text: value
  list: [
    value
    value
  ]
}
security
PropertyTypeRequiredDefault ValueDetails
authorizationSchemeenumNodata type=reference; lov=COMPONENT; references=authorization
Valid values: mustNotBePublicUser
security {
  authorizationScheme: mustNotBePublicUser
}
config
PropertyTypeRequiredDefault ValueDetails
buildOptionreferenceNodata type=reference; lov=COMPONENT; references=buildOption
config {
  buildOption: @component
}
comments
PropertyTypeRequiredDefault ValueDetails
commentsmultiline stringNodata type=multiline string; maxLen=4000
comments {
  comments: ```
    value
  ```
}

APEXlang Example

button sample (
    buttonName: value
    label: value
    layout {
        sequence: 42
        region: @component
        slot: value
        startNewLayout: false
        startNewRow: false
        rowCssClasses: [
          value
          value
        ]
        column: value
        newColumn: false
        columnSpan: value
        rowSpan: 42
        columnCssClasses: [
          value
          value
        ]
        columnAttributes: [
          value
          value
        ]
        horizontalAlignment: left
        alignment: center
    }
    appearance {
        buttonTemplate: @component
        hot: false
        showAsDisabled: false
        templateOptions: [
          value
          value
        ]
        cssClasses: [
          value
          value
        ]
        icon: value
    }
    behavior {
        type: standard
        action: submitPage
        target: {
          page: value
          items: [
            value
            value
          ]
          clearCache: value
          action: value
          request: value
          anchor: value
          session: "&SESSION."
          debug: "&DEBUG."
          printerFriendly: N
          otherArgs: value
        }
        targetUrl: value
        executeValidations: false
        showProcessing: false
        warnOnUnsavedChanges: doNotCheck
        databaseAction: insert
        requiresConfirmation: false
    }
    confirmation {
        message: ```html
          value
        ```
        style: information
    }
    advanced {
        htmlDomId: value
        staticId: value
        customAttributes: value
        preText: ```html
          value
        ```
        postText: ```html
          value
        ```
        requestSourceType: staticValue
        requestSource: ```
          value
        ```
    }
    serverSideCondition {
        type: always
        sqlQuery: ```sql
          value
        ```
        language: sql
        sqlExpression: ```sql
          value
        ```
        plsqlExpression: ```plsql
          value
        ```
        javaScriptExpression: ```javascript-mle
          value
        ```
        plsqlFunctionBody: ```plsql
          value
        ```
        javaScriptFunctionBody: ```javascript-mle
          value
        ```
        value: value
        item: value
        preference: value
        page: 42
        pages: [
          42
          42
        ]
        text: value
        list: [
          value
          value
        ]
    }
    security {
        authorizationScheme: mustNotBePublicUser
    }
    config {
        buildOption: @component
    }
    comments {
        comments: ```
          value
        ```
    }
)