C2040-410 - IBM Notes and Domino 9.0 Social Edition Application Development Exam B
Go back to IBM
If the facet is named, which is true?
Only one control can be added to the editable area.
Jaden is looking for a way to show all the error messages from his validated fields in one place. Which of the following could he use to accomplish this?
Add a Display Errors control to the XPage which will then display all errors upon validation.
Helen is using a Repeat control to add a row to a table for each view entry in a Domino View data source. When she tests her code she sees 10 tables and not one table with 10 rows. How could she correct this?
Take the Table Header row and Footer row lines of source code and move them outside of the repeat control.
Mark has designed a mobile application with two mobile pages. For the first mobile page he set the pageName property to "viewMobilePage" and for the second mobile page he set the pageName property to "documentMobilePage". He designed the viewMobilePage to display a listing of customer names from the CustomersByName view. He designed the documentMobilePage to display the document details for the customer touched on the viewMobilePage. He specified "customerDoc" as the name for the Domino Document data source and the field with the customer phone number is named "phone". What can Mark do to add a touch control to send an SMS message to the customer currently displayed on the documentMobilePage?
In addition to monitoring Java heap usage, what other feature is enabled when a developer sets the "Show heap status" preference setting in IBM Domino Designer?
Run garbage collection.
Which is a true statement about XPages in the Notes client (XPiNC)?
XPiNC is a web based application running in the Notes client.
Which property does the Dojo Text Area control have that the Multiline Edit Box control does not?
Dojo Text Area has a trim property.
James has created an IBM Domino application that users will access over the web. He needs to create a link to open the application's "Using This Application" page. What URL string will he use?
Davis is concerned that the Extension Library REST Service is not secure. Which is a true statement?
An Extension Library REST service control honors all native IBM Notes and Domino security features.
Greg is designing a mobile application and would like to provide his mobile application users with a wheel selector interface to set a date value. How can he add a date wheel selector interface to his mobile input page?
Add an Edit Box control with the property and value of type="date".
William wants to show line numbers in the Source Editor. How can he accomplish that?
Right-click on the bar at the left-hand side of the editable area and select "Show Line Numbers".
Gabe is using the Calendar classes to create a repeat meeting. How does Gabe use the NotesCalendar class to create a repeating event?
Gabe needs to include an RRule item in the iCalendar data he is passing to the CreateEntry call.
Which statement is true about the Application Layout control?
To render properly, the Application Layout control must implement one of the oneuiv2.1 themes or a theme that extends a oneuiv2.1 theme.
Which server notes.ini property will set the maximum Java Heap size used by the HTTP process?
Jimmy wants to define a data source within his XPages application. Which option is a valid data source?
Object Data Source
How many of the JavaServer Faces (JSF) lifecycle phases involve the processing of events?
Which statement is true for the Single Page Application control for use on a mobile XPage?
There must be only one Single Page Application control as the container for all of the Application Page controls on the mobile XPage.
There is a case where the XPage needs to check for certain conditions of the XPage prior to submission to the server for processing. All data entry controls are configured with server-side validators. Which XSP method could be used to prevent a page submission?
Which statement is true when developing an XPage in IBM Domino Designer?
The XPages XML syntax is called XSP markup.
Akane is trying to decide between using @Command([RefreshWindow]) and @Command(ReloadWindow]) in a view action. What is the significant difference between the two?
@Command([RefreshWindow]) executes immediately. @Command(ReloadWindow]) executes after other functions in the action havecompleted.
When adding a custom control to his XPage, Dennis wants to display a custom message to the designer rather than the normal design representation of the custom control. How would he accomplish this?
In the custom control Properties view, select the Design Definition section and enter the custom XSP Markup.
Laura wants to add a flag to her XPages control, but does not see it in the All Properties section within IBM Domino Designer in Eclipse. How can she add a custom attribute?
Use the attr property under the basics section to add the custom attribute and value.
Jen added an Application Layout control to the ccAppLayout custom control she is developing. To the titleBarTabs in the configuration she added three <xe:pageTreeNode> nodes to open an XPage with a Domino View data source in the Customers, Parts and Sales applications respectively. The label property for the three tabs she set to "Customers Application", "Parts application" and "Sales Application". What must Jen do to show the "Customers Application" tab as selected when any of the "Customers" XPages is rendered in a browser?
For all the Customers XPages, pass a navigation path string to the navigationPath property in the configuration and code the selectionproperty for the <xe:pageTreeNode> node where label="Customers Application" with a regular expression to match all the navigationpath for all the Customers XPages.
A developer is working on an XPage and there is a client-side feature that needs to compute a value from a viewScope variable docStatus. Which Expression Language syntax will compute the value client-side?
There is a requirement in a XPage to display a dialog box to gather data from the user without losing the context of the underlying XPage. After the user enters FirstName, LastName, and MiddleInitial, the underlying XPage should be updated with the "Full Name". Which control should be used?
Which control, used to dynamically switch content, includes a useHash property to support switching content via a URL hash tag?
Louise is designing a mobile workflow application. Next to a Label control displaying "Approved?" she added a Toggle Switch control with a leftLabel set to "Yes" and the default rightLabel set to "No". Which event should Louise now code to test for when the mobile application user swipes the Toggle Switch from "No" to "Yes"?
Which property of the Form Table control is used to display an asterisk (*) before the label for any required fields?
If the facet name is computed which is true?
Multiple controls can be added to the editable area.
John wants to add a "data-role" attribute to his Edit Box control. Which can he use to accomplish this?
Using the attrs property of the Edit Box he can add a "data-role" and an associated value.
Twill is using the NotesDXLImporter class to import a text file containing the DXL for an IBM LotusScript agent that she would like to use in her application. However, the agent is not appearing after the import. Why?
She needs to set the DesignImportOption property to something other than its default value.
What two items are true regarding managed beans? (Choose two.)
Managed beans are a JSF framework feature.
Which control should Larry add to the left column area of an Application Layout to provide a menu selection interface that uses the "lotusSelected" style class to indicate that a menu choice was selected?
Slobo is working on a new XPages application. He has a requirement to use a Stylesheet (CSS). How would he use it on a XPage?
Add the CSS stylesheet in the Resources/Style Sheets section. Using the Resources tab in the Properties view of the XPage that needs to usethe CSS classes, use the Add Resource button and choose Style Sheet from the drop-down menu of choices.
Tyler has designed a viewMobilePage to display a listing of customer names from the CustomersByName view. During testing Tyler determined that to avoid scrolling he will need to restrict the number of customer names displayed on the viewMobilePage to ten. How can he do this?
Add the property and value of rows="10" to the <xe:dataView> control.
Which statement is true regarding the Extension Library Dialog control?
The Dialog is based on dijit.Dialog.
By default, in which file type are custom controls stored within the Eclipse workspace?
Which attribute of a facet specifies the location to display the facet's contents in its parent control?
What format does the NotesCalendar class use for the data in the calendar entries?
Jessica wants to design a Page that passes all data directly to the browser and treat the entire Page as HTML. How would she do this?
Click on "Render pass through HTML in Notes" in the Page properties.
James is creating an IBM LotusScript agent that will concatenate a string value and a numeric expression. Using the following code snippet, what will be the output? a$ = "500" b% = 200 c$ = "100" print (a$ & b%) + c$
Lynn would like to obtain the current date and time from the server hosting the database where his Formula code is executing. Which line of code could he use to do that?
myTime := @Now([SERVERTIME])
What value does this formula return? FIELD Items := 10; FIELD Values := 5; rate := 0.10; subtotal := Items * Values; subtotal * (1 + rate)
What is an Editable Area?
A region on a custom control that developers can modify when the custom control is placed on an XPage.
Gary is writing a view selection formula to only display documents which have a Status field value of "Complete". Which formula will display the correct documents?
SELECT Status = "Complete"
Marco has designed a mobile application with two mobile pages. For the first mobile page he set the pageName property to "viewMobilePage" and for the second mobile page he set the pageName property to "documentMobilePage". He designed the viewMobilePage to display a listing of customer names from the CustomersByName view. He designed the documentMobilePage to display the document details for the customer touched on the viewMobilePage. He specified "customerDoc" as the name for the Domino Document data source and the field with the customer phone number is named "phone". What can Marco do to add a touch control to dial the phone number for the customer currently displayed on the documentMobilePage?
Steven is using Java to write an agent in his application and needs to get a handle to the database that the agent is running in. How can Steven accomplish this?
Use the Session class getAgentContext method, and then make a call to the getCurrentDatabase method of the AgentContext class.