How to refresh the data source of caller form using X++ in AX 2009?
Posted in Dynamics CRM by ms_dynamics 334 days ago (https://community.dynamics.com)In many cases you need to refresh the data source of the caller form when you finishing work with the current form like when you using posting form you need to refresh the data source of the caller form to see the effect write the following code in close method of the current form :
public void close()
{
FormRun callerForm;
;
callerForm = element.args().caller();
callerForm.dataSource().refresh();
callerForm.dataSource().reread();
callerForm.dataSource().research();
super();
}
My goal is to share my love and knowledge of Microsoft Dynamics software. If you want fluff-free stories about software with legs, you've come to the right place.
DynamicsTips.com is the place to get the latest news and technical tips on Microsoft Dynamics products, whether you're a developer or a user.
Stay In Touch,
Follow Me!














Comments