When called from the Customers form, the Orders form enables order entry clerks to place new orders for the current customer using the customer ID passed from the Customer form as a parameter. If clerks decide to cancel a new record without entering further information, they do not want to be required to clear the record.
You must assign the value of the parameter to the Customer_Id item in each new record of the Orders from with this code:
:orders.customer_id :=:parameter.customer_id;
Where should you place this code to meet the requirements of the order entry clerks and also to ensure that each new order has the correct customer ID?
A.
In a When-New-Form-Instance trigger.
B.
In a Pre-Query trigger on the Orders block.
C.
In a When-Create-Record trigger on the Orders block.
D.
In a When-New-Record-Instance trigger on the Orders block.