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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How can I hide a row from Form Grid in x++?

(0) ShareShare
ReportReport
Posted on by 226
I have a form with multiple fields and one enum field. Now i want to hide the rows if the rows contains  specific enum value  e.g. /True/.I have tried it in my Forms data source active method but its hiding columns visibility.
any suggestions?
I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at
    Hi Junaid,
     
    I think you want to filter the record based on the Enum value.
    In that case you need to add range to the executeQuery method of the form DataSource.
    You can refer to the below blog for adding Enum not equal to value in the query range.
     
    Thanks,
    Girish S.
  • GirishS Profile Picture
    27,827 Moderator on at
    Moving the thread to D365 FO forum - Next time you post please take care of it.
     
    Thanks,
    Girish S.
  • Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at
    If you always want to hide such records, apply the filter the filter just once, in data source's init() method.
     
    executeQuery() is run every time when the query executes, e.g. when a user sorts the grid. Executing the logic every time is unnecessary, and it may lead to bugs (when a new range is added every time, instead of keeping the single one).

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans