Header Ads Widget

Module 16: Adding Functionality to Items

Adding Functionality to Items


01. You should enable the user to add additional values to a list item at run time. You must also ensure that the Record Group LOCATIONS, which is used to populate the list item, can be updated with any user-supplied value. What two actions could you take to accomplish this? (Choose two)                                                                                                                     

A. Add a new value to the list item by calling the POPULATE_LIST built-in.    

B. Add a new value to LOCATIONS by calling the POPULATE_GROUP built-in.       

C. Add a new value to the list item by calling the ADD_LIST_ELEMENT built-in. D. Remove duplicate values in LOCATIONS by calling the DELETE_LIST_ELEMENT built-in.                             

E. Add a new value to LOCATIONS by calling the ADD_GROUP_ROW and SET_GROUP_CHAR_CELL  built-ins.

F. Add a new value to LOCATIONS by calling the ADD_GROUP_ROW and SET_GROUP_NUMBER_CELL built-ins. 

Answer: C, E

02. You are writing a Forms application, and you plan to include several JavaBeans. What should you do to facilitate the communication between Forms and the JavaBeans?                                                                    

A. Write Java wrapper classes to integrate the JavaBean into Forms.           

B. Use the FBEAN PL/SQL package and its built-ins to register and invoke the JavaBeans.                    

C. Add a special layer of Java code to register the properties and methods of the JavaBeans.                    

D. You do not need to use any built-in package or write any code to integrate JavaBeans into forms.

Answer: B

03. In the Orders form you define five LOVs, and you create one button to be used to display any of the LOVs. The button is enabled only when the user navigates to a field with an attached LOV. If the user supplies only part of the required input data, the LOVs use that input as search criteria to automatically reduce the LOV Contents. If the LOVs hold only one value that can possibly math user-supplied input, then the LOVs auto-complete the input field and are not displayed. Which built-in properties should you use to display the LOVs?                                                                                                                                        

A. Use the List_Values(RESTRICT) built-in, and set the Mouse Navigate property value to NO.            

B. Use the List_Values(RESTRICT) built-in, and set the Mouse Navigate property value to YES.           

C. Use the List_Values(NO_RESTRICT) built-in, and set the Mouse Navigate property value to NO.     

D. Use the List_Values(NO_RESTRICT) built-in, and set the Mouse Navigate property value to YES.   

E. Use the Show_LOV built-in, and set the Mouse Navigate property value to YES. Set the Validate from List property of the text item to NO for each item with an attached LOV.                                         

F. Use the Show_LOV built-in, and set the Mouse Navigate property value to YES. Set the Automatic Select property of each LOV to YES.

Answer: a

04. You created a query Record Group at design time. Which built-in can you use to execute the query defined in the Record Group object?                                                                                                                                                    

A. ADD_GROUP_ROW                                                              

B. POPULATE_GROUP                                                             

C. ADD_GROUP_COLUMN                                                           

D. SET_GROUP_SELECTION                                      

E. CREATE_GROUP_FROM_QUERY                 

F. POPULATE_GROUP_WITH_QUERY 

Answer: B

05. You have an image item in the Employees form to display an employee photograph, and you are trying to decide where to place some code to manipulate the image item. If you place the code in a When-Image-Activated trigger, when will the code be executed?                                                                                 

A. When the user clicks the image item.                                      

B. When the user double-clicks the image item.                                

C. When the image item is first displayed on the canvas.                     

D. When the image item is populated with an image, either programmatically or by a query. 

Answer: B

06. In the Orders form, users are able to change the status of an Order. Options are HOLD, SHIP and CANCEL, and each option is represented individually in the Layout Editor. These options are sized and positioned independently of one another, they are mutually exclusive by default. When a new order status is selected, the ORDER_AUDIT_LOG table must be updated by the first trigger to register the changed value. Which trigger should you select?                                                                                                                                          

A. Post-Text-Item                                                             

B. When-Radio-Changed                                                         

C. When-Validate-Item                                                         

D. When-Button-Pressed                                                        

E. When-Checkbox-Changed                                                      

F. When-New-Item-Instance

Answer: B

07. You can use a When-List-Activated trigger to trap a user section. For which list item style can you do this?

A. T-list

B. pop-list

C. combo box

D. any style

Answer: A

08. Which built-in invokes the LOV that is attached to the current text item in the form?

A. SHOW_LOV

B. LIST_VALUES

C. REFRESH_LOV

D. POPULATE_LOV

Answer: B

09. A user wants an LOV to be invoked automatically each time the cursor enters a text item to which the LOV is associated. What are three ways to resolve this request? (Choose three)

A. Set the Automatic Display property to Yes for the LOV.

B. Set the Automatic Refresh property to Yes for the LOV.

C. Create a Key-Listval trigger for the text item and call the LIST_VALUES built-in.

D. Create a When-New-Item-Instance trigger for the text item and call the LIST_VALUES built-in.

E. Create a When-New-Item-Instance trigger for the text item and call the

DO_KEY(‘LIST_VALUES’) built-in.

Answer: A , D, E

10. You are customizing default functionality of an image item so that the image displays when a user single-clicks the item. Which trigger would you use to accomplish the task?

A. When-New-Item-Instance

B. When-Image-Activated

C. When-Image-Pressed

D. When-Validate-Item

Answer: C

Post a Comment

0 Comments