Hi community, I am displaying data got from Airtable using dynamic components extension by @yusufcihan, my problem is when the button is clicked in the dynamic arrangement, how can I get that arrangement id? the id in a variable is changed when data is loaded.
What I tried
I have no idea, from where to start , I can explain in detaily if you help me
Add a static arrangement to the screen and make it hidden.
Then go to the “Blocks” and find Any Component.
Under then select “Any Horizontal (or Vertical) Arrangement”.
Find the related event. And add the event to the workspace.
Then use GetId block along with component parameter to learn component’s ID.
I think what @Xoma want is
Suppose there is an arrangement (HA or VA)
Now in this arrangement there is a button and on the click of this button, @Xoma want to know the arrangement’s ID in which the clicked button is
Maybe we could set the same id for different components , but many developers, how do they do?
Using variable whenever they create new arrangements anything (cardview, button,etc…) or by joining text with number.
so, that is the only way right? Any easy one,
Join text with the number remember text must be different
I use a kind of system for id text+number as @VSatish told.
Text - sub id
Number - main Id
So if you create a button in HA. Then the ID of HA is
ha1 and button is
And when button click then you will get id and just remove the text and you will get main I’d from that you can get Id of button.
Hope you got it. Because it’s quite confusing. But helpful.
I may create a guide after hackathon.
There is much to do with the extension by @yusufcihan
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.