tags:

views:

6

answers:

0

I have some issue plz help me .... I have some fields in a grid like.. Client, Product, Owner, Balance etc.... from an object A but Ownere field comes from object B. the Client and Product composite reference key.. code ---

public function populateDataGrid(IMMRequestQueryResult:QueryResult):void{
if (IMMRequestQueryResult.size > 0){ for each (var item:SObject in IMMRequestQueryResult.records){ var reqObject:IMMOpenInvoice = new IMMOpenInvoice(); reqObject.Id = item.Client_c; reqObject.PropertyName = item.Product_c; reqObject.OwnerName = callFunction(reqObject.Id,reqObject.PropertyName);
IMMRequestArray.addItem(reqObject); } } myGrid.dataProvider=IMMRequestArray; }