Learn About IBM Lotus Notes Domino 8 Developing Web Applications

These questions are based on 836: IBM Lotus Notes Domino 8 Developing Web Applications
A Self Test Software Practice Test

Objective: Application architecture.
Sub-objective: Designing Web applications that read non-Domino data.

Single answer, multiple-choice

Which design element can use LotusScript in a Web application?

A.    An Action element.
B.    An Event element.
C.    A Hotspot element.
D.    An Agent element.

Answer:
D

Tutorial:
You can use LotusScript in a Web application only when using it with an Agent design element. A Web Agent can retrieve data from servers, which are non-Domino servers, over the Internet. A Web Agent cannot be executed within a Web browser. However, it can be executed from a Web browser; when this occurs, the Web Agent runs in the back end on the Lotus Domino server.

Although you can use LotusScript to write an Event, Hotspot or Action element, you cannot use LotusScript with these design elements when you are using them in a Web browser.

Reference:

Domino Designer 8 Help > Programming Domino For Web Applications > Web agents

Objective: Design elements.
Sub-objective: Create, modify and troubleshoot views for Web clients.

Single answer, multiple-choice

You created a form, and now you want to embed View elements based on certain conditions in this form. Each View element should be displayed in the same way to Notes clients and to Web-browser users. However, you want to ensure you will be able to display a different embedded view in the form. What should you do?

A.    Select Create, then Embedded Element, then View. Select the view and select the Choose a View based on a formula option from the Insert Embedded View dialogue box.
B.    Select Create, then Embedded Element, then View. Select the View. Enter the code in the Hide paragraph if formula is true option on the Hide-When tab in the Embedded View Properties dialogue box.
C.    Use the SELECT reserved word to choose between different Views.
D.    This cannot be done with embedded Views.

Answer:
A

Tutorial:
You should select Create, then Embedded Element, then View, and select the Choose a View based on a formula option from the Insert Embedded View dialogue box. Using this method, you can program an embedded View element to be displayed based on different conditions. You then need to write the formula that will select the Views that you want to display in the Form, Subform or Page element.

When a View is embedded on a Page or a Form, the size and appearance of the View can be controlled by settings configured in the Embedded View Properties. An embedded View will be displayed the same way in both in the Notes client and in the Web browser. You can set its properties in the Embedded View Properties.

The remaining options are incorrect. You will not be able to display different embedded View elements in the form by using Hide paragraph if formula is true on the Hide-When tab. To hide the embedded View on a specific condition, you should use this option. This option will not let you display different embedded Views in a Form, a Subform or a Page.

Using the SELECT reserved word would not enable you to accomplish the task in this scenario. You should use the SELECT reserved word to display different documents when an Agent element is being used. You also can use SELECT when you want to show selective Documents in a View or replicate selective Documents from one server to another.

Reference:

Domino Designer 8 Help > Application Design > Designing views > Displaying views in Web applications > Creating an embedded view or embedded folder

Objective: Programming.
Sub-objective: Use CGI variables.

Single answer, multiple-choice

You want to capture the IP addresses of Web-browser users who will submit a form in the SURVEY.NSF database. Which CGI variable should you use?

A.    Server_Port
B.    Remote_Addr
C.    Remote_Host
D.    Remote_User

Answer:
B

Tutorial:
You should use the Remote_Addr CGI variable to capture the IP addresses of the Web-browser users who will submit the form. The Domino server uses CGI variables to capture certain information about Web-browser users when they open or save documents. For example, the CGI variable Remote_Ident will contain the Web-browser user’s name and the CGI variable Remote_Addr will contain the IP Address.

Different CGI variables can be used to capture different sets of information. For example, you can use the Remote_Ident variable to retrieve the remote user name. To capture the value of a CGI variable on the form being submitted by a Web-browser user, simply create a text field with the name of the CGI variable on the form.

You should not use the Server_Port CGI variable. This CGI variable returns the server port to which the request was sent.

You should not use the Remote_Host CGI variable. This CGI variable returns the remote host name from which the request was generated.

You should not use the Remote_User CGI variable. This CGI variable returns the authentication method, which returns the user that has been authenticated by the authentication method.

Reference:
Domino Designer 8 Help > Application Design > URL commands for Web applications > Common Gateway Interface (CGI) programs > Table of CGI variable names

Objective: Programming.
Sub-objective: Utilize HTML option control at field and form level.

Single answer, multiple-choice

You want to configure pass-thru HTML for a specific field. You want to allow all pass-thru HTML by using the DisablePassThruHTML option. Which value should you use for the DisablePassThruHTML option to meet this goal?

A.    0
B.    1
C.    2
D.    4

Answer:
A

Tutorial:
You should set the value of the DisablePassThruHTML option to 0. When you set the value of 0 to DisablePassThruHTML, it allows all pass-thru HTML for the field. You can disable pass-thru HTML at the server level, as well. When you disable the pass-thru HTML at the field level, it overrides the server settings for pass-thru HTML.

For a specific field, you can specify at what level you want to disable pass-thru HTML by using DisablePassThruHTML. The values that you can use are:

•    0 – allows all pass-thru HTML.
•    1 – specifies only [<and>] tag.
•    2 – uses Notes editor paragraph style HTML for pass-thru HTML.
•    4 – uses Rich Text field to mark pass-thru HTML.
•    7 – disables all pass-thru HTML.

Reference:

Domino Designer 8 Help > Application Design > Designing fields > Controlling the HTML generated for a field

Objective: Security.
Sub-objective: Set database access: Use Maximum Internet name and password.

Single answer, multiple-choice

The following ACL settings have been configured for the HELPDESK.NSF database that resides on the AppServer1 Domino server:

Default entry = "Author"
Anonymous entry = "Reader"
WebUsers group entry = "Editor"

The "Maximum Internet name and password" field is set to "No Access."

John is a member of the WebUsers group. Assuming that server AppServer1 has been set up to allow anonymous access, what access level will John have when he accesses this database from a Web browser?

A.    Author.
B.    Reader.
C.    Editor.
D.    No Access.

Answer:
D

Tutorial:
John will have No Access when he accesses this database from a Web browser. To control anonymous access to a database, an ACL entry name of Anonymous should be added to the database ACL. The Domino server on which the database resides also must be configured to allow anonymous access. The access level assigned to the Anonymous entry in the database ACL should be set to the level required by users who should not have to authenticate in order to perform a database operation.

If a user is accessing the database anonymously and then attempts to perform an operation that exceeds the access level of the Anonymous ACL entry, Domino will challenge the user to authenticate before it allows the user to proceed with the database operation.

The Maximum Internet name & password Advanced ACL setting should be set to the highest level of access required by any Web-browser user, regardless of whether or not authentication is required. For example, if anonymous Web-browser users can read documents in the database and certain authenticated Web browser users must be able to create and edit documents in the database, the Maximum Internet name & password Advanced ACL setting should be set to Editor. Only then would the database ACL impose the proper access on the Web-browser user.

Reference:

Domino Designer 8 Help > Application Management > Security in an application > The database access control list > Acceptable entries in the ACL

Like what you see? Share it.Google+LinkedInFacebookRedditTwitterEmail
cmadmin

ABOUT THE AUTHOR

Posted in Archive|

Comment: