Hi all,

I am having one dictionary object in my local cache. I want to create
another dictionary object with the same values of the first dictionary
object. I tried the following way. But its giving me "TypeError: Error
#1034: Type Coercion failed: cannot convert obj...@49ad0b1 to
com.citi.gwm.pipeline.vo.MappingVO" error.

heirData = new Dictionary();
var tempDict:Dictionary = cache.getHeirarchialData();
for (var key:* in tempDict){
        var mVO:MappingVO = tempDict[key] as MappingVO;
        heirData[key] = MappingVO(ObjectUtil.copy(mVO));
       }

Did I missed anything? I even tried

        var mVO:MappingVO = new MappingVO();
        mVO = tempDict[key] as MappingVO;

this way also. Still no use. Is there any other way to copy the entire
dictionary object to another? Please help. Am stuck up with this issue
for a couple of days.

Regards,
Anoop

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to