can we see the source of you ListVO.as please ?
--- In flexcoders@yahoogroups.com, "a8i364io" <[EMAIL PROTECTED]> wrote: > OK I think this is really weird. I've been making good progress in > Cairngorm'ing an app I built but I've run across a problem. I've got > this thingy that updates a database using a CFC that accepts a > structure as its only argument. When I don't explicitly define each > of the attributes of the VO that I'm passing, they get lost somewhere > in the send between Flex and CF - I get this message back from the > CFC: > > "Element ATTRIBUTE_NAME is undefined in STRUCTURE_NAME" > > I know that attribute is being passed all the way through the > Cairngorm architure because I can trace it until just before the CFC > call. > > here's the relevant code: > > ViewHelper.as > (if I uncomment that one line of code where I'm just setting the > attribute equal to itself the whole thing works like a charm!) > ============================ > > function updateDL():Void > { > var eventObj = new Object(); > eventObj.dlToUpdate = new ListVO(); > eventObj.dlToUpdate = ModelLocator.selectedList; > //eventObj.dlToUpdate.DLAlias = > eventObj.dlToUpdate.DLAlias; > eventObj.dlToUpdate.OwnerAlias = "DistListAdmin"; > eventObj.dlToUpdate.EditorAlias = "System"; > EventBroadcaster.getInstance().broadcastEvent( > DLController.EVENT_CONCRETE_COMMAND, eventObj ); > closeForm(); > } > ---------------------------- > > ConcreteCommand.as > ============================ > > public function execute( event : Event ):Void > { > var delegate : ListDelegate = new ListDelegate( > this ); > delegate.updateDL(event); > } > > ---------------------------- > > ListDelegate.as > (the below alert shows the correct value whether the line > of code in the ViewHelper.as file is commented-out or not) > ============================ > > public function updateDL(event:Object) : Void > { > var dlToUpdate:ListVO; > dlToUpdate=event.data.dlToUpdate; > mx.core.Application.alert(dlToUpdate.DLAlias); > var call = service.updateDL({dlToUpdate:dlToUpdate}); > /... > } > > ---------------------------- > > > AppHandler.CFC > ============================ > > <cffunction name="updateDL" access="remote" returntype="string" > hint="updates distribution list in > database and LDAP"> > <cfargument name="dlToUpdate" type="struct" > required="yes" /> > ---------------------------- > > > ANY INSIGHT/HELP MUCH APPRECIATED! ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/