exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 3 question 22 discussion

Actual exam question from Microsoft's PL-400
Question #: 22
Topic #: 3
[All PL-400 Questions]

DRAG DROP -
A company has a model-driven app.
A form that validates the date entered requires a custom button. The button must be available only under certain conditions.
You need to define the CommandDefinition in the RibbonDiffXML to meet the conditions for the button.
Which elements should you use? To answer, drag the appropriate elements to the correct conditions. Each element may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Display Rule -
When configuring ribbon elements, you can define specific rules to control when the ribbon elements will display.

Box 2: Action -
Define the actions to be performed by a command bar or ribbon control in a <CommandDefinition> element together with rules that control whether the control is enabled or visible in the ribbon.

Box 3: Enable Rule -
When configuring ribbon elements, you can define specific rules to control when the ribbon elements are enabled.
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/define-ribbon-enable-rules https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/define-ribbon-display-rules https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/define-ribbon-actions

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
CoktaiiL
Highly Voted 2 years, 6 months ago
shouldn't it be 1) display rule 2) display rule 3) enable rule because a display rule controls when the ribbon elements will DISPLAY (https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/define-ribbon-display-rules) and the enable rule controls when the ribbon elements are ENABLED. (https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/define-ribbon-enable-rules) question 1 & 2 is "make the button APPEAR" and question 3 is "prevent the button from being uses" witch would be DISABLE button action doesn't make any sence for this questions because they "define the actions to be performed by a command bar or ribbon control" https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/define-ribbon-actions
upvoted 30 times
...
zukito3
Highly Voted 2 years, 7 months ago
The second question should be Display rule, because de documentation says: "<EntityPrivilegeRule> Use this kind of rule to display ribbon elements when a user has specific privileges for an entity. You must specify the privilege depth and the specific privilege you want to check." . https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/customize-dev/define-ribbon-display-rules?view=op-9-1 So the orders of aswer are: 1) Enable rule 2) Display rule 3) Enable rule
upvoted 10 times
PGG
2 years, 5 months ago
1) Should be Display rule -> You can Display a Non enabled control, you just won't be able yo use it. 2)Display 3)Enable
upvoted 5 times
PGG
2 years, 5 months ago
Sorry you are right, Disabled buttons are not Displayed
upvoted 2 times
...
...
...
itmaxuser
Most Recent 2 weeks, 4 days ago
Final Answer: Enable Rule → HasPrivilege Display Rule → RecordIsDirty Action → InBulkOperation
upvoted 1 times
...
Juan0414
1 month, 3 weeks ago
The answer should be: Display rule - https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/define-ribbon-display-rules#formstaterule Display rule - https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/define-ribbon-display-rules#entityprivilegerule Enable rule - https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/define-ribbon-enable-rules#form-state-rule
upvoted 1 times
...
powerapps_923023
3 months ago
It is 100% 1) display rule 2) display rule 3) enable rule
upvoted 1 times
...
Pl4002024
9 months ago
Still do not get why the first would be display
upvoted 1 times
...
dhanushkalk
11 months, 1 week ago
Display rules are evaluated server-side, while enable rules are evaluated client-side. As a result, there are some types of rules that can be used in one but not the other. For example, you can only use an EntityPrivilegeRule in a display rule, but a CustomRule can only be used in an enable rule. 1) display rule 2) display rule 3) enable rule https://community.dynamics.com/forums/thread/details/?threadid=84ff3a65-4b76-4d1b-8ef4-5c0bae4ba2f7#:~:text=Display%20rules%20are%20evaluated%20server,used%20in%20an%20enable%20rule.
upvoted 3 times
...
4e8b388
12 months ago
Display Enable Enable
upvoted 2 times
...
SumitChavan
1 year, 1 month ago
I feel it would be : 1. Display Rule 2. Display Rule 3. Enable Rule
upvoted 2 times
...
At09
1 year, 7 months ago
OK it's enable , display, enable
upvoted 2 times
...
jkaur
1 year, 8 months ago
Enable;Display;Enable
upvoted 2 times
...
chiari_do
1 year, 11 months ago
Display Enable Enable
upvoted 4 times
...
whiteblack
1 year, 11 months ago
1. Display rule 2. Enable rule 3. Action
upvoted 3 times
...
ziad19
2 years ago
1) Display Rule https://balugajjala.wordpress.com/2017/06/07/show-hide-button-form-state-rule/ 2) Enable Rule https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/define-ribbon-enable-rules#record-privilege-rule
upvoted 1 times
...
DimpleG
2 years, 3 months ago
Display Rule Enable Rule Enable Rule
upvoted 6 times
...
rogrod
2 years, 7 months ago
Option 2 must be "Enable Rule". Display rule can be used for entity privileges: <EntityPrivilegeRule> https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/define-ribbon-display-rules#control-when-ribbon-elements-are-displayed But questios says "...when the user has write privilege on the record" (not entity privilege), and Enable Rule can do it: https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/define-ribbon-enable-rules#record-privilege-rule
upvoted 7 times
chiari_do
1 year, 11 months ago
Thank you! Agree
upvoted 2 times
...
...
MarioM
2 years, 7 months ago
Enable;Display;Enable Enable works in front end; Display - in back end.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago