cXML Purchase Send – Merge objects overview

The following code changes are made in the merged objects. It’s probably more efficient to add these manually without going through the trouble of trying to merge into you environment and there are only four objects to modify with some minor changes.


There changes to the VendTable are minimal with the addition of a new field. First modify the VendTable. There is a new field here called cXMLOrderEnable which is based on the EDT cXMLOrderEnable which is included in the CXMLPurchaseRequest project. This fields base been added to the PurchaseOrder field group so it will display on the VendTable form and avoid making the need for a form modification.



Second modify the PurchTable to add the same field based on the same data type cXMLOrderEnable. This will be copied from the VendTable in the initFromVendTable method when a purchase order is created.


The code change in the initFromVendTable method is one line of code as seen in the compare. You can add this code at the bottom of the method.

this.cXMLOrderEnable = _vendTable.cXMLOrderEnable;



The third change is a new override on the insert method for the VendPurchOrderJour table. This has one line of code as you can see in the compare. This makes a call to a class that is provided in the CXMLPurchaseRequest project.

public void insert()







The fourth change is code to record when a purchase order is cancelled. This is made by an ammendment to the run method on the PurchCancel class.

//Mark request deletion.



Refer to this post for an overview of the cXML Purchase Order Send.





One response to “cXML Purchase Send – Merge objects overview

  1. Pingback: cXML Purchase Request Send – Download and setup notes | OrganicAX·

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s