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, ...
Unanswered

Control Grid Columns Visibility

(0) ShareShare
ReportReport
Posted on by 41
I am working on a requirement, where i am updating LedgerJournalTable with voucher Number and Date Columns from the LedgerJournalTransTable, Once
Journal is approved. I want to display theses fields in LedgerJournal ( LedgerJournalTable) Form Grid but i want to display these fields for invoice journals only.
I tried to use active method to control the form control visibility and it's working well but the issue is active method is iterating on all Grid Rows one by one and it's effecting the performance.
 
Can Someone please tell me any other suitable solution for this.
 
Thanks
I have the same question (0)
  • Martin Dráb Profile Picture
    237,817 Most Valuable Professional on at
    active() method doesn't iterate records - it's executed once when a record is selected. If you mean that you added such an iteration into active() and now you've realized it was a bad idea, remove it and think your requirements through again.
     
    Are you sure you want to evaluate a condition for each record? Don't you rather want to show or hide the column depending on what type of journals that the form is opened for? You can get that by calling journalFormTable.journalTypeId().
  • Mohit Rampal Profile Picture
    12,565 Moderator on at
    Hi, In addition, you can refer standard code in LedgerJournalTable form
     
  • MA-07051407-0 Profile Picture
    41 on at
    Hi Mohit;
    Thanks for sharing the relevant information. In my case i want to control grid columns visibility i.e., In case if the journal is of type Vendor invoice Recording i want to change the column visibility to yes.
    By default the columns visibility is set to No. As ledgerJournalTable form is same for all Finance Journals but i want fields visibility on invoice journal Only.
     
    Thanks

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
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 291 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans