How to refresh parent form from child form in Axapta


Sometimes we need to refresh parent form from child form in Axapta but its become tedious on thinking but here is an easy 4 line code you can write on child form on close event to get page refreshed.


 FormDataSource datsource;  
 ;  
 datsource= element.args().record().dataSource();  
 datsource.research();  
 datsource.refresh()  

I hope its solve your problem