Martha has a Submit button on her Timesheet XPage. When clicked, the button uses the Save Document simple action to save the data to the underlying document. What parameters does Martha have to provide to the Save Document simple action?
A. none
B. pageName, mergeConflicts
C. forceSave, createResponse
D. documentName, saveImmediate
Marta needs to store a value and reuse it throughout the life of each Web user's interaction with her XPages application. How should she set the value named 'Title' to 'Senior Project Manager?'
A. sessionScope.Title= "Senior Project Manager"
B. applicationScope.Title= "Senior Project Manager"
C. sessionScope.setValue("Title", "Senior Project Manager")
D. applicationScope.setValue("Title", "Senior Project Manager")
Chester has an XPage that is reporting an Error 500 HTTP Web Server: Command Not Handled Exception. How can he get more details about the problem?
A. Double-click Application Properties in the applications navigator, select the XPages tab, and enable the "Display default error page" option.
B. Double-click Application Properties in the applications navigator, select the XPages tab, and disable the "Display default error page" option.
C. Click the Application title in the applications navigator, select the Properties View, select the Design tab, and enable the "Display default error page" option.
D. Click the Application title in the applications navigator, select the Properties View, select the Design tab, and disable the "Display default error page" option.
Hadi is creating a new XPage. His XPage design now shows the company logo and banner. How can Hadi now add fields to the XPage?
A. Right-click where each field should be placed and select Insert > Field and select the type of field (such as Edit Box, Check Box, Radio Button, and so on).
B. For each field, drag the associated type of control (such as Edit Box, Check Box, Radio Button, and so on) from the Core Controls to the XPage design.
C. For each field, drag the associated type of control (such sa Edit Box, Check Box, Radio Button, and so on) from under XPages on the Applications panel to the XPage design.
D. On the XPage design, click and drag to draw a box to create each field. As the mouse button is released for each field box, select the type of control to associate with the field (such as Edit Box, Check Box, Radio Button, and so on).
Olivia is writing a Discussion application using XPages. She added a button on her main topic XPage to create a response document for this discussion. What should she do to generate the response document?
A. Add a Create New Document simple action to the form QuerySave event
B. Add a Create New Document simple action to the button onclick event
C. Add a Create Response Document simple action to the button onclick event
D. Add a Create Response Document simple action to the form QuerySave event
Pablo has created an XPage to use for browsing and editing customer data. He would like to add a button which asks users if they are sure that they want to update the customer data. The button saves the changes if users indicate that they are sure. How can Pablo create this button?
A. Drag a button control from the core controls onto the XPage canvas. From the Control properties, select Save as the button type, and enable the Confirm option.
B. Drag a button control from the core controls onto the XPage canvas. From the Control properties, select Save as the button type. A confirmation prompt is included by default.
C. Drag a button control from the core controls onto the XPage canvas. From the Control properties, select Submit as the button type. From the events panel, add a server-side simple action. Select Confirm Action for the action.
D. Drag a button control from the core controls onto the XPage canvas. From the Control properties, select Submit as the button type. From the events panel, add a client-side simple action. Select Confirm Action for the action.
Zachary is creating a new theme for his XPage. How is the theme file coded in the Resources area of the application?
A. XML
B. CSS
C. HTML
D. JavaScript
Clarice has an XPage where she needs to store a value in a browser cookie. Given that the value's name is 'language' and the value is 'Spanish,' what JavaScript code can she use to do that?
A. cookie.language = "Spanish"
B. cookie.setValue("language") = "Spanish"
C. var response = facesContext.getExternalContext().getResponse();var userCookie = new javax.servlet.http.Cookie("Cookie", "Spanish");response.addCookie(userCookie);
D. var response = facesContext.getExternalContext().getResponse();var userCookie = new javax.servlet.http.Cookie("language", "Spanish");response.addCookie(userCookie);
Monica has bound the view named "Open invoices" into her XPages application, which is accessible as view1. For the convenience of the user, she likes to display the total amount of all invoices. How can she calculate this amount?
A. var total = view1.getItemSumDouble ('amount');
B. var allDocs = view1.AllDocuments();var total = allDocs.AddValues('amount');
C. var total:double = 0;var doc:NotesDocument = view1.getFirstDocument();while(doc != null){total = doc.getItemValueDouble('amount') + total;var tmpdoc:NotesDocument = view1.getNextDocument ();doc.recycle();doc = tmpdoc}
D. var total:double = 0;var doc:NotesDocument = view1.getFirstDocument();var item:NotesItem;while(doc != null){item = doc.getFirstItem('amount');total = item + total;var tmpdoc:NotesDocument = view1.getNextDocument();doc.recycle();doc = tmpdoc}
The DiscussionTopics 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 DiscussionTopics XPage. What is one way that he can do this task?
A. 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();
B. 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(); 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 Document. Specify DiscussionTopics as the argument.
D. 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 DiscussionTopics as the argument.
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only IBM exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your C2040-986 exam preparations and IBM certification application, do not hesitate to visit our Vcedump.com to find your solutions here.