Loading
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          DatePicker Control

          DatePicker Control

          The DatePicker control element defines a special UI control that lets the user select a date value.

          Required Editions

          Available in: Enterprise, Performance, and Unlimited Editions

          The table lists the DatePicker control attributes.

          Attribute Description Data Type Required
          name Identification of this DatePicker Any String yes
          disabled Indicates whether the DatePicker control is enabled. If this attribute is used, all edit and access rights configurations that control the access to this UI element are suspended. Boolean no

          The DatePicker control element can contain these sub-elements.

          • Bindings
          • Resource

          Bindings

          The DatePicker control Bindings node consists of binding elements that can be used in the DatePicker control element.

          Attribute Description Value or Pattern
          target Describes the actual UI element. string [RootLabel; ShowCategory; AddItem]
          binding Source of the binding. string
          bindingMode Binding mode is used to control the updating process. string [ONE_WAY or TWO_WAY or ONE_TIME]

          Resource

          The DatePicker control node consists of binding resource elements that can be used in the DatePicker control element. 

          Attribute Description Value or Pattern
          target Describes the actual UI element. string [Label]
          type Defines how the resource is shown. string [Label]
          Id The Id is used to map the localized resource and the actual element in the UI. string
          defaultLabel One default value can be set, depending on the type, that is, defaultText, defaultLabel, and defaultImage. string

          Sample XML Code.

          <DatePickerField name="DatePickerCtrl" disabled="false">
                       <Bindings>
                         <Resource target="Label" type="Label" defaultLabel="defaultLabel" id="labelId" />
                         <Binding target="Value" binding="valueBinding" bindingMode="TWO_WAY" />
                       </Bindings>
          </DatePickerField>
           
          Loading
          Salesforce Help | Article