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)

How to hide grid rows?

(0) ShareShare
ReportReport
Posted on by

Hi Im working on a problem in which im trying to hide the grid rows. The records are repeating and i want to remove the repetitive records but hiding the grid rows that are repeating. 

I do not want to use group by.  as it is causing disturbance somewhere else. and I cant add any other data source or query or view. 

Currently i have an AOT query and have added my code of searching for the repetitive record in the ExecuteQuery() method of the data source in that query. But what to do after that. 

Or if there is any other solution please tell..!

*This post is locked for comments

I have the same question (0)
  • XB Profile Picture
    1,875 on at

    Are the records repeat on the table or when you add some datasource the grid repeat the lines?maybe your the link type of the DataSource is wrong.

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    if you will not use GroupBy, that will not exclude Distinct records. Doing this manually by a loop will make it expensive in terms of form may take more time to load etc.  

  • Community Member Profile Picture
    on at

    Hi JBB thank you for the response, I have put an outer join between the both tables. the data source is a query.  and in that query i have added 2 data sources .

  • Community Member Profile Picture
    on at

    Hi Sohaib thank you for your word of advice. But right now i have this as an only solution.

  • Dick Wenning Profile Picture
    8,705 Moderator on at

    is there a join on a parend table?

  • Community Member Profile Picture
    on at

    Yes there is an outer join

  • Hajish Profile Picture
    460 on at

    Is it solved?

  • Suggested answer
    Fredrik Sætre Profile Picture
    12,644 on at

    Could this be a solution?

    Create a database view and do grouping to exclude duplicates, but don't summarize your numeric fields. Use min, max or mean to get wanted value.

    Use this view as your data source in your form or if you need it to be a query because of publication through odata feeds, you can make a query of that view.

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