Because if i don't touch any card in the carousel, it shows all different and core information, but if i touch an item it always assigns it the information of the first item to the card, instead it should take the information of that card i am touching .
You are already doing that.
And I can see that you are inside fo a block by the refresh events
So I don't know where will the select card be used.
If it's going to be used outside of the block, you need to create an input on the refresh event and pass the card selected...
If its inside of the block, create a local variable with the same data type as the one on the input of the client action (the handler of the onclick), and inside of the action, save the card selected(the input of the client action) to the local variable.
It's hard to explain when there isn't an example; you could replicate your case, and it would be easier to explain. I don't know the use case, all logic, all the elements, and how they are placed, and where you want to move your data.
Hey!
You need to create input on the client's action. And pass the information on the handler.
When you are using it directly from the aggregate, it will not work; it will pass first in the list always.
Kind Regards,
Márcio
This is the image for the container action OnBookIt.
I think it must be those refresh events you must pass through input in the refresh or save in a local variable in the block the card selected. The refreshes once you change something. It might be resetting the option chosen.
I recommend you do debugging and see if you are selecting or not the card and the values of the chosen card are getting caught in the action. Then, after you continue the debug at the end of the flow, you will notest that the value selected was reset.
EDIT:
I don't understand one thing; what do you want to do with the selected card?
You must save somewhere the id at least of the card/info you selected.
Again, I recommend you debug.
"I recommend you do debugging and see if you are selecting or not the card and the values of the card selected are getting caught in the action. Then, after you continue the debug at the end of the flow, you will notest that the value selected was reset."
how do i pass to the onclick event the information of the selected card? what variable should i pass to it in the handler?
what I have discovered now is that the item stays selected correctly in the carousel, however after you select it the carousel shows you the first item and if you scroll down then you find the selected one.