GetMVGBusComp Method for a Business Component
The GetMVGBusComp method returns the multivalue group business component that is associated with a business component field.
Format
BusComp.GetMVGBusComp(FieldName)
The arguments you can use in this format are the same as the arguments that are described in ActivateField Method for a Business Component except that the GetMVGBusComp method uses the FieldName argument to identify the multivalue group business component.
Usage
A multivalue group is a set of detail records attached to the current record in a business component that holds the corresponding multivalue field. After you run the GetMVGBusComp method, it is recommended that you set the multivalue group business component to one of the following:
-
Nothing in Siebel VB
-
Null in Siebel eScript
Used With
COM Data Control, COM Data Server, Siebel Java Data Bean, Mobile Web Client Automation Server, Server Script
Examples
The following example Siebel VB code uses the GetMVGBusComp method to add a new address to the Hong Kong Flower Shop account:
Dim AccntBO as BusObject
Dim AccntBC as BusComp
Dim AddrBC as BusComp
Set AccntBO = TheApplication.GetBusObject "Account"
Set AccntBC = AccntBO.GetBusComp "Account"
With AccntBC
.SetViewMode SalesRepView
.ClearToQuery
.SetSearchSpec "Name", "Hong Kong Flower Shop"
.ExecuteQuery
If (.FirstRecord) Then Set AddrBC = .GetMVGBusComp ("Street Address")
With AddrBC
.NewRecord NewAfter
.SetFieldValue "City", "Denver"
.SetFieldValue "Street Address", "123 Main Street"
.WriteRecord
End With
End If
End With
Set AddrBC = Nothing
Set AccntBC = Nothing
Set AccntBO = Nothing
For more examples, see the following topics:
For more information about inserting records,
see Usage for the GetAssocBusComp Method in GetAssocBusComp Method for a Business Component.