PrepAway - Latest Free Exam Questions & Answers

Category: MB7-702

Exam MB7-702: Microsoft Dynamics NAV 2013 C/Side Development

Which two statements are true based on the query?

You have the following C/AL code segment:
ItemLedgerEntry.SETCURRENTKEY(“Item No.”);
ItemLedgerEntry.FINDSET;
You have the following query, based on the C/AL code segment:
SELECT * FROM “CRONUS International Ltd_$Item Ledger Entry” ORDER BY “Item No_”,
“Posting Date”, “Entry No_”

Which two statements are true based on the query? (Each correct answer presents a
complete solution. Choose two.)

How should you update the test function code so that it passes successfully?

You enhance the standard Fixed Asset table so that a fixed asset record cannot be deleted
when the Blocked field is set to TRUE by adding the following code to the On Delete trigger:
IF Blocked THEN
ERROR(CANNOT_DELETE)
CANNOT_DELETE is a text constant containing the ENU caption “You cannot delete this
record because it is blocked.”.
Against the code, a different developer writes a test function named TestBlockedFixedAsset.
The function must pass successfully when the Blocked field is set to TRUE and the record is
being deleted. The test function contains the following code:
FA.INIT;
FA.”No.” := ‘TEST’;
FA.Blocked:= TRUE;
FA.INSERT;
FA.DELETE (TRUE);
You run the test function but it does not pass successfully. How should you update the test
function code so that it passes successfully?


Page 2 of 812345...Last »