Avatar

Level 10

Hi,

If you open the form in LC Designer and select x, y, and z fields. Go to the Object > Binding palette and select the binding as None. This means that the fields will not take part in an XML data import OR export. This might suit your requirements, depending on how you are processing returning data.

If you need to export data in the x, y, and z fields, then change the binding back to Normal/Name.

As a workaround, you could script variables to have the values of the x, y and z fields BEFORE the import script. Then repopulate the fields after import. Something like this:

// declare the variables

var myX = TextField1.rawValue;

var myY = TextField2.rawValue;

var myZ = TextField3.rawValue;

// import the xml

xfa.host.importData();

// repopulate fields

TextField1.rawValue = myX;

TextField2.rawValue = myY;

TextField3.rawValue = myZ;

Hope that helps,

Niall

Assure Dynamics