Cicode Programming Reference > Cicode Function Categories > Accumulator Functions Introduction > AccumBrowseOpen

AccumBrowseOpen

The AccumBrowseOpen function initiates a new browse session and returns a handle to the new session that can be used in subsequent data browse function calls.

This function is a blocking function. It blocks the calling Cicode task until the operation is complete.

Syntax

AccumBrowseOpen( sFilter, sFields [, sClusters] )

sFilter:

A filter expression specifying the records to return during the browse. An empty string indicates that all records will be returned. Where a fieldname is not specified in the filter, it is assumed to be tagname. For example, the filter "AAA" is equivalent to "name=AAA".

Note: Use the following fields with care in filters since they return the actual value of the variable tag which they refer to.
RUNNING, STARTS, TOTALISER, TRIGGER, VALUE.

sFields:

Specifies via a comma delimited string the columns to be returned during the browse. An empty string indicates that the server will return all available columns. Supported fields are:

COMMENT, TAGGENLINK.

See Browse Function Field Reference for information about fields.

sClusters:

An optional parameter that specifies via a comma delimited string the subset of the clusters to browse. An empty string indicates that the connected clusters will be browsed.

Return Value

Returns an integer handle to the browse session. Returns -1 when an error is detected.

The returned entries will be ordered alphabetically by name. After a reload of the Report Server, any new records may be added at the end.

Related Functions

AccumBrowseClose, AccumBrowseFirst, AccumBrowseGetField, AccumBrowseNext, AccumBrowseNumRecords, AccumBrowsePrev

Example

INT iSession;
...
iSession = AccumBrowseOpen("NAME=ABC*", "NAME,AREA", "ClusterA,ClusterB");
IF iSession <> -1 THEN
// Successful case
ELSE
// Function returned an error
END
...

See Also

Accumulator Functions