Wappler Version : 3.3.2
Operating System : php
Expected behavior
The following should properly evaluate within a server action:
$parent.$parent.query1[0].user_id
Actual behavior
Returns null
How to reproduce
In the example above parent works, but parent of parent does not.
Antony
September 21, 2020, 10:10pm
3
Ken, have you tried it without either of the $parents? Patrick told me they are only needed when there is a clash of names, so I often just omit them!
Thanks Antony…I have my work-around already, just bumping to try and get the editor to a better place.
1 Like
George
September 22, 2020, 6:33am
5
I don’t think multiple $parents work maybe @patrick can check it out
Has same issue, got around it by assigning session variables at $parent.$parent level then referencing those.
1 Like
patrick
September 22, 2020, 9:42am
8
If you don’t have a variable called query1
inside any of the repeater scopes then you don’t need the $parent
. Just use query1[0].user_id
directly.
Just a reminder guys, I have my workaround. So if $parent is not needed, then the editor should not add it.
sid
October 12, 2020, 6:47am
10
This is really weird. I almost thought I was doing something wrong.
@George / @patrick Did you guys come up with a way to handle this yet? I could not think of any way to even just inform user that $parent is optional… it would be really helpful… at least until this can be handled by action picker itself.
Teodor
December 10, 2020, 6:30pm
14
This has been fixed in Wappler 3.6.0