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. .
SyntaxFUNCTION GET_CANVAS_PROPERTY(
canvas_id
Canvas
,property
NUMBER);FUNCTION GET_CANVAS_PROPERTY(
canvas_name
VARCHAR2
,property
NUMBER)
Excepting that answer D doesn’t make much sense property item_canvas belongs to GET_ITEM_PROPERTY. So C seems to be correct.
Answer C is Correct
D is the correct answer.
The first line of the code should be as follows:
IF :SYSTEM.CURSOR_CANVAS = ‘CV_ORDER’THEN
C IS 100% Correct
Oracle University Notebook
hi jan
please tell me
did you pass exam 1z0-151
what version did you use
[email protected]
If cv_orders is a canvas, how can you change it to GET_ITEM_PROPERTY?
C is the Correct answer
C is Correct Answer