The CxGrpEditor object contains the following methods:
The Configure method launches a Group Service Metadata dialog box, which is used to configure GRP metadata.
Configure() As Integer
This method returns one of the following values:
| -1 or 0 | An error occurred. | |
| 2 | Close button was pressed. |
Example
The following example launches a Group Service Metadata dialog box.
|
Sub Dim iRet iRet= GrpEditor.Configure MsgBox iRet End Sub |
The Connect method connects to a GRP.
Connect(DomainSiteService As String)
| Parameter | Required | Description |
|---|---|---|
|
DomainSiteService |
Yes |
The [Domain]Site.Service to which to connect. A domain is optional. The service must be a valid GRP. |
Example
The following example creates and connects the CxGrpEditor object.
|
Sub Dim GrpEditor Set GrpEditor = CreateObject("CxEditors.CxGrpEditor") GrpEditor.Connect("[5410]CYGDEMO.GRP") End Sub |
The Copy method launches a Create Node property sheet initialized with the information in the specified record.
Copy(QueueKey As String) As Integer
| Parameter | Required | Description |
|---|---|---|
|
QueueKey |
Yes |
The database queue key of the record to copy. |
This method returns one of the following values:
| -1 or 0 | An error occurred. | |
|
1 |
OK button was pressed. | |
| 2 | Cancel button was pressed. |
Example
The following example launches a Create Node property sheet for record "0000000001."
|
Sub Dim iRet iRet= GrpEditor.Copy("0000000001") MsgBox iRet End Sub |
The Delete method launches a Delete Node property sheet initialized with the information in the specified record.
Delete(QueueKey As String) As Integer
| Parameter | Required | Description |
|---|---|---|
|
QueueKey |
Yes |
The database queue key of the record to delete. |
This method returns one of the following values:
| -1 or 0 | An error occurred. | |
|
1 |
OK button was pressed. | |
| 2 | Cancel button was pressed. |
Example
The following example launches a Delete Node property sheet for record "0000000001."
|
Sub Dim iRet iRet= GrpEditor.Delete("0000000001") MsgBox iRet End Sub |
The Disconnect method disconnects from the connected GRP service.
Disconnect()
Example
The following example disconnects the GrpEditor object.
|
Sub GrpEditor.Disconnect End Sub |
The Edit method launches a property sheet for the specified record.
Edit(QueueKey As String) As Integer
| Parameter | Required | Description |
|---|---|---|
|
QueueKey |
Yes |
The database queue key of the record to edit. |
This method returns one of the following values:
| -1 or 0 | An error occurred. | |
|
1 |
OK button was pressed. | |
| 2 | Cancel button was pressed. |
Example
The following example launches a property sheet for record "0000000001."
|
Sub Dim iRet iRet= GrpEditor.Edit("0000000001") MsgBox iRet End Sub |
This method is unimplemented.
The New method launches a Create Node property sheet.
New() As Integer
This method returns one of the following values:
| -1 or 0 | An error occurred. | |
|
1 |
OK button was pressed. | |
| 2 | Cancel button was pressed. |
Example
The following example launches a Create Node property sheet.
|
Sub Dim iRet iRet= GrpEditor.New MsgBox iRet End Sub |