$parent.$parent not working on server actions

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.

@George ?

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

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

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.

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.

This has been fixed in Wappler 3.6.0