Avatar

Level 3

Apparently the 2 lines below do not pass the instance of Item to the global function, or I am referencing the instance incorrectly in the fucntion, which is the bottom part.  Can someone help me with the proper syntax to allow a function to work on an instance in a LiveCycle form?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

var rowInstance = this.parent.parent._Item;

 

script_object.deletetheRow(testMe, rowInstance);

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

form1.#variables[0].#script[0] - (JavaScript, client)

function deletetheRow(testMe, rowInstance)

{

rowInstance.removeInstance(this.parent.index);
}