When to use Bindings in EA Dashboards

Multiple times there is a requirement to change the result of all other dashboards lenses/component whenever we are making any selection on any component in dashboard lense we need to use bindings.

Binding makes your Dashboards widgets Interactive to interact with each other based on selection or result of other widgets


A very basic example is the toggle button, Suppose the user is viewing the top 10 Opportunity based on Opportunity and now user also wanted to see the Top 10 Opportunity based on Account Name, Industry in this case we need to use the concept of Bindings.

Note: – Before we create binding there is the concept of Facets which is the simplest and most common way to specify interactions between widgets. When faceted, selections made in one widget automatically filter all other widgets using steps from the same dataset. Faceting is easy to set up, but it is limited. It can only filter other steps and works only on steps from the same dataset. To create interactions outside this scope, use bindings.

Types of Bindings in EA Dashboards

  • Selection Binding
  • Result Binding

Selection Binding

Selection binding is a method used to update a step based on the selection in another step. Selection bindings are interaction-driven, where itโ€™s evaluated each time the user selects something in a widget. As an example, we can consider the same Toggle Example that we discussed earlier in this blog.

Result Binding

Results binding is a method used to update a step based on the results of another step. For Example, We wanted to display the information about all the users whose role is under the current logged in the user role. like below

  • CEO (Logged in User Role)
    • CIS
    • VP of Sales Marketing

In the above use Case, First, we need to fetch all the Roles that comes whose parent role name is CEO and then in the second step with the help of result binding we need to get the information about the user that comes under the role that we get in the first step. It will look like below

Step1 – Get the Roles under Role of Logged In User

Step2 – Get the User comes under role = result of step1.

In the next blog post, we will start implementing different actual bindings.

Thanks for reading ๐Ÿ™‚ Sharing is Caring ๐Ÿ˜‰

Resource: – Salesforce Developer Link

Leave a Reply