Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ObjectDataSource - Assign list inside an instace object

Status
Not open for further replies.

meguia1030

IS-IT--Management
Aug 13, 2007
9
US
Hi,

There is a way that I can assign a collection list to a dataview control. This list is inside a object. This is my collection code.

Public Shared Function GetItem(ByVal id As Integer, ByVal getClientRecords As Boolean, ByVal WhatConn As Boolean, ByVal PersonType As Long) As BO.Smartgap.SGPoliApliManager.BO.SGPerson

Dim myPerson As BO.Smartgap.SGPoliApliManager.BO.SGPerson =

DAL.Smartgap.SGPoliApliManager.DAL.SGPersonDB.GetItem(id, WhatConn, PersonType)
If Not (myPerson Is Nothing) AndAlso getClientRecords Then
myPerson.DependentsList = DAL.Smartgap.SGPoliApliManager.DAL.SGDependentsDB.GetList(id, WhatConn)
myPerson.AddressList = DAL.Smartgap.SGPoliApliManager.DAL.SGAddressDB.GetList(id, WhatConn)
myPerson.PhoneNumberList = DAL.Smartgap.SGPoliApliManager.DAL.SGTelephoneDB.GetList(id, WhatConn)
myPerson.EmailList = DAL.Smartgap.SGPoliApliManager.DAL.SGEmailDB.GetList(id, WhatConn)
myPerson.PayModeList = DAL.Smartgap.SGPoliApliManager.DAL.SGPayModeDB.GetList(id, WhatConn)
myPerson.AgentList = DAL.Smartgap.SGPoliApliManager.DAL.SGAgentDB.GetList(id, WhatConn)
myPerson.DoctorList = DAL.Smartgap.SGPoliApliManager.DAL.SGDoctorsDB.GetList(id, WhatConn)
myPerson.PolicyList = DAL.Smartgap.SGPoliApliManager.DAL.SGPolicyDB.GetList(id, WhatConn)
myPerson.BeneficiaryList = DAL.Smartgap.SGPoliApliManager.DAL.SGBeneficiaryDB.GetList(id, WhatConn)
End If
Return myPerson
End Function

Thanks in advance
 
Hi,

The question is:

How or If there is a way to get the list inside the parent object?

The code qet the parent and the child information.

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top