13
Accessing nested data variable/current properties only works via formula, not the direct binding type.
complete
Greg Florkow
Something funky...
I am getting data from REST API and I have an object with another object inside.
On view canvas I can access it no problem with DataItem.object.property
I want to update the Record in Rest and when during the value assigment I use the type "Data" in selection - I get error. When I use formula and access exactly the same property inside the object - it all works fine...
I hope my attachment will provide more clarification.
This is quite strange as these should be equivalent. I have not encountered it DataItem.property but only in case of DataItem.object.property
UPDATE:
This also seems to affect current.myObject.myField bindings – formulas work, direct binding doesn't.

Log In
Activity
Newest
Oldest
H
Harri Sarsa
complete
This is now fixed with the latest release, see https://docs.appgyver.com/changelog#release-146-2020-12-11
R
Ryan Roberts
@Harri Sarsa: Thank you! This will really help new users to Appgyver not hit this roadblock.
J
Johannes
I think I have a similar issue: I have nested objects in a page variable and try to access a property in a flow function. If I use something like Obj1.subObj2.txt in Alert or in another flow function, Obj1.subObj2 is evaluated in the background instead and this produces an error (or in Alert, it just shows the entire object as json string). In a binding, the correct data is shown. Can you confirm it is the same issue and do you have an ETA for the fix @Harri Sarsa ?
H
Harri Sarsa
@Johannes: sounds similar. This is already fixed in the new runtime, which is in closed beta at the moment – should not be many weeks now, realistically before the end of October.
J
Johannes
@Harri Sarsa: thanks. is there any workaround? I would prefer not to change my entire data model just to be able to continue developing my app the next weeks.
H
Harri Sarsa
@Johannes: you should be able to use the formula
pageVars.Obj1.subObj2.txt
even if the direct binding does not work.H
Harri Sarsa
in progress
Will be fixed with https://tracker.appgyver.com/feature-requests/p/upgraded-client-runtime the latest, trying to see if we can fit it in before that.
H
Harri Sarsa
Edited the topic to be a bit more descriptive!
H
Harri Sarsa
planned
H
Harri Sarsa
This is verified; using the direct data binding type doesn't work while formula binding does work.