Expand my Community achievements bar.

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

Avatar

Level 2
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?
0 Replies