DynamicComponents-AI2 icon indicating copy to clipboard operation
DynamicComponents-AI2 copied to clipboard

Getproperty method doesn't work

Open sachinlobo11 opened this issue 1 year ago • 3 comments

I have used this extension for reading metaproperty details. I was getting error got argument 0 expected 4.

I have checked the code I don't know what is a problem .

I wanted to read the text data from label ( getter). I have also tried get property with name "Text". Couldn't read anything. Is there anything to do.. Can someone help?

sachinlobo11 avatar Aug 09 '24 17:08 sachinlobo11

Can you show your blocks? Are you using the latest version of the extension?

ysfchn avatar Aug 13 '24 21:08 ysfchn

No problem. Get property worked for me. GetPropertyMeta seems to have problem. Thats fine because I deleted those block and did alternative using set property. blocks (2)

My Actual goal is to when I click on dynamic component(label) it(Text) should underline using <u>name </u> But name variable could only contains only few charecters. (sometime 20 charecters sometimes 4 charecters).

So I have planed to extract from meta property. meta property block looks like this. blocks (1)

So here it was saying while running in my Phone "Provided 0 argument need 4". Currently running on android 14.

sachinlobo11 avatar Aug 14 '24 05:08 sachinlobo11

Yeah, it seems that GetPropertyMeta blocks having problems. But you are supposed to use any component blocks (recommended) or GetProperty block anyway if you want to get a property value of a component. GetPropertyMeta returns ALL properties' information as a dictionary, not just values.

resim

Also, since you already have a get component variable, you don't need to GetId of it and get its component back again. You can just use it in set Label Text block.

ysfchn avatar Aug 15 '24 12:08 ysfchn