IDatabaseGetHeadings Method |
Returns a collection of Headings for a given list.
From CRM 5 we have added the possibility to sort list items under different headings, visible for all or only for some usergroups.
Namespace:
SuperOffice.COM.SuperOfficeDB
Assembly:
SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
SyntaxIListTextHeadings GetHeadings(
SOTableId TableId
)
Function GetHeadings (
TableId As SOTableId
) As IListTextHeadings
Dim instance As IDatabase
Dim TableId As SOTableId
Dim returnValue As IListTextHeadings
returnValue = instance.GetHeadings(TableId)
IListTextHeadings^ GetHeadings(
[InAttribute] SOTableId TableId
)
Parameters
- TableId
- Type: SuperOffice.COM.SuperOfficeDBSOTableId
Id of table to get headings from.
Return Value
Type:
IListTextHeadingsIListTextHeadings
ExamplesGet all headings in the DocTmpl table
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
dim objso
dim objh
dim headings
set objso = CreateObject("superofficedb.database")
If not (objSO is nothing) Then
objso.login "<userid>", "<password>"
set headings = objso.getheadings(130)
For Each heading In headings
MsgBox heading.HeadingText, vbInformation + vbOKOnly, "supercom"
Next
else
msgbox "unable to connect to database"
end if
set objso = nothing
See Also