Connect data to your components with formulas

  • Release version: Xanadu
  • Updated August 1, 2024
  • 1 minute to read
  • Bind data exposed by local data resources to components with formulas on your UI Builder page.

    Before you begin

    Role required: ui_builder_admin

    About this task

    Data binding is the process of associating data with a UI element that displays the information. Before binding data to components you must add a data resource to your UI Builder page, see Add and configure data resources to a page for more information.

    Procedure

    1. Navigate to All > Now Experience Framework > UI Builder.
    2. Open an experience to work in or create an experience by selecting Create > Experience.
      See Configure how users interact with your applications in UI Builder for more information on creating experiences.
    3. Create or open a page.
    4. Add a data resource to your page.
    5. Add a component to your page.
      You need a component on your page before you can bind a data resource to it. For more information, see Customize UI Builder pages using components.
    6. Select the Configure tab from the configuration panel in UI Builder.
    7. Point to a field that you want to bind data to and select the dynamic data binding icon (Dynamic data binding icon.).
      Hovering over the bind data icon.
      The data binding modal appears.

      Data binding modal showing available data.

    8. Select the Formulas tab.
    9. Select and drag the formula you want to bind to the component into the field above.
      Select a formula from the list.

      For more information about formulas, see Supported functions in the UI Builder component formula editor.

    10. Fill in the fields of the formula.
      Data bind formula filled out with data from the local data resource.
    11. Select Apply.

      The component displays the property value or display value that you've selected.

      Component text field displays the formula bound from the data resource.

    12. Select Save in the UI Builder header.