cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve attribute value from Business Collection in MSA 5.0

Former Member
0 Kudos

Hi,

I need to retrieve attribute value using Business collection in MSA 5.0. Can anyone tell me the syntax of Getattribute with business collection?

Thanks,

Neha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

The syntax to retrieve the values is

Syntax

BusinessCollectionobject.Getattribute(index,"attributename") will retrieve the value.

Thanks,

Abishek

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Neha

Please find the steps below how to use the Getattribute in case of business Collection.

Dim ObjEmpQry As BusinessQuery 'Declare Businessquery

Dim ObjEmpCol As BusinessCollection 'Declare BCol

Dim str as string

ObjEmpQry = BusinessRootObject.BusinessFactory.CreateBusinessQuery("PRNB_BSEMPQUERY") ' Instantiate BQ

ObjEmpQry.PRNB_Sfamitabt = EmployeeSysKey

ObjEmpCol = ObjEmpQry.Query ' Get the Collection Object

str =ObjEmpCol.GetAttribute(1, "FirstName") ' get the attribute value

For more information, you can also check the MTFrameworks50.chm which is present in Mobile\Bin.Net folder. It is a API documentation talks about how to use the UI and BOL framewors.

Best regards

Shankar