Pandora - Update Category
From SmartWiki
Revision as of 07:54, 10 August 2010 by sharris@smartsimple.com (talk | contribs) (Created page with 'This function will update a category list on a company record or create a new category list on a company record. category_update(flag,callbackfunc,recordset) {| border="1" !Pa…')
This function will update a category list on a company record or create a new category list on a company record.
category_update(flag,callbackfunc,recordset)
Parameter | Description |
---|---|
Flag | Asynchronous processing Flag
Set to False for synchronous processing. Set to True for asynchronous processing. |
Callbackfunc | User created Java function to manage the callback from an asynchronous function. |
rset | ssRecordSet object containing data to be updated to the system. |
Returns |
Example
var rs=new ssRecordSet();
var newcats=",12345,12346,";
rs.addfieldnames("companyid,catlist");
var idx=rs.getnewrecnumber();
rs.addfieldvaluebyname(idx,"companyid","@companyid@");
rs.addfieldvaluebyname(idx,"catlist",newcatlist);
category_update(false,,rs);