IBM C2040-922 - Developing IBM Lotus Domino 8.5.2 Applications: Advanced XPage Design Exam

Question #6 (Topic: Topic 1)
Aaron has created an XPages application that has a couple of XPages to surface the same
data to two different application roles in two completely different user interfaces. Each role
can manipulate parts of the data, but in both cases, the data must adhere to the same
business logic and rules. What would be the best way for Aaron to implement the same
business logic in each XPage?
A. Create a common Client-Side JavaScript Library for the XPages to share that the user interface can use to execute the business logic B. Use a series of Custom Controls to hold the business logic and share them amongst the XPages C. Create a common Server-Side JavaScript Libraryfor the XPages to share that the user interface can use to execute the business logic D. The user interface and the business logic in an XPage can not easily be separated and must be maintained in each XPage
Answer: C
Question #7 (Topic: Topic 1)
Liz wants to make the user confirm their action when they try and delete a document from
the application using a delete button. The confirmation message needs to display the title
of the document in it. What is the best way to compute this message?
A. In theclient side event of the delete button use the following code: if (confirm("Are you sure you want to delete the document " + document1.getItemValueString('title'))){ return true; }else{ return false; } B. In the client side event of the delete button use the following code: if (confirm("Are you sure you want to delete the document " + "#{javascript:document1.getItemValueString('title')}")){ return true; }else{ return false; } C. In the server side event of the delete button use the following code: if (confirm("Are you sure you want to delete the document " + document1.getItemValueString('title'))){ return true; }else{ return false; } D. In the server side event of the delete button use the following code: if (confirm("Are you sure you want to delete thedocument " + "#{javascript:document1.getItemValueString('title')}"){ return true; }else{ return false; }
Answer: B
Question #8 (Topic: Topic 1)
Jo wants to make a configurable list of countries availableto the client side JavaScript of
her XPage for use in various different fields on the web page. What would be the most
efficient approach?
A. Add an @DbColumn to a server side script library to look up the country list in each place it is required B. Perform an AJAX request to get the country list from another XPage when it is required using dojo.xhrGet C. Use the Output Script control to create a global Client Side JavaScript object to reference when the list is required D. Add a @Decorum to a client side script library to look up the country list in each place it is required
Answer: C
Question #9 (Topic: Topic 1)
Peter wants to enhancethe view controls used in his application so that they can display
rich content from the underlying document collection. He wants to do this in an efficient
manner as the application has thousands of documents and is accessed by hundreds of
concurrent users. Which of the following approaches should John take to add this
enhancement to his application most efficiently?
A. Modify the Domino view to include the rich text field and add a new column to his view controls that automatically binds to this field. B. Add a computed column to the view control that opens each document, set the column content type to HTML, and bind the rich text content from each document using JavaScript code. C. Add an action to each column that will retrieve the rich text content from the underlying document when clicked, assign it to a computed field with content type set to HTML, and then display that field. D. Nothing - XPages view controls cannot display rich content.
Answer: C
Question #10 (Topic: Topic 1)
Elaine wants to use the "webkit" stylesheet for webkit browsers. Which object will enable
her to do this?
A. facesContext.getExternalContext().getRequest().getHeader("User-Agent") B. facesContext.getExternalContext().getContext().getHeader("User-Agent") C. facesContext.getRequest().getHeader("User-Agent") D. facesContext.getExternalContext().getHeader("User-Agent")
Answer: A
Download Exam
Page: 2 / 14
Total 66 questions