Hi Guys
I'm trying to iterate through a list one at a time. For example with the click of a button I want to jump to the next id in the list etc.
Any ideas? I know how to do this in code but can't figure it out in outsystems!
Kind Regards
Werner
Ok, here goes an example of what I think you mean:
Preparation has a Get.
I used OutSystemsSampleDataDB's Sample_Employee
My screen has a container with employee info and buttons to move back and forward.
And the local action is this.
Every time I press a button, Position values goes up or down (or jump to the other side) and a different name is shown.
Hi Werner.
It is exactly the same.
You define a variable of type integer in the page.
The Click action returns that position (with the classic listvariable[counter] ) and increments the counter.
You stop when Length is reached.
Nuno Reis wrote:
Hi Nuno
I initially thought that this would solve my problem but I'm still stuck.
Going to try and explain in some more detail.
I need to iterate through an entity which is displaying data on a screen.
So I will need some sort of variable in the entity.
I'm not making use of a list widget/table.
This is what I have:
Hi Nuno Reis
This is exactly what I was looking for - you are my hero!
I can't thank you enough!
I have to do the same for a mobile app. Moreover, Data is coming from an external source which I have to store in a list. Any Ideas??
Hi Gaurav,
Since you have already created a new topic for this, I'm going to close this topic.