Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, Power Apps, Power Automate, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
My parent form is Projtable. I have created a extension of it. The form extension contains a button and after button click I open a newly created form.
New created form insert data into psaprojschedrole table. After I close this form the grid inside "project team & scheduling" tab should refresh with new data. This is not working.
I have override the canClose method of child form and written following code
Formrun = element.args().Caller() ;
Refreshed the datasource of parent form
Both the options are not working.
You should call two methods of the caller data source:
But, nowadays you can simply set property "Auto Refresh Data" to Yes in the menu item button.
By the way, why did you put your code in canClose method? That method should be used to determine if the form can be closed. You should use "closed" or "closedOk" instead. This is important to keep your code understandable for future developers (including yourself).
Sometimes you get another object in between forms, like a class of something.
Make sure your caller is ProjectTable form.
Refresh the caller form from close or closed method.
Try this code from my blog post:
FormRun formRun = element.args().caller();
Business Applications communities