Hi All,
i want to hide Readonly Record Grid, in case it's Empty or no data contain. by default it's shows empty grid with message,
Please advise.
Thanks in advance.
Discussion posts and replies are publicly visible
The UI outside the grid does not know about the fact that it is empty, so you will not be able to hide it using the default functionality.
You can query the data into a local variable and pass this to the grid. Then you can check the local and make the grid display only if there is data.
Thanks for reply.. I have did a same thing, but when i checked for a!isNullOrEmpty(local!data) its always returning me with value 1. local!data return type is record type
If you are updating your local variable using queryrecordtype () then you can set fetchTotalcount as true and in the query output you will have total count. Based on total count you can hide or show the grid. Same you can do for query entity data.