What would be the correct object reference ?

sc203718

18-01-2019

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

Accepted Solutions (0)

Answers (1)

Answers (1)

camilot95966368

28-01-2019

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