Export (0) Print
Expand All

OPENNEW Function (TestPage)

Microsoft Dynamics NAV 2013

Opens a blank test page in edit mode.

TestPage.OPENNEW

Parameters

TestPage
Type: TestPage

The test page variable that you use to refer to the new test page.

If TestPage is already open, then a run-time error occurs, and the outcome of the test function is FAILURE.

This example requires that you create a TestPage variable named CustTestPage with a Subtype of Customer List and that the codeunit in which you write the code is a test codeunit.

// Opens a blank Customer Card test page. 
CustTestPage.OPENNEW;
Show:
© 2014 Microsoft