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 not displaying all data in table

(0) ShareShare
ReportReport
Posted on by 45

I have a grid with about 10 columns all linked to the temp table via the Datasource and Field properties in the grid columns.  When I execute the query on the datasource, I get 8 of the columns filled in with data but the last two are zeros.  When I debug, I can see that the data is being formatted into those fields on the table.  

I put a while select loop at the bottom of my method that formats the data into the table just after the datasource.executequery call.  In the while loop, I just print of all the records to the screen that are in the table.  It displays the data from the columns in question and they are correct.  Then when the grid appears those columns are now filled in with data and not zeros. 

Why would this act this way? Its very frustrating.  I am using Dynamics AX 4 sp1.  Don't bother telling me to upgrade because that won't be happening for a while. Thanks in advance for any ideas.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi,

    As i unterstood from your post is that you get the data right some times and some times you don't, if everything is correct regarding the code i think you have to refresh the AOD or restart the AOS because sometimes Ax won't take new changes or new fields for some reasons, try that hope it will work.

    Regards,

    Yousef Shawareb

  • David Hasemann Profile Picture
    45 on at

    Actually it is like this :  Column A, B, C display the data they contain in the grid.  Columns D and E do not display the data they contain on the grid.  They display 0 instead of the value they contain.  If I put the while loop to display all the data at the bottom of my method the grid diplays all the columns.  The while loop was a debugging strategy but I noticed the grid was correct after using it. 

  • Community Member Profile Picture
    on at

    David,

    If your while loop is solving the problem and getting the data correctly then you are not filling the data correctly in the first place because the while loop on the form is like a query to get all the data and fill it on the grid.

    Regards,

    Yousef Shawareb

  • David Hasemann Profile Picture
    45 on at

    I have a datasource that is a temp table.  It is the table that is associated to the grid in question.  The columns on the grid are tied to the fields in the table. 

    My method is a loop that is selecting data out of other tables and inserting it into the temp table.  Once complete I call the temptable_ds.executequery method which in all other cases I have done this fills in the grid with the data from the table. 

    In the case of this particular grid though two of the columns are ending up zero when the actually contain data when viewing the table.  ( I made the temp table permenant for one run so I could look at it with table browser). 

     It is perplexing I know.  I find a number of things in AX perplexing.

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