Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

What would be the correct object reference ?

Avatar

Avatar
Validate 1
Level 2
sc203718
Level 2

Likes

3 likes

Total Posts

12 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
sc203718
Level 2

Likes

3 likes

Total Posts

12 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile
sc203718
Level 2

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 (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 1
Level 1
camilot95966368
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

2 solutions
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
camilot95966368
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

2 solutions
Top badges earned
Affirm 1
View profile
camilot95966368
Level 1

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

Answers (0)