web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

GetFromDialog field value is not appearing in run method

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at
    RE: GetFromDialog field value is not appearing in run method - Ax 2012

    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?

  • Verified answer
    Martin Dráb Profile Picture
    236,394 Most Valuable Professional on at
    RE: GetFromDialog field value is not appearing in run method - Ax 2012

    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.

  • Akbarpasha Profile Picture
    on at
    RE: GetFromDialog field value is not appearing in run method - Ax 2012

    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.

    Regards,

    Akbar

  • Akbarpasha Profile Picture
    on at
    RE: GetFromDialog field value is not appearing in run method - Ax 2012

    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.

    Regards,

    Akbar

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at
    RE: GetFromDialog field value is not appearing in run method - Ax 2012

    Hi Akbar,

    Have you added the new global variable to CurrentList local macro and incremented CurrentVersion?

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: GetFromDialog field value is not appearing in run method

    There must be some issue in your code. As you can imagine, it's basically impossible to spot the issue without seeing the code.

  • Akbarpasha Profile Picture
    on at
    RE: GetFromDialog field value is not appearing in run method

    Thank you Gunjan,

    We are able to see the value in run method now, when we added the variable in CurrentList local macro.

    Regards,

    Akbar

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,004

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 857 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 548 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans