Hi,
I a new to appian and i came accross the a!dataSubset.What is the working of datasubset.
a!dataSubset( startIndex: 3, batchSize: 2, sort: a!sortInfo( field: "name", ascending: true() ), totalCount: 26, data: {"a", "b", "c", "d","e","f", "g","h","i","j","k","l","m","n", "o","p","q","r","s","t","u","v","w" ,"x","y","z"},
identifiers: {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20, 21,22,23,24,25,26})
Above propragam returns the full list.Actually it has to return from the "c" as i have mentioned startIndex: 3.even with startIndex: 0.It returns the full list.
What is the working logic behind this?
Discussion posts and replies are publicly visible
A dataSubset is typically returned by the a!queryEntity containing the result set from database plus some meta data. There is other means of how to retrieve data from other systems which you will have contact with later on your Appian journey.
Hi Stefan,
Thank you for your reply.I have used in combination of the scenario that you have mentioned.But i did not understand this example as per appian documentation.
Its giving me different result which is not expected as per my understanding or underlaying logic could be different
a!dataSubset is used to create the datasubset data structure only. It will not manipulate your data in any way. If you want to sort/page data, you want to use todatasubset(). Check out to documentation.
You are correct it has to be used with the todatasubset() for data manipulation like paginating ,sorting. dataSubset is just a data structure.Thank you once again.I tried it worked.