Expand my Community achievements bar.

SOLVED

What would be the correct object reference ?

Avatar

Level 2

Hello, I have this error in my form:

TypeError: form1.tabelAnexa.Row.all.item(...).prod.suprNimp is undefined

15:XFA:form1[0]:tabelAnexa[0]:Row[1]:veg2[0]:veg1[0]:prod[0]:oRegularizare[0]:click

This is the code that gives the error:

form1.tabelAnexa.Row.all.item(i).prod.suprNimp.rawValue = "";//

I think it is a reference problem...what would be the correct object path ?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 2

One methods is:

- Click in the JS Code window on the oRegularizare object

- In the editor in Design view navigate to the suprNimp field you are trying to reference

- Hold CTRL and Click on the suprNimp field

This will automatically populate in the relative object path for suprNimp

Another method is to click on suprNimp directly and on the JS window click on all events and the path should appear on all the possible events, just disregard the event name at the end.

I prefer the reference:

this.resolveNode("[object path]").rawValue

This helps when you have multiple instances of the same object.

If you'd like I'm happy to assist further: https://www.fiverr.com/share/yj5Pe

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

One methods is:

- Click in the JS Code window on the oRegularizare object

- In the editor in Design view navigate to the suprNimp field you are trying to reference

- Hold CTRL and Click on the suprNimp field

This will automatically populate in the relative object path for suprNimp

Another method is to click on suprNimp directly and on the JS window click on all events and the path should appear on all the possible events, just disregard the event name at the end.

I prefer the reference:

this.resolveNode("[object path]").rawValue

This helps when you have multiple instances of the same object.

If you'd like I'm happy to assist further: https://www.fiverr.com/share/yj5Pe