consolidating indexes

Hi all, i have a list of 1000 data and i want if the first data is deleted from the list then that index position should be given to the next one. example : car truck train bike and so on  if i delete car then list should look like this  truck train bike and so on  Does any have any idea how we can do this in mendix studio pro?
1 answers

Hi Kumari,


For this you can use an integer value as the index and based on the position of element you are deleting you need to increment or decrement index numbers.

For Eg: If 1 is getting deleted retrieve all that have index bigger than the deleted and decrement 1

Hope this helps :)