Quantcast
Channel: Dynamics 365 Customer Engagement
Viewing all articles
Browse latest Browse all 286

Show button only when the record is selected - Selection Count Rule

$
0
0
Hi Everyone,

Today I was working on adding some button on the Subgrid and the requirement was to show the button when at least single record is selected.

We can easily achieve this using a Enable Rule - Selection Count Rule. Here is the enable rule of the same, we just have to attach this rule to the button command.

      <EnableRule Id="kodo.kodo_outstandingrepairs.SelectionCount.EnableRule">
        <SelectionCountRule AppliesTo="PrimaryEntity"Minimum="1"Default="false"/>
      </EnableRule>

Hope this helps.

--
Happy 365'ing
Gopinath

Viewing all articles
Browse latest Browse all 286

Trending Articles