Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
Go to Infolog.formNotify
There you have notifications for several form event like activate, Open, Close etc.
You can add a code like the one shown below to work during deactivation of a form. But keep in your mind this will affect the overall performance as this will be invoked several times.
if (formRun.form().name() == "CustTable")
Info('form not active');
If i write code in the case FormNotify::DeActivate: then the code is not getting called when i move from one AX form to other form.
Appreciate a response.
Even sometimes in the form activate method if you have written code then few cases it will show "source code not available" when debugging. Can i know the reason for this.
As i customized the info class formnotify() to meet the requirement, export the customized objects along info class as xpo and imported the same in new environment.
After the import the AX throws infolog message saying the Error: Recompile the script Info\formnotify(). I need to follow the below steps after importing then only the issue is getting resolved.
1. Recompile or do compile forward for 3 or 4 times
2. Relauch ax and compile.
Is this issue will happen when we write code in info class?
How to rectify the issue instead of compiling. Because will feel something happened wrong. Instead of making the Infologdetail as none in the Tools-> options window anyother way to do automatic compiling and not showing the infolog error message.
Please suggest me on this.
Appreciate a response.
after 7 years, this may not help you directly. Perhaps, however, the rest of the Community may need help with this at one point or another.
1.: Add this Method to the Info Class:
public void OnLoseFocus()
FormRun frLastActivatedForm = lastActivatedForm ? lastActivatedForm.object() : null;
Object foLastActivatedForm = frLastActivatedForm;
if (frLastActivatedForm && formHasMethod(frLastActivatedForm, identifierstr(OnLoseFocus)))
2.: Adjust the Method setLastActivatedForm on the Info Class by adding this Line at the beginning of the Method.
3.: In the Form of your choice, add a public Method OnLoseFocus and apply your code here.
Hope this helps.
Please refer the below link:
Business Applications communities