試験PL-400J トピック3 問題157 スレッド

Microsoft PL-400Jのリアル試験問題集
問題 #: 157
トピック #: 3
組織は Dynamics 365 Sales を使用しています。アプリのリボンにカスタム ボタンを追加する予定です。
ビジネス ルールで指定された条件が満たされた場合にのみボタンが表示されるようにする必要があります。
使用できる 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

Yokoyama 2026-03-22 02:09:53

コメント

正解:
?」こちらは投票コメントになっております。普通のコメントに切り替えます。
ニックネーム: 送信 キャンセル
投票コメントをあげるごとに、選択した解答の投票数を1つ増やすことができます。

他人の解答コメントを賛成するのも、その解答に一票を入れることになります。したがって、すでに同じ意見の投票コメントが存在する場合、新規コメントをする代わりに賛成することもできます。

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡