Pandora - Update Category
From SmartWiki
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);