[flexcoders] Re: Defining the DSN in a Gateway When using Flex
--- In flexcoders@yahoogroups.com, "klar1ty" <[EMAIL PROTECTED]> wrote: > > --- In flexcoders@yahoogroups.com, "Kyle Hayes" wrote: > > > > I will try to explain this the best I can. I am building an application > > using ColdFusion and Flex and I want to make sure that I am following > > good practice techniques. > > > > I have a root level COM folder which has various packages inside of it. > > Inside the com.hayes.myproject package contains the much of the > > Gateways, DAOs, and CF VOs for my application. I know that it is good > > practice to pass in the name of a datasource when you first initialize a > > Gateway or DAO. This would normally not be an issue in a 100% CF > > application. > > > > But how do I do that when I am working with Flex? Obviously there is no > > way to do it from the RemoteObject from my understanding. > > > > > > You want to keep the flex client ignorant of the backend. You wouldn't > put your DSN as a hidden form field in your HTML based application > would you? > > > One thing you might look into is either storing the DSN in the > Application scope, or adding a service layer in between your > Gateway/DAO objects. > > The service layer would take care of initializing and calling the > DAO/Gateways. > > As your application gets more complex, you might find the relationship > between what your Flex RemoteObject call should retrieve and what your > DAO/Gateway layer should return are different. Having the Service > layer will help you account for that. > > > HTH > That is an excellent point. Someone else suggested a service layer as well on another forum that I posted this message to. I guess it is finally time for me to become very proficient at service layers. I know what they are but I have never done some real work with them. Thanks for your help!
[flexcoders] Defining the DSN in a Gateway When using Flex
I will try to explain this the best I can. I am building an application using ColdFusion and Flex and I want to make sure that I am following good practice techniques. I have a root level COM folder which has various packages inside of it. Inside the com.hayes.myproject package contains the much of the Gateways, DAOs, and CF VOs for my application. I know that it is good practice to pass in the name of a datasource when you first initialize a Gateway or DAO. This would normally not be an issue in a 100% CF application. But how do I do that when I am working with Flex? Obviously there is no way to do it from the RemoteObject from my understanding.
[flexcoders] Re: FlashVars from html
Hey, I had to do this a couple of weeks ago and wrote a blog entry about it: http://www.kylehayes.info/blog/index.cfm/2007/2/22/Passing-URL-Variables-To-Flex http://www.kylehayes.info/blog/index.cfm/2007/3/5/Flex-HtmlTemplate-filetype-to-CFM-instead-of-HTML --- In flexcoders@yahoogroups.com, mychemic Carlo Gulliani <[EMAIL PROTECTED]> wrote: > > How can I use flashVars from html... In flash 8 i can receiving result from html files in swf file. How it works in as3 and flex? > > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com >
[flexcoders] Transition States with Percentages
Hey Everyone, I am going to make this quick as I am tired and want to get away from the computer for the night. Has anybody ever had an issue when using a transition from one state to another where you are changing the property of say 2 panels that have percentages for their height or width and specifying new percentages? I think there is a bug, but I have two panels laid out in a VBox. When the application starts the top panel is 10% height and the bottom is 90% height. When you click the search button in the top panel, I want the search panel to change to 50% height and the bottom panel to change to 50% height. When I run the application, Flex successfully runs the transition just as it should but then at the end snaps the top panel to the smallest allowable height (if minHeight is not set the panel seems to disappear) Any suggestions? -Kyle
[flexcoders] Background Image Style for Selection in TileList
Good Morning all, Is there a way to apply a background image to the selected item in a tileList control? If not and I wanted to use the Flash skinner, which component do I change in the Flash Skinning template, since I didn't see an option for TileList or something similar? Thanks, Kyle
Re: [flexcoders] Populating Multiple Levels of Branches
Ok, that sounds fine with me. Now I am not sure why the XML is not loading when I start up the application. I have the following code: http://www.adobe.com/2006/mxml"; layout="absolute" xmlns:comp="components.*" creationComplete="initTree()"> On 12/20/06, Battershall, Jeff <[EMAIL PROTECTED]> wrote: That's what I do - using CF's built-in XML functions - works fine. Jeff -Original Message- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Kyle Hayes *Sent:* Wednesday, December 20, 2006 9:48 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Populating Multiple Levels of Branches That is what I was looking for and I used selectedNode.setChildren(theArrayCollectionofMyQuery) and it blanked out the entire tree instead :-\ I was talking to a Flex instructor yesterday and he was saying that the Tree's favorite type of data to receive is XML and it would be a lost easier and more structural to have the CFC return XML instead of a query. What is everybody's thoughts on that? -Kyle On Dec 20, 2006, at 1:19 AM, Lachlan Cotter wrote: Hi Kyle, Listen on your tree control for the itemOpen event. Retrieve the tree node from the event, pull from it what information you need for your next query. When the query returns, append the results as children of that node. Bindings should update the tree control. Is that what you were looking for? Cheers, Lach On 20/12/2006, at 9:04 AM, Kyle Hayes wrote: I am quite new to Flex and was planning on learning it very soon which ended up being sooner than I thought because of a project that could really use it. So here I am. The application I am designing needs to display a hierarchal list of codes. All the codes are related to each other in that one is abover another. … Inside my database there is a table that raggedly displays this data in 11 columns (the 11 levels) 1 2 3 4 5 6 7 8 9 10 11 AA AAA AA AAB AABA AA AAB AABB AA AAB AABC AABCA AA AAB AABC AABCB etc So I want to query this data in which case I have already built a function in ColdFusion to return the DISTINCT items for a level that I specify Which in my example would produce AA AB for level 1 I am able to return that much to a tree and have it display the folders by adding a column pragmatically to the Query called "children". There are 10s of thousands of records in this table so I do not want to grab all this data at once. I want the next level for a specified entity to be pulled from the CFC when I click it. How do I append this information to a folder item? Thanks a bunch! -Kyle -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Kyle Hayes ColdFusion | RIA Boeing - Web Application Development
Re: [flexcoders] Populating Multiple Levels of Branches
That is what I was looking for and I used selectedNode.setChildren (theArrayCollectionofMyQuery) and it blanked out the entire tree instead :-\ I was talking to a Flex instructor yesterday and he was saying that the Tree's favorite type of data to receive is XML and it would be a lost easier and more structural to have the CFC return XML instead of a query. What is everybody's thoughts on that? -Kyle On Dec 20, 2006, at 1:19 AM, Lachlan Cotter wrote: Hi Kyle, Listen on your tree control for the itemOpen event. Retrieve the tree node from the event, pull from it what information you need for your next query. When the query returns, append the results as children of that node. Bindings should update the tree control. Is that what you were looking for? Cheers, Lach On 20/12/2006, at 9:04 AM, Kyle Hayes wrote: I am quite new to Flex and was planning on learning it very soon which ended up being sooner than I thought because of a project that could really use it. So here I am. The application I am designing needs to display a hierarchal list of codes. All the codes are related to each other in that one is abover another. … Inside my database there is a table that raggedly displays this data in 11 columns (the 11 levels) 1 2 3 4 5 6 7 8 9 10 11 AA AAA AA AAB AABA AA AAB AABB AA AAB AABCAABCA AA AAB AABCAABCB etc So I want to query this data in which case I have already built a function in ColdFusion to return the DISTINCT items for a level that I specify Which in my example would produce AA AB for level 1 I am able to return that much to a tree and have it display the folders by adding a column pragmatically to the Query called "children". There are 10s of thousands of records in this table so I do not want to grab all this data at once. I want the next level for a specified entity to be pulled from the CFC when I click it. How do I append this information to a folder item? Thanks a bunch! -Kyle
[flexcoders] Populating Multiple Levels of Branches
I am quite new to Flex and was planning on learning it very soon which ended up being sooner than I thought because of a project that could really use it. So here I am. The application I am designing needs to display a hierarchal list of codes. All the codes are related to each other in that one is abover another. For example the structure resembles the following: AA AAA AAB AABA AABB AABC AABCA AABCB AABCC AABCD AABD AAC AAD AB ABA ABB ABC ABD ABE ABF Inside my database there is a table that raggedly displays this data in 11 columns (the 11 levels) 1 2 3 4 5 6 7 8 9 10 11 AA AAA AA AAB AABA AA AAB AABB AA AAB AABCAABCA AA AAB AABCAABCB etc So I want to query this data in which case I have already built a function in ColdFusion to return the DISTINCT items for a level that I specify Which in my example would produce AA AB for level 1 I am able to return that much to a tree and have it display the folders by adding a column pragmatically to the Query called "children". There are 10s of thousands of records in this table so I do not want to grab all this data at once. I want the next level for a specified entity to be pulled from the CFC when I click it. How do I append this information to a folder item? Thanks a bunch! -Kyle
[flexcoders]
I would like to know how to send an array of strings to the a comboBox dataProvider which is acting as an itemEditor for my DataGrid. Here is some code: initVars is called on creationComplete: --- - source="MyFirst.ARTGateway" showBusyCursor="true"> - headerText="Description" editorDataField="myData"> The bolded text is me trying to send the public array "allDescriptions" into the dataProvider for my itemEditor? Flex however returns a line edit "Access of undefined property allDescriptions". How do I send this array? Kyle Hayes RIA / ColdFusion Developer The Boeing Company