1Z0-151 · Question #74
The Orders form has four blocks. The Orders and Order_items block are on the CV_Order content canvas; the inventories block items are on the CV_inventories content canvas; and Control block buttons…
The correct answer is C. in the first line of code, change the built-in to GET_ITEM_PROPERTY. See the full explanation below for the reasoning.
Question
The Orders form has four blocks. The Orders and Order_items block are on the CV_Order content canvas; the inventories block items are on the CV_inventories content canvas; and Control block buttons are on the CV_Buttons toolbar canvas. All buttons have mouse Navigate set to No. The Order_Items block is a detail of Orders. The inventories block is a detail of Order_Items, showing the stock of the selected product. There is a button in the Control block with a When-Button-Pressed trigger:
IF GET_CANVAS_PROPERTY(:SYSTEM.cursor_item, item_canvas) = 'CV_ORDER' THEN GO_BLOCK ('inventories') ELSE GO_BLOCK('orders'); END IF; When you run the form and click the button, navigation does not occur, and the form displays the runtime error "FRM-41053: Cannot find Canvas: invalid ID." What should you do to correct this problem?
Options
- AChange the sequence of blocks in the Object Navigator
- BChang the Mouse Navigator property of the button to yes
- Cin the first line of code, change the built-in to GET_ITEM_PROPERTY
- Din the first line of code, change the system variable to: SYSTEM.CURSOR_CANVAS.
- Ein the first line of code, change the CV_ORDER to lowercase
- FChang the argument to the GO_BLOCK built-ins to uppercase
How the community answered
(45 responses)- A2% (1)
- B9% (4)
- C82% (37)
- D4% (2)
- F2% (1)
Community Discussion
No community discussion yet for this question.