XmlResource.write

Issues a write request to the adapter specified by adapterName on the XML Resource. Note that different adapters support different methods and not all adapters support this method.

Before the write request is processed, the update() method is called internally - this transfers any non-tabular field data to the resource from mapped form fields.

If the resource is mapped to tables in the form, resource data must be updated prior to invoking this method; this is done using the updateTable() method on all relevant tables.

Further documentation.

Javascript example (write a XML document to file):

 // update the ORDERS table in the XML document 
 tables.ORDERS.updateTable();
 // call the file adapter to write an XML document
 resources.ORDERS_XML.write("FILE1");
 

Parameters

java.lang.String  adapterName,