Help related to airtable and dynamic components extension

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 :sob:, I can explain in detaily if you help me

1 Like

Add a static arrangement to the screen and make it hidden.

Then go to the ā€œBlocksā€ and find Any Component.

image

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.

1 Like

I will PM you

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

1 Like

Maybe we could set the same id for different components :sob:, but many developers, how do they do?

1 Like

Using variable whenever they create new arrangements anything (cardview, button,etcā€¦) or by joining text with number.

1 Like

so, that is the only way right? Any easy one,

1 Like

Join text with the number remember text must be different

1 Like

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 bt1.
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

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.