web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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
  • Martin Dráb Profile Picture
    241,441 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,573 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 536 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 363 Super User 2026 Season 2

#3
CU-1234529-002 Profile Picture

CU-1234529-002 188

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans