on 10-15-2008 11:07 AM
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
Hi,
The syntax to retrieve the values is
Syntax
BusinessCollectionobject.Getattribute(index,"attributename") will retrieve the value.
Thanks,
Abishek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.