Header Ads Widget

Module 19: Validation

 

Validation


01. The validation unit for the Orders form is set to Item. This master-detail form contains an Order block and a multi record Order Items block. Why might you want to create a When-Validate-Record trigger on the Orders block in this form?                                                                                                                                         

A. To check that all required items in the Orders block have values.                                                             

B. To check that all required items in the Order Items block have values.                                                               

C. To check that the shipping data for is not earlier than the order date.                                                               

D. To perform some logic whenever a user navigates to a different record in the queried block.

Answer: C

02. You are testing a form. How can you programmatically disable validation during testing?                                                                                                                                                                                                               

A. You cannot programmatically disable validation in a form.                                                                             

B. Use the SET_FORM_PROPERTY built-in to set the VALIDATION property.                                                                   

C. Use the SET_FORM_PROPERTY built-in to set the VALIDATION_UNIT property.                                                               

D. Use the SET_FORM_PROPERTY built-in to set the DEFER_REQUIRED_ENFORCEMENT property.                                                   

E. Use the CLEAR_FORM, CLEAR_BLOCK, and EXIT_FORM built-ins with the NO_VALIDATE argument.  

Answer: B

03. Which built-in can you use to programmatically set the validation status for all records in a block?                                                                                                                                                                             

A. SET_BLOCK_PROPERTY                                                                                                                    

B. SET_RECORD_PROPERTY                                                                                                                   

C. SET_ITEM_PROPERTY                                                                                                                     

D. You cannot use a built-in; you must set a system variable instead.                                                                   

E. You cannot programmatically set the validation status because it is controlled by Forms internal processing.

Answer: E

04. Which statement is true about client-side validation?                                                                                                                                                                             

A. It requires a network round trip.                                                                                                     

B. It does not require any middle-tier configuration.                                                                                   

C. It requires setting an item's Implementation Class property.                                                                         

D. It is implemented with the When-Validate-Item and When-Validate-Record triggers. 

Answer: C

05. You want to skip validation on one of the items in a form, so that validation is not performed on that particular item. How could you do this?

A. Set the item’s Item Is Valid property.

B. Set the item’s Automatic Skip property.

C. Set the item’s Database Item property to No.

D. Set the validation unit to Record instead of Item.

Answer: B

06. You have created a form with validation set at the record level. Users would like to be able to press a button to cause validation to occur immediately without committing changes or navigating out of the record. Which built-in would you call in the When-Button-Pressed trigger to implement this?

A. ENTER

B. NEXT_ITEM

C. LOCK_RECORD

D. UPDATE_RECORD

Answer: A

07. The primary key of the ORD table is made up of two columns. You do not want to validate the two corresponding items in the ORD_DATA data block until the user attempts to leave the data block.

How could you control when validation is initiated?

A. Use the two When-Validate-Item triggers at the data block level.

B. Use a When-Validate-Record trigger at the data block level.

C. You must use a When-Validate-Item trigger at the form level.

D. You must validate each item at the item level.

Answer: B

08. In a form where users will update multiple items in each record, what is the effect of changing the validation unit from Item to Record?

A. Validation is performed more frequently.

B. Validation is performed less frequently.

C. When-Validate-Item triggers do not fire.

D. Item validation occurs after record validation.

Answer: B

09. At which level has a validation already occurred when a When-Validate-Record trigger is fired?

A. form

B. item

C. block

D. record

Answer: B

10. Which two item properties’ settings affect the standard checks performed during item validation? (Choose two)

A. Font Name

B. Format Mask

C. Conceal Data

D. Case Restriction

E. Lowest Allowed Value

F. Number of Items Displayed

Answer: B, E

Post a Comment

0 Comments