Yes I am trying to return a CFC that's aliased to TroubleLogVO.

I'll try to put in the breakpoint.  I'm not too skilled at using and 
interpreting the debugging feature of flex.

Joe Rinehart wrote:
> Ian,
>
> If you put a breakpoint in, what's the type of e.result?  It looks  
> like it's something that's not casting to troubleLogEntry, resulting  
> in troubleLogEntry having a null value.
>
> Are you using CF and trying to return a CFC that's aliased to  
> TroubleLogVO?
>
> -Joe
>
> On Jul 6, 2007, at 11:48 AM, Ian Skinner wrote:
>
>   
>> What basic concept am I missing here?
>>
>> import Model.troubleLogVO;
>> ....
>> [Bindable]
>> public var troubleLogEntry:troubleLogVO = new troubleLogVO;
>> ....
>> /* CRUD readEvent result Handler */
>> protected function readEventResult(e:ResultEvent):void
>> {
>>     troubleLogEntry = e.result as troubleLogVO;
>>     Alert.show(e.result.id);
>>     Alert.show(troubleLogEntry.id);
>> }
>>
>>
>> The first Alert works, e.result.id shows the proper value.  The second
>> Alert fails saying that one can not access properties on a Null  
>> object.
>>
>> TIA
>> Ian
>>
>>
>>
>>     
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4332
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to