Hello,
I have a large record type (over 30'000 lines), that I display in a gridfield, with many filters.
Client needs to export this data to Excel, so I allowed him with the "showExportButton: true". Now some newbies think my system can send them the 30'000 lines, and they click the button... several times. This is costly to the system, breaks performance for everyone, to no avail!
I think there is no way to hide the "export" button when to many records in my recordData set. Or is there?
@Appian, this would be a good feature, wouldn't it? I see the number of lines at the bottom of the page, so it looks easy to the gridfield object to access! Please think about it, or provide guidance to work this around, please
Discussion posts and replies are publicly visible
julienc could you try giving a condition you need here to set true or false? this is in interface where you will be using your record in a read-only grid
Hello, I know this option.The requirement is to make it depend on the size of the data in the grid: if the data count is over a given limit, the button must be hidden.
Hello julienc I would suggest conditionally checking the record count and hiding or showing the export button based on the result would be better alternative.
a!queryRecordType( recordType: /*Add Your Record Type*/, pagingInfo: a!pagingInfo(1,1), fetchTotalCount:true ).totalCount
This could be a solution if there was no filter. But if my recordData grid is filtered by the user, then totalcount differs from what my user sees. So it is not correct for my use case, because there is no access from inside the grid to the line count of the grid (however, the total count is displayed at the bottom next to pagination).
TrueThere's no direct way to access the filtered record count within the grid itself as we can't access value selection.