C2040-986 Free Dumps Study Materials
Question 5: The Discussion Topics XPage includes a button to take users to the Feedback XPage. Ted has
created the Feedback XPage. He now wants to add a Save and close button that saves the user's
input, and take the user back to the Discussion Topics XPage.
What is one way that he can do this task?
A. Drag a new Button control onto the XPage canvas. Leave the button type as Button. For the
onclick event, add a simple action selecting Save Document. Specify Discussion Topics as the
argument.
B. Drag a new Button control onto the XPage canvas. Set the button type to Submit. For the oncllick
event, add the following server-side JavaScript: Feedback.save(); context.getUrl("...");
C. Drag a new Button control onto the XPage canvas. Leave the button type as Button. for the onclick
event, add a simple action selecting Save Data Sources. Specify Discussion Topics as the argument.
D. Drag a new Button control onto the XPage canvas. Set the button type to Submit. For the onclick
event, add the following server-side JavaScript: Feedback.save();
Correct Answer: C