How should you modify the code?

An Order Entry form that you are developing contains several blocks. The first is a control block where you create buttons to perform certain actions. One button, which is mouse and keyboard navigable, contains code to navigate to and perform queries in multiple blocks in the form:
GO_BLOCK(‘Customers’);
EXECUTE_QUERY;
GO_BLOCK(‘Orders’);
EXECUTE_QUERY;
GO_BLOCK(‘Items’);
EXECUTE_QUERY;
You do not want trigger processing to continue if there is any type of error in navigating to the Customers block.
How should you modify the code?

An Order Entry form that you are developing contains several blocks. The first is a control block where you create buttons to perform certain actions. One button, which is mouse and keyboard navigable, contains code to navigate to and perform queries in multiple blocks in the form:

GO_BLOCK(‘Customers’);
EXECUTE_QUERY;
GO_BLOCK(‘Orders’);
EXECUTE_QUERY;
GO_BLOCK(‘Items’);
EXECUTE_QUERY;
You do not want trigger processing to continue if there is any type of error in navigating to the Customers block.
How should you modify the code?

A.
GO_BLOCK(‘Customers’);
if FORM_SUCCESS then
EXECUTE_QUERY;
end if;
GO_BLOCK(‘Orders’);
EXECUTE_QUERY;
GO_BLOCK(‘Items’);
EXECUTE_QUERY;

B.
GO_BLOCK(‘Customers’);
if not FORM_SUCCESS then
EXECUTE_QUERY;
GO_BLOCK(‘Orders’);
EXECUTE_QUERY;
GO_BLOCK(‘Items’);
EXECUTE_QUERY;
end if;

C.
GO_BLOCK(‘Customers’);
if FORM_SUCCESS then
EXECUTE_QUERY;
GO_BLOCK(‘Orders’);
EXECUTE_QUERY;
GO_BLOCK(‘Items’);
EXECUTE_QUERY;
end if;

D.
GO_BLOCK(‘Customers’);
if not FORM_FATAL then
EXECUTE_QUERY;
GO_BLOCK(‘Orders’);
EXECUTE_QUERY;
GO_BLOCK(‘Items’);
EXECUTE_QUERY;
end if;

E.
GO_BLOCK(‘Customers’);
if not FORM_FAILURE then
EXECUTE_QUERY;
GO_BLOCK(‘Orders’);
EXECUTE_QUERY;
GO_BLOCK(‘Items’);
EXECUTE_QUERY;
end if;



Leave a Reply 0

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