Get Category list |
Examples are written using Scripting Engine. You can use the below code segment within any event, so once that particular event is fired it lists all categories and their internal ids. You should store the script file in the Scripts folder in SO_ARC.
This section tells us how we can retrieve the Category list using SuperOffice Application Object.
This text may be copied to the notepad, and saved as a *.vbs file.
Sub OnCurrentContactNotModified Dim enTableCategory enTableCategory=64 Dim cats Dim cat Dim msg set cats = Database.GetList(enTableCategory) For Each cat in cats msg = msg & cat.Text & " " & cat.Id msg = msg & Chr(13) & Chr(10) Next SOMessageBox msg, "Category List" End sub
The above script will be called if you click edit on a contact and save without doing any changes, and the result can be seen as follows .
Up: Programming Examples Prev: Get a list of people Next: Search for a contact with a given SAINT value Edit