Notifications
Announcements
No record found.
I have created a custom field, Tour Type, which is an enum field in the standard table Gen. Journal Line using a table extension in AL code.
If the batch is selected as EXPENSE, the custom field will be displayed on the Bank Payment Voucher page; otherwise, it will be hidden.
I have written the code in the PageExtension on the OnAfterGetCurrent trigger. The global variable shows True in the debugger, but the field is not hidden at the page level.
Please advice.
It sounds like you’re on the right track, but in worksheet pages the Visible logic can be a bit tricky. Could you share the snippet of your AL code (table extension + page extension part) so we can see exactly how you’ve set the Visible property and where you’re updating it? That will make it easier to spot why the field isn’t hiding.
Visible
✅ Mark this as the verified answer if helpful.
OnAfterGetRecord()
OnAfterGetCurrRecord()
global
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 3,143
Jainam M. Kothari 1,694 Super User 2025 Season 2
YUN ZHU 1,067 Super User 2025 Season 2