Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Dynamics CE Tech Blog / Show button only when the r...

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

gopi.royal999@gmail.com Profile Picture gopi.royal999@gmail... 430
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

Comments

*This post is locked for comments