Hi
I am using a!recordData to show data in my gridField
Now I have a requirement of implementing a button wherein If I click that button all the data should be selected ( i.e. the ids of all the records should be saved into a local variable )
But now I am not finding a way to index the recordData at once
Can anyone help me in this ?
Discussion posts and replies are publicly visible
Hi GautamShenoy ,
a!recordData cannot be used everywhere.
If you need all the ids of records, use a!queryRecordType with same filters you used in a!recordData and then save them in local variable.
But the problem here is there can be more then 50k records at a time .
What are you doing with this? Do you really need to store ALL ids in a variable, or just "know" that all items are selected and react on that further down in processing?
Yes, I need to pass all the Ids to a process model to process upon them
OK, but again. Do you need really need ALL ids? I mean, ALL ids from that table? If yes, it might be enough to just know that all ids have to be processed and query the data accordingly.
Now, if you still want/need all IDs in a variable, you will have to fetch them separately. The grid does not provide this kind of data.
Not all all IDs. So basically the db table may contain 1M records. But when I fetch data using the a!recordData (using some filtering) that time I could receive like 50K records based on the filter. Now I have to implement a functionality of select all button, wherein if I click the button, all the IDs can be selected and then I can do further processing based on the IDs
So you know the filter conditions. Did you consider to forward these instead of the IDs. Just asking.
Hmm will try that way