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

Error message: $host does not have a method 'resetDataPermsCheck'

Avatar

Avatar
Validate 1
Level 2
KeithGilbert
Level 2

Likes

2 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
KeithGilbert
Level 2

Likes

2 likes

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
KeithGilbert
Level 2

02-01-2008

LiveCycle Designer 8.05.



I am trying to reset the data in a subform. It is working great in certain subforms in my form. However, some of the code is as follows:



if (form1.P1.docSF.new_revision.rawValue == "0") {

// do something

} else {

xfa.host.resetData("form1.P1.newdoc_numberSF");

}



With this code, I receive an error (in the Warnings panel) that says "$host does not have a method 'resetDataPermsCheck'", yet the subform fields still reset properly. If I move the "xfa.host.resetData..." line out of the "else" section into the "if" section, the error message goes away.



Any idea what might be going on?