cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to access the attributes of parent of parent type in backoffice?

Former Member
0 Likes
822

Tried to use

where newPudo is the child, pickUpDeliveryMode is the parent and finally newPudo.cisMinimumPv is the variable which is supposed to cantain the value from the pickUpDeliveryMode's parent. Any thought's how to retrieve the value from parent's parent in backoffice create wizard?

                 <wz:assign property="pickUpDeliveryMode" value="ctx.parentObject"/>
                 <wz:assign property="newPudo.cisMinimumPv" value="pickUpDeliveryMode.parentObject.cisMinimumPv"/>
             </wz:prepare>

Full node link

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member625836
Active Contributor
0 Likes

Hi ,

It all looks fine with following conditions:

  1. This configuration for CisPudoPickUpDeliveryMode is used only when parentObject is available in context (i.e. from reference editor)

  2. This parent of CisPudoPickUpDeliveryMode has attribute called parentObject

  3. An object from above has attribute called cisMinimumPv

If above is not correct, then please provide detailed and exact description of type hierarchy involved in this case.

Cheers, Jacek