Hi All,
We are trying to get the Dialog field value into run method, but the value is not coming from "getFromDialog" method.
We are able to see the value in "getFromDialog" method, variable has declared as global in class declaration.
Please advise us how to resolve this issue.
Regards,
Akbar
Hi Akbar,
Do you have only one variable that you are getting from dialog? In case there are other variables, are you able to see those values in the run method?
It would help if you gave us some details.
I guess it's about the RunBase framework - am I right?
Didn't you forget to implement serialization (pack()/unpack())?
Note that one of the benefits of SysOperation framework is that it handles serialization for you, which means less work for you and fewer places for bugs.
Hi Gunjan,
Yes we are able to see other dialog field values in run method.
There were existing 2 fields, we have added one more , the new one we were not able to see.
Tried resetting usage data and passing hard coded value to the new dialog field, but its not appearing in run method.
Its AX2009 version.
Hi Martin,
Apologise, its AX 2009 version, mistakenly selected AX2012.
Yes, its RunBase framework.
we have new dialog field in dialog box, we are able to see the old dialog field values but not the new one in run method, tried resetting the usage data, but still value is not appearing.
Have you added the new global variable to CurrentList local macro and incremented CurrentVersion?
There must be some issue in your code. As you can imagine, it's basically impossible to spot the issue without seeing the code.
Thank you Gunjan,
We are able to see the value in run method now, when we added the variable in CurrentList local macro.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 2,004
André Arnaud de Cal... 857 Super User 2025 Season 2
Sohaib Cheema 548 User Group Leader