nerdexam
Microsoft

MB-500 · Question #335

MB-500 Question #335: Real Exam Question with Answer & Explanation

The correct answer is C. UIBuilder. To achieve this behavior, you need a custom UIBuilder class associated with your SysOperation batch class. In the UIBuilder's build() method, you can add custom logic to set the date picker to today's date when the checkbox is selected and make the date field dependent on the che

Question

A company uses Dynamics 365 Finance. You create a batch class for the company by using the SysOperationFramework. The data contract class contains a Boolean and a date field that are displayed in the dialog as a checkbox and date picker field, respectively. If the checkbox is selected, the date picker field must default to today's date unless users manually select a date. You need to implement the checkbox functionality. In which class should you implement the functionality?

Options

  • AService
  • BController
  • CUIBuilder
  • DContract

Explanation

To achieve this behavior, you need a custom UIBuilder class associated with your SysOperation batch class. In the UIBuilder's build() method, you can add custom logic to set the date picker to today's date when the checkbox is selected and make the date field dependent on the checkbox's 1. Create a UIBuilder Class: Create a class that extends SysOperationUIBuilder and associate it with your data contract class using the SysOperationContractProcessing attribute. 2. Override the build() Method: In your UIBuilder class, override the build() method. 3. Add Logic to Set Date: Inside the build() method, add code to interact with the controls on the Get a reference to the dialog form control for the date field. Get a reference to the dialog form control for the checkbox. Use the addBefore or addAfter methods to add a new control or modify an existing one. Implement logic that, when the checkbox's value changes, sets the date field to today's date if the checkbox is checked, or clears it otherwise. https://download.microsoft.com/download/A/1/E/A1EC8BED-1187-4F9C-8C84- 02431316F458/Introduction%20to%20the%20SysOperation%20Framework.pdf

Community Discussion

No community discussion yet for this question.

Full MB-500 Practice
A company uses Dynamics 365 Finance. You create a batch class for... | MB-500 Q#335 Answer | NerdExam