[flexcoders] PrintDataGrid

2009-05-07 Thread weezee49
I have a printed report which includes a series of labels and 2 data grids. If I print the labels and the first data grid, I see all the data items in the data grid, but when I add the 2nd one to the page, both PrintDataGrids leave off the last five or six lines of data. I thought the

[flexcoders] Accessing query string vars in Flex HTML wrapper and passing them into Flex App

2009-05-01 Thread weezee49
I have been following the instructions here: http://livedocs.adobe.com/flex/3/html/help.html?content=deep_linking_5.html#245869 to capture variable/value pairs from the query string. My URL looks like this: http://localhost:3000/bin\Mick.html?uid=louisecid=amat I have edited the auto-build

[flexcoders] Re: Accessing query string vars in Flex HTML wrapper and passing them into Flex App

2009-05-01 Thread weezee49
--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: You are already in a script block, so don't include the % script directives, just build the string. And don't include the first : FlashVars, uid= + uid + cid= + cid + , When I do this, I get Error: 'uid' is unefined

[flexcoders] Re: Accessing query string vars in Flex HTML wrapper and passing them into Flex App

2009-05-01 Thread weezee49
--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: Hmm, maybe some scope or timing issue? Change this: % String uid = (String)request.getParameter(uid); String cid = (String)request.getParameter(cid); % Put it in the script block where the flash version

[flexcoders] using an event to trigger an action in a sibling component

2009-01-31 Thread weezee49
I have the following structure: Application |___ViewStack |SplashBox |VBox |___Accordion |Login |CreateAccount |MainBox In MainBox I dispatch a logoutEvent.

[flexcoders] passing events to sibling components

2009-01-31 Thread weezee49
In my Application I have a ViewStack. The ViewStack has 2 children: SplashBox and MainBox. SplashBox has a VBox, which has an Accordion, which has two children, LoginBox and AccountCreateBox. In MainBox I trigger a logoutEvent by clicking a button. Among other things, I want to clear the

[flexcoders] Re: using an event to trigger an action in a sibling component

2009-01-31 Thread weezee49
() or something like that.Then, I can easily call it to reset that form. Mark On Sat, Jan 31, 2009 at 8:58 PM, weezee49 rainygl...@... wrote: I have the following structure: Application |___ViewStack |SplashBox |VBox |___Accordion |Login |CreateAccount

[flexcoders] creating Help Files for a Flex application

2009-01-11 Thread weezee49
What are people using to create help files for a Flex application? I have used HTML Help Workshop to create a small test help file, but I can't find any information on how to hook it up to my Flex app. So my questions are: 1. Is it possible to use a.chm file with a Flex application, and how

[flexcoders] Re: error in HTTPService

2009-01-07 Thread weezee49
Thanks, everyone. It appears that the mx:request object isn't refreshed the 2nd time around. A network utility wasn't needed because the message wasn't getting out of the client - the server log didn't register any requests. Stepping through the code showed that it was dying in the

[flexcoders] error in HTTPService

2009-01-04 Thread weezee49
I have the following HTTPService: mx:HTTPService id=svcSimulationUpdate contentType=application/xml url=http://localhost:3000/simulations/ {userModelsCB.selectedItem.id}?_method=put resultFormat=e4x method=POST result=handleSimUpdateResult(event) mx:request xmlns=

[flexcoders] Re: Using the create method in a Flex/Rails app, 2032 Stream Error in IE only

2009-01-01 Thread weezee49
There are actually 3 parts to this question. I have found a solution to each. The first part is how to create a new simulation given the data for a simulation, server, load and buffer. I resolved this in my simulations_controller#create method. The trick linking up the newly created entities

[flexcoders] Re: Using the create method in a Flex/Rails app, 2032 Stream Error in IE only

2009-01-01 Thread weezee49
For some unknown reason my code snippet above didn't show the key line correctly. The important line is the next to last line in the snippet below: @simulation = Simulation.new(sim_hash) @simulation.user_id = current_user.id @simulation.save! #need to save to get the id from the

[flexcoders] Using the create method in a Flex/Rails app

2008-12-29 Thread weezee49
I'm working with a Flex client and a RESTful Rails app which has the following models: Simulation: has_many loads, buffers and servers Server: belongs_to simulation Load: belongs_to simulation Buffer: belongs_to simulation I have created an input form where the user can input all attributes

[flexcoders] Re: data returned from WSDL call

2008-12-17 Thread weezee49
Thanks, that's the ticket. mx:WebService doesn't have a resultFormat attribute, but mx:operation does. Setting the operations' resultFormat to e4x gave me XML back. I also had to play around with the result to get past the outer layers. It involved the following: var xmlResultList:XMLList =

[flexcoders] Re: TypeError: Error #1034: Type Coercion failed: cannot convert ...

2008-08-21 Thread weezee49
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of weezee49 Sent: Wednesday, August 20, 2008 5:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] TypeError: Error #1034: Type Coercion failed: cannot convert ... I'm getting the dreaded Type Coercion error on this line

[flexcoders] Re: TypeError: Error #1034: Type Coercion failed: cannot convert ...

2008-08-21 Thread weezee49
Harui [EMAIL PROTECTED] wrote: In the XML, not the MXML. Your snippet just started with resources Usually, there's more before that. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of weezee49 Sent: Thursday, August 21, 2008 5

[flexcoders] Re: TypeError: Error #1034: Type Coercion failed: cannot convert ...

2008-08-21 Thread weezee49
Okay, I finally found a solution that works. I declare [Bindable] private var _rscAndNewXLC: XMLListCollection; Then my event handler looks like this: private function handleRscListResult(event:ResultEvent):void{ var resultXML : XML = XML(event.result); _rscAndNewXLC =

[flexcoders] TypeError: Error #1034: Type Coercion failed: cannot convert ...

2008-08-20 Thread weezee49
I'm getting the dreaded Type Coercion error on this line: resourcesAC = event.result.resources.resource; resourcesAC is declared as follows: [Bindable] private var resourcesAC : ArrayCollection = new ArrayCollection(); My result handler for my HTTPService is: private function

[flexcoders] ActiveSupport::TimeWithZone

2008-08-07 Thread weezee49
In the console, when I fetch updated_at from a record, and check the class via the command sim.updated_at.class I get ActiveSupport::TimeWithZone. Since it's a UTC time, I can use several of the commands from http://api.rubyonrails.org/classes/ActiveSupport/TimeWithZone.html#M0 00512 to

[flexcoders] running flex\samples\explorer\build.bat

2008-07-22 Thread weezee49
I'm trying to run the build.bat file in the \samples\explorer directoy. It worked fine on one machine, but on my dev machine I get the following errors: Loading configuration file C:\flex_sdk\frameworks\flex-config.xml Error: class org.apache.xerces.util.XMLAttributesMMImpl$AttributeMMImpl