Hi,
How to add serial number for gallery items?
I cannot use local collection as my source is going beyond 2000.
Solved! Go to Solution.
Did you read the blog? I also have some guidance using the With() statement.
The problem you have you have already identified, however it is still possible to use a local collection.
How many records are in your list? I referred you to the "up to 4,000" and "bigger than 4,000" items to see which one applied to you.
After that adding a number is not difficult. If for example you had under 4,000 rows this could be used in your gallery
With(
{
wAsc,
Sort(
YourListName,
ID
),
wDesc,
Sort(
YourListName,
ID,
Descending
)
},
ClearCollect(
colTemp,
wAsc,
Filter(
wDesc,
!(ID in wAsc.ID)
)
)
);
Clear(colMyCollection);
ForAll(
colTemp,
Collect(
colMyCollection,
Last(
FirstN(
AddColumns(
colTemp,
"SerialNo",
CountRows(colMyCollection) + 1
),
CountRows(colMyCollection) + 1
)
)
)
);
Clear(colTemp)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @Jagadeeshk ,
Have a read of the "bigger then 4,000" comments on this Delegation blog of mine. There may also be some other useful information for you on it.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @Jagadeeshk ,
Just checking if you got the result you were looking for on this thread. Happy to help further if not.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Still I'm waiting for help
Did you read the blog? I also have some guidance using the With() statement.
The problem you have you have already identified, however it is still possible to use a local collection.
How many records are in your list? I referred you to the "up to 4,000" and "bigger than 4,000" items to see which one applied to you.
After that adding a number is not difficult. If for example you had under 4,000 rows this could be used in your gallery
With(
{
wAsc,
Sort(
YourListName,
ID
),
wDesc,
Sort(
YourListName,
ID,
Descending
)
},
ClearCollect(
colTemp,
wAsc,
Filter(
wDesc,
!(ID in wAsc.ID)
)
)
);
Clear(colMyCollection);
ForAll(
colTemp,
Collect(
colMyCollection,
Last(
FirstN(
AddColumns(
colTemp,
"SerialNo",
CountRows(colMyCollection) + 1
),
CountRows(colMyCollection) + 1
)
)
)
);
Clear(colTemp)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @Jagadeeshk ,
Just checking if you got the result you were looking for on this thread. Happy to help further if not.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
User | Count |
---|---|
257 | |
106 | |
87 | |
51 | |
43 |