App Variable object attribute only contains _id, not the rest of the object

Hi,

If you create an app variable and set it to object class property, it only contains the _id. For instance referencing an attribute value in a text UI Component through the app variable does show nothing even if the object selected in the app variable has value in that field.
image

Reading the object the App variable is referencing to runtime gives a runtime object only containing the _id regardless of attribute values and references in app ui.

Regards
Sondre

And if you binds the Width or Height of a component to that App variable → objectclass.someInt it crashes Appfarm with the OBS screen. Unsure if this is due to the specific App variable case or in general.

Hi!

I´m trying to replicate your problem, and want to double check if I have understood your set up completely. Is this problem only happening when the App variable is connected to a runtime object?

And are there any errors in devtools?

Hi, if you set the app variable of object type to any object and then try to read that object from the app variable to a runtime object, the runtime object will be empty except the _id value.

No errors on the read as i can recall.

Thank you for the clarification! I encountered the same problem while testing and I have reported the bug internally :beetle:

1 Like