Index 1: Label text (e.g., genre name)
Index 3: Image URL
Index 5: Audio source URL
What I’m trying to do:
When any dynamic card is clicked, I want to:
Get the index of the clicked card
Use that index to extract the corresponding:
📷 Image
🏷️ Label
🎵 Audio source
Display the label and image
Set Player.Source to the audio URL and play it
Issue:
I’m having trouble getting the index or selecting the correct sublist and fields. Sometimes I get errors like:
The operation select list item cannot accept the arguments: [list], [component]
What I’ve tried:
Using GetId(component)
Extracting the number from the ID
Selecting item from list using the index
But I’m not sure I’m handling it the right way or assigning IDs correctly.
suppose if you use plain number alone to create the main card view then get the clicked component id using like this. If you search in community you will get plenty of results and you no need to make a post even for that
So it clears you are using card 2 along with the id, so in the above block i suggested you use replace block to replace the card 2 with an empty text to get index
remove the replace blocks and use only get index in index place of the select item list
But make sue this index 1 will give global DATA first row item, if you want to get image url , then again you should use one more select list item list block to get the 2nd item i think for the image
pls understand the logic. While creating dynamic component, first you get global data items using get number, from this new list (i mean row) you are parsing only the 2nd item of this list. So here you should use like this