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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Grid value

(0) ShareShare
ReportReport
Posted on by

Hello,

I have an issue in a grid. There is a display method providing a value in a grid field, but it only updates the right value when it is entered by mouse. How is it possible to make it happen as the form starts?

*This post is locked for comments

I have the same question (0)
  • krishna.rao@dax Profile Picture
    3,006 on at

    It seems, it's customized form.

    Make sure you have implemented the method well.

    msdn.microsoft.com/.../aa595058.aspx

    dynamicsaxinsight.wordpress.com/.../display-methods

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    The displayOption fires for all rows, that is why a record context is being passed in as the first parameter, so you do not need to do anything.

    If you feel like it does not populate correctly, then maybe your datasource on which you have the display option for has some special Join conditions like Passive, and the record buffer only refreshes when you do certain actions on the form?

    Also the code in your display method might be incorrectly written. It would be helpful to let us know how your Form datasources look like, what other code do you have in there, and how does the displayOption method look like.

    You could also verify if there is any caching set for the method.

    Make sure you check these, and provide additional details if you cannot figure it out yourself.

  • Suggested answer
    Pravasti AK Profile Picture
    2,985 on at

    Hi,

      On button click you can check either you are retrieving correct values or not which is wrriten using clicked method.

    refreshes the form level datasource

  • Community Member Profile Picture
    on at

    It's interesting because my join condition is active, but in some cases if there are a few rows in a grid, all of them are presented correctly, but sometimes only the first is correct, others have 0 value

  • krishna.rao@dax Profile Picture
    3,006 on at

    Make sure you are using table buffer correctly.

    Check your method with a standard example.

    If it seems correct, then share your code. Someone could help you.

  • Community Member Profile Picture
    on at

    The method must be ok, because I am using the same display methods as in list page and it works fine. It works fine for many SA lines also, but sometimes it displays other than first rows as 0. This must be something with data fetching or grid?

    Untitleddd.png

  • krishna.rao@dax Profile Picture
    3,006 on at

    I suspect which must be due to Link type.

    However, I couldn't reproduce your issue.

    Keep Link type "Delayed" & check.

  • Community Member Profile Picture
    on at

    the issue I have found so far using debugger, that the display method is invoked only on the row that is selected in the grid, so the first is always updated and displays correct values. Now I just have to find out how to iterate these lines.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans