Sam
2009-03-20 05:54:00 UTC
I am creating a customer via business connetor using the following code,
AxaptaObject axObj = objAX.CreateAxaptaObject("AxCustTable");
axObj.Call("parmAccountNum", "1234");
axObj.Call("setAccountNum");
axObj.Call("parmName", "Sampath");
axObj.Call("setName");
axObj.Call("parmNameAlias", "Sampath");
axObj.Call("setNameAlias");
axObj.Call("parmStreet", "abc123 street");
axObj.Call("parmCity", "Aberdeen");
axObj.Call("parmState", "MA");
axObj.Call("parmCountryRegionId", "US");
axObj.Call("parmZipCode", "01036");
axObj.Call("parmCustGroup", TEST");
objAX.TTSBegin();
objAX.call("save");
objAX.TTSCommit();
The above code works fine and customer is created in CustTable. But i have
tried to modify
the record using the following code;
AxaptaObject axObj = objAX.CreateAxaptaObject("AxCustTable");
axObj.Call("parmAccountNum", "1234");
axObj.Call("setAccountNum");
axObj.Call("parmName", "AX Test");
axObj.Call("setName");
axObj.Call("parmNameAlias", "AX Test");
axObj.Call("setNameAlias");
axObj.Call("parmStreet", "abc123 street");
axObj.Call("parmCity", "Aberdeen");
axObj.Call("parmState", "MA");
axObj.Call("parmCountryRegionId", "US");
axObj.Call("parmZipCode", "01036");
axObj.Call("parmCustGroup", TEST");
objAX.TTSBegin();
objAX.call("modify");
objAX.TTSCommit();
The above code doesnt update the customer entry with the modified details.
I dont know what i am missing here.
Could you please help me?
Thanks in Advance
AxaptaObject axObj = objAX.CreateAxaptaObject("AxCustTable");
axObj.Call("parmAccountNum", "1234");
axObj.Call("setAccountNum");
axObj.Call("parmName", "Sampath");
axObj.Call("setName");
axObj.Call("parmNameAlias", "Sampath");
axObj.Call("setNameAlias");
axObj.Call("parmStreet", "abc123 street");
axObj.Call("parmCity", "Aberdeen");
axObj.Call("parmState", "MA");
axObj.Call("parmCountryRegionId", "US");
axObj.Call("parmZipCode", "01036");
axObj.Call("parmCustGroup", TEST");
objAX.TTSBegin();
objAX.call("save");
objAX.TTSCommit();
The above code works fine and customer is created in CustTable. But i have
tried to modify
the record using the following code;
AxaptaObject axObj = objAX.CreateAxaptaObject("AxCustTable");
axObj.Call("parmAccountNum", "1234");
axObj.Call("setAccountNum");
axObj.Call("parmName", "AX Test");
axObj.Call("setName");
axObj.Call("parmNameAlias", "AX Test");
axObj.Call("setNameAlias");
axObj.Call("parmStreet", "abc123 street");
axObj.Call("parmCity", "Aberdeen");
axObj.Call("parmState", "MA");
axObj.Call("parmCountryRegionId", "US");
axObj.Call("parmZipCode", "01036");
axObj.Call("parmCustGroup", TEST");
objAX.TTSBegin();
objAX.call("modify");
objAX.TTSCommit();
The above code doesnt update the customer entry with the modified details.
I dont know what i am missing here.
Could you please help me?
Thanks in Advance