Purpose
Change the state of a record group item (e.g. open or closed).
Class
Type
Method
Syntax
<oBrowser>:RecordGroupItemChangeState(
<oRecordGroupItem>,
<iOptions>
) Æ lSuccess
Arguments
<oRecordGroupItem> | The record group item whose state is to be changed. |
Data Type: | bRecordGroupItem |
<iOptions> | The options to be used when changing the state. The following options are supported: |
Option |
Description |
BRGICSO_NONE |
The state of the record group item is not changed. |
BRGICSO_OPEN |
The record group item is opened. Through this the sub record group items are shown. |
BRGICSO_CLOSE |
The record group item is closed. Through this the sub record group items are hidden. |
BRGICSO_REDRAW |
The bBrowser is redrawn so that the changed state of the record group item gets visible. |
Data Type: | DWord |
Return Value
lSuccess | A logical value that indicates whether the state of the record group item was changed. |
TRUE | The state was changed. |
FALSE | The state could not be changed. |
Data Type: | Logic |
Description
bBrowser:RecordGroupItemChangeState() opens or closes a record group item. When opening the sub record group items get visible. When closing the sub record group items are hidden. So that the changed state of the record group item gets visible it must be redrawn. For this the option BRGICSO_REDRAW can defined in the argument iOptions.
Remarks
After opening or closing a record group item the methods bBrowser:RowSelect() and bBrowser:CellSelect() are called.
See Also
bBrowser:RecordGroupItemClose()
bBrowser:RecordGroupItemOpen()
Page url: http://www.YOURSERVER.com/index.html?bbrowser_recordgroupitemchangestate.htm