Home » Microsoft » MB6-704 » What are two possible communication tools you can use to achieve this goal?
You are developing a solution that will delete some records from a specific table.
You need to add a button that has delete logic on a Click event. Users must be prompted for input in the form of Yes or No before executing the delete operation.
What are two possible communication tools you can use to achieve this goal? Each correct answer presents a complete solution.
A. Warning Boxes
B. Print, pause
C. Dialog boxes
D. Warning Info log
E. Error Info log
Correct Answer: BC
Explanation/Reference:
C: You can display a message in a modal dialog box by using the Box class.
Example:
DialogButton diagBut;
str strMessage = "The No button should have initial focus."; str strTitle = "Title";
;
diagBut = Box::yesNoCancel(
strMessage,
DialogButton::No, // Initial focus is on the No button.
strTitle);
Incorrect:
Not A: warning WarnBox
The OK button is the only one displayed in the dialog box. Use this dialog box for a warning message.
Note: Box::confirm Method [AX 2012]
Displays a simple dialog box that has NoYes::Yes and NoYes::No buttons.
Syntax
X++
client public static boolean confirm(
str _text,
[str _title,
str _bottomText])
Reference: Displaying a Message Box [AX 2012]