Grid on custom form only displays up to 25 records

  • Grid on custom form only displays up to 25 records

    Posted by DSC Communities on February 12, 2021 at 10:39 am
    • Kirk Blackburn

      Member

      February 12, 2021 at 10:39 AM

      In D365, I duplicated the all production orders form and used it as the basis for a custom form, changing the data sources and fields accordingly and it all seems to work fine–except that the lines grid (displaying the child records of the selected parent record) will only display a maximum of 25 child records, even when there are hundreds. The scroll bars allow you to scroll among the 25, but will not display more on either end. However, if I export all rows from the grid, they all appear in the Excel worksheet that is generated.

      Does anyone know why the grid is limited to a maximum of 25 rows and how I can fix it?

      ——————————
      Kirk Blackburn
      Engineer – Software Development
      The Church of Jesus Christ of Latter-day Saints
      Salt Lake City, UT
      ——————————

    • Peter Ramer

      Member

      March 8, 2021 at 9:33 AM

      Hi Kirk,
      I don’t have an exact answer for you, but I have a little bit more information that might help.Ā Ā 
      When a form loads data from the table into a form, most of the time the data source on the form has a ‘join type’ of ‘delayed’.Ā  You can view this by finding the form in the AOT and looking at the datasources.Ā  The ‘delayed’ type join is not actually a real ‘sql’ join, but it tells dynamics to only load the records from the database that can be seen on the screen.Ā  It does this to save on performance.Ā  If you have many thousands of records in a table, the system only needs to find and load the first bunch that can fit on the grid.Ā  Then, if the user scrolls down on the grid, the system will load more data.Ā  This allows the form to open even faster.Ā 
      All that said, this does not seem to be working properly.Ā  You said that scrolling down in the grid is not showing more records.Ā 
      You could push ctrl-g, while selecting the lines grid.Ā  This will open the filters on the top of each column.Ā  You can see if there happens to be a filter that is somehow restricting the data to only the 25 records.Ā  Even though this seems unlikely.
      You also could open ‘sql server profiler’ and start a sql trace, then open the form, then stop the trace.Ā  This would allow you to look at what sql query was run against the database.Ā  This might help tell you if there is an unseen filter being applied to the query that is being run.Ā  But I realize this might be a bit too technical.Ā 

      Most likely, I would check the ‘join types’ on your form datasource properties, and see if perhaps one of those is sent incorrectly.Ā  As that seems the most likely culprit.

      Peter

      ——————————
      Peter Ramer
      Manager
      RSM
      Greenwood Village CO
      ——————————
      ——————————————-

    DSC Communities replied 4 years, 6 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Grid on custom form only displays up to 25 records’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!