Announcements
No record found.
Hi All,
On a list page, if no records are there, then I want certain actions on the page to be disabled. Whereas when records are there, actions should be enabled.
Please guide me through the logic.
Thanks!!
you can use enable/visible property with "NOT ISEMPTY".
I have written the following code on the page:
trigger OnOpenPage()
var
myInt: Integer;
TariffModelRec: Record "NBCX Tariff Model";
begin
varIsEmpty := TariffModelRec.ISEMPTY;
and then set Enabled = NOT varIsEmpty
But this code will fired when the pages gets open. Whenever user will not close the page and perform these changes, then the actions won't be enabled /disabled. What to do in this case ?
Use OnAfterGetRecord
OnAfterGetRecord is not working in case the list page is totally empty
Use this as
varIsEmpty := NOT TariffModelRec.ISEMPTY;
and assign varIsEmpty to property.
Did you try "NOT ISEMPTY" without variables?
No, I did not try without using variables. I tried the way I explained in my previous post..
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 741 Super User 2026 Season 2
YUN ZHU 514 Super User 2026 Season 2
AndrewThomas81 336 Super User 2026 Season 2