Next/Previous Object of current object from list

0
How to get next object and previous object of current object from list?  
asked
1 answers
0

Hi Mitali,

 

One solution would be to store the createdDate of the object.


For the previous object: sort the list based on createdDate descending and use the xpath [createdDate < $currentObject/createdDate].


For the next object: sort the list on createdDate ascending and use the xpath [createdDate > $currentObject/createdDate].

 

I hope this helps. Good luck!

 

Kind regards,
Esther

answered