Share via


JmgJobBundleProjStartupForm.canClose Method [AX 2012]

Retrieves whether the user is allowed to close the JmgJobBundleProjStartup form.

Syntax

public boolean canClose(JmgTmpJobBundleProjStartup _projStartup)

Run On

Called

Parameters

  • _projStartup
    Type: JmgTmpJobBundleProjStartup Table
    A temporary instance of the JmgTmpJobBundleProjStartup table that contains the values entered by the user.

Return Value

Type: boolean
true if the user is allowed to close the form; otherwise, false.

Remarks

The canClose method is called from the canClose method of the JmgJobBundleProjStartup form. The user is allowed to close the form if they have entered legal cost categories.

Examples

The following example shows how the canClose method is called from the canClose method on the JmgJobBundleProjStartup form.

public boolean canClose() 
{ 
    boolean ret; 
 
    ret = super(); 
 
    if (closeCancel) 
    { 
        return true; 
    } 
 
    ret = startupForm.canClose(jmgTmpJobBundleProjStartup); 
 
    if (!ret) 
    { 
        jmgTmpJobBundleProjStartup_DS.executeQuery(); 
    } 
 
    return ret; 
}

See Also

Reference

JmgJobBundleProjStartupForm Class