Instead of companyVO = event.itemRenderer.data as CompanyVO
try companyVO = event.currentTarget.selectedItem as CompanyVO HTH Steve --- In [email protected], "Jeremy Rottman" <rottmanl...@...> wrote: > > I have written a vo that for some odd reason always comes up null when I try > to populate it. Everything I have tried comes up with the same results. I > could use an extra set of eyes to see if there is something small I am > missing. > > Any help with this is greatly appreciated. > > > CompanyVO: > package com.rottmanj.model.vo > { > import mx.collections.ArrayCollection; > > [RemoteClass(alias="com.rottmanj.model.vo.CompanyVO")] > > [Bindable] > public class CompanyVO > { > > public var company_uuid:String > = ""; > public var company_indst:String > = ""; > public var company_class:String > = ""; > public var description:String > = ""; > public var isPriv:Boolean > = false; > public var alt_id:String > = ""; > public var entity_name:String > = ""; > public var create_who:String > = ""; > > // address vo > > public var address_id:String > = ""; > public var address1:String > = ""; > public var unit_type:String > = ""; > public var unit_number:String > = ""; > public var address2:String > = ""; > public var city:String > = ""; > public var state_prov:String > = ""; > public var code_zip:String > = ""; > public var country:String > = ""; > public var type:String > = ""; > > > public function CompanyVO() > { > } > > } > } > > Populating the VO: > > [Bindable] > public var companyVO:CompanyVO; > > private function sSelectCompany(event:ListEvent):void > { > companyVO = event.itemRenderer.data as CompanyVO > trace(ObjectUtil.toString(companyVO)); > } > > When a user clicks on a row in a datagrid, sSelectCompany is called via > itemDoubleClick="sSelectCompany(event)". This works perfectly fine. > > This is the result I get from tracing out the event.itemRenderer.data > (Object)#0 > address1 = "" > address2 = "" > address_id = "" > alt_id = "ALC05042009_000000000001" > city = "" > code_zip = "" > company_class = "Schol" > company_indst = "Elect" > company_uuid = "COM05042009_000000000001" > country = "" > create_who = "" > description = "This is agreat Company" > entity_name = "Test Company" > isPriv = 0 > mx_internal_uid = "F1EC080D-498D-9825-761F-5DF5E33C39DF" > state_prov = "" > type = "" > unit_number = "" > unit_type = "" > > I have tested my coldfusion code and it returns the proper VO. I have > verified that case is not the issue. > > component com.rottmanj.model.vo.CompanyVO > ADDRESS1 [empty string] > ADDRESS2 [empty string] > STATE_PROV [empty string] > ALT_ID ALC05042009_000000000001 > DESCRIPTION This is agreat Company > CODE_ZIP [empty string] > ADDRESS_ID [empty string] > ISPRIV 0 > CITY [empty string] > COUNTRY [empty string] > COMPANY_UUID COM05042009_000000000001 > UNIT_NUMBER [empty string] > ENTITY_NAME Test Company > TYPE [empty string] > COMPANY_INDST Elect > UNIT_TYPE [empty string] > COMPANY_CLASS Schol > CREATE_WHO [empty string] >

