試験PL-400J トピック3 問題157 スレッド
Microsoft PL-400Jのリアル試験問題集
問題 #: 157
トピック #: 3
問題 #: 157
トピック #: 3
組織は Dynamics 365 Sales を使用しています。アプリのリボンにカスタム ボタンを追加する予定です。
ビジネス ルールで指定された条件が満たされた場合にのみボタンが表示されるようにする必要があります。
使用できる 2 つのコード セグメントはどれですか? それぞれの正解は完全な解決策を示します。
注: 正しく選択するたびに 1 ポイントの価値があります。
ビジネス ルールで指定された条件が満たされた場合にのみボタンが表示されるようにする必要があります。
使用できる 2 つのコード セグメントはどれですか? それぞれの正解は完全な解決策を示します。
注: 正しく選択するたびに 1 ポイントの価値があります。
おすすめの解答:B,D 解答を投票する
B: formContext.ui.refreshRibbon(refreshAll);
Causes the ribbon to re-evaluate data that controls what is displayed in it.
Indicates whether all the ribbon command bars on the current page are refreshed. If you specify false, only the page-level ribbon command bar is refreshed. If you do not specify this parameter, by default false is passed.
Remarks: This function is typicaly used when a ribbon (RibbonDiffXml) depends on a value in the form.
After your code changes a value that is used by a rule, use this method to force the ribbon to re-evaluate the data in the form so that the rule can be applied.
D: If role is there - just refresh the ribbon to see the button
if (isButtonEnabled) {
formContext.ui.refreshRibbon();
}
},
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-ui
/refreshribbon
https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/302049/show-hide-button-bases-on- different-criteria/871674
Causes the ribbon to re-evaluate data that controls what is displayed in it.
Indicates whether all the ribbon command bars on the current page are refreshed. If you specify false, only the page-level ribbon command bar is refreshed. If you do not specify this parameter, by default false is passed.
Remarks: This function is typicaly used when a ribbon (RibbonDiffXml) depends on a value in the form.
After your code changes a value that is used by a rule, use this method to force the ribbon to re-evaluate the data in the form so that the rule can be applied.
D: If role is there - just refresh the ribbon to see the button
if (isButtonEnabled) {
formContext.ui.refreshRibbon();
}
},
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-ui
/refreshribbon
https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/302049/show-hide-button-bases-on- different-criteria/871674
Yokoyama 2026-03-22 02:09:53
コメント
他人の解答コメントを賛成するのも、その解答に一票を入れることになります。したがって、すでに同じ意見の投票コメントが存在する場合、新規コメントをする代わりに賛成することもできます。
コメントを通報する
コメント中
今すぐ 新規登録 / ログイン (無料です)。