How to Refresh the caller form from the called form in Ax 2012

 How to Refresh the caller form from the called form in Ax 2012



public boolean canClose()

{

boolean ret;

#Task

FormRun formRun;

ret = super();

// Get an instance of the calling form.

formRun = element.args().caller();


// If the caller is a form, refresh that form.

if(formRun)

{

formRun.task(#taskF5);

}

return ret;

}

Comments

Popular posts from this blog

How to Create a wizard in x++ d365

how to post trade agreement journals automatically using x++ code

X++ code to CREATE AND POST A TRADE AGREEMENT IN MICROSOFT DYNAMICS 365 in D365 F & O