What should you do to correct this problem?

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?

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?

A.
Change the sequence of blocksinthe Object Navigator

B.
Chang the Mouse Navigator property of the button to yes

C.
inthe first line of code, change the built-into GET_ITEM_PROPERTY

D.
inthe first line of code, change the system variable to: SYSTEM.CURSOR_CANVAS.

E.
inthe first line of code, change the CV_ORDER to lowercase

F.
Chang the argument to the GO_BLOCK built-ins to uppercase

Explanation:
Note:
GET_CANVAS_PROPERTY built-in
Description
Returns the given canvas property for the given canvas. .
Syntax

FUNCTION GET_CANVAS_PROPERTY(
canvas_id
Canvas
,property
NUMBER);FUNCTION GET_CANVAS_PROPERTY(
canvas_name
VARCHAR2
,property
NUMBER)



Leave a Reply 8

Your email address will not be published. Required fields are marked *


Metalfreak

Metalfreak

Excepting that answer D doesn’t make much sense property item_canvas belongs to GET_ITEM_PROPERTY. So C seems to be correct.

Padmanabhan

Padmanabhan

Answer C is Correct

Anvar

Anvar

D is the correct answer.
The first line of the code should be as follows:
IF :SYSTEM.CURSOR_CANVAS = ‘CV_ORDER’THEN

jan

jan

C IS 100% Correct

Oracle University Notebook

Manuel

Manuel

If cv_orders is a canvas, how can you change it to GET_ITEM_PROPERTY?

ngayathri81

ngayathri81

C is the Correct answer

nancy

nancy

C is Correct Answer