Which trigger code will achieve this?

There is a requirement to modify the default functionality of the [Commit] key. To implement this requirement, you decide to write a Key-Commit trigger that will force validation and issue a commit if necessary.
Which trigger code will achieve this?

There is a requirement to modify the default functionality of the [Commit] key. To implement this requirement, you decide to write a Key-Commit trigger that will force validation and issue a commit if necessary.
Which trigger code will achieve this?

A.
ENTER;
IF GET_ITEM_PROPERTY
(:SYSTEM.trigger_item,ITEM_IS_VALID) = ‘TRUE’ THEN
COMMIT_FORM;
END IF;

B.
ENTER
IF :SYSTEM.FORM_STATUS = ‘CHANGED’ THEN
COMMIT_FORM;
END IF;

C.
VALIDATE(ITEM_SCOPE);
IF :SYSTEM.BLOCK_STATUS <> ‘NEW’ THEN
DO_KEY(COMMIT_FORM’);
END IF;

D.
VALIDATE;
IF :SYSTEM.BLOCK_STATUS <> ‘NEW’ THEN
DO_KEY(COMMIT_FORM’);
END IF;

E.
VALIDATE(ITEM_SCOPE);
IF :SYSTEM.BLOCK_STATUS = ‘NEW’ THEN
COMMIT_FORM;
END IF;



Leave a Reply 0

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