Navigation:  Classes > bRecordGroup >

bRecordGroup:ExpandItems()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Expands one or all collapsed record group items.

Class

bRecordGroup

Type

Method

Syntax

<oRecordGroup>:ExpandItems(

<iOptions>,

[<auItem>]

) Æ lSuccess

Arguments

<iOptions>The options that are to be used when expanded the record group items. The following values are supported:

 

Option

Description

BRGEIO_NONE

No options are defined.

BRGEIO_EXPANDALL

Expand all record group items which are already determined.

 

Remarks

So that the record group items are also expanded automatically which were not determined yet, the option BRGEIO_SETAUTOOPENINLEVEL must be defined in addition.

 

The Argument auItem is not to be used.

BRGEIO_ITEM

The argument auItem contains objects of the class bRecordGroupItem.

 

Remarks

The option is not supported in combination with BRGEIO_EXPANDALL or BRGEIO_SETAUTOOPENINLEVEL.

BRGEIO_RECNO

The argument auItem contains the record numbers of the record group items.

BRGEIO_REGARDSUBITEMS

If a record group item contains sub items (see also bRecordGroupItem:ItemList), then these are also expanded.

BRGEIO_SETAUTOOPENINLEVEL

In combination with the option BRGEIO_EXPANDALL the option BRGLO_AUTOOPEN is put in the record group level of all open record group items (see also bRecordGroupItem:Level).

 

Data Type:DWord

 

<auItem>List of the record group items which are to be expanded. The list can contain either objects of the class bRecordGroupItem or the record numbers of the record group items.
Data Type:Array

Return Value

lSuccessA logical value that indicates whether the record group items could be expanded.
TRUEThe record group items were expanded.
FALSEThe record group items could not be expanded.
Data Type:Logic

Description

bRecordGroup:ExpandItems() expands one or all collapsed record group items.

Samples

In the sample below all collapsed record group items in a bBrowser are expanded.

 

// Expand all already collapsed record group items
oBrowser:RecordGroup:ExpandItems(_Or(BRGEIO_EXPANDALL, BRGEIO_SETAUTOOPENINLEVEL))

 

// Refresh the bBrowser

oBrowser:Server:GoTop()

oBrowser:Refresh()

See Also

bRecordGroup:LevelList

bRecordGroupItem

bRecordGroupLevel:Options

 


Page url: http://www.YOURSERVER.com/index.html?brecordgroup_expanditems.htm