[flexcoders] Re: Programatically add new groupedColumns to AdvancedDataGrid
I'm running into the same issue, did you ever figure out a solution? Thanks, Chris --- In flexcoders@yahoogroups.com, Ezekiel48 [EMAIL PROTECTED] wrote: I am trying to create a gantt chart, and would want groupedColumns with month spanning the dates of the month. I tried to concat and push a AdvancedDataGridColumnGroup onto groupedColumns, it only worked with push, it adds to the array, but doens't update the display of the ADG. adg.groupedColumns.push( new AdvancedDataGridColumnGroup(monthNames[date.getMonth()])); (monthNames is an array of strings of month names) I tried running adg.invalidateDisplay() and reset the dataprovider groupingCollection source and it still didn't update. Is there a way to programatically create these columns or do you have to do it with the mxml? Thanks.
[flexcoders] Re: LCDS, AIR and Client Side Cacheing
--- In flexcoders@yahoogroups.com, christophers1228 [EMAIL PROTECTED] wrote: Hello, Is it possible to enable client side caching with AIR and LCDS when you have managed destinations? For example, if I have 4 related tables each having their own destination. SalesPerson has many WorkOrders. WorkOrder has one SalesPerson. WorkOrder has many Proposals. Proposal has one WorkOrder. Proposal has many LineItems. LineItem has one Proposal. If I have the following mxml code. mx:DataService id=workOrderDS cacheId=workOrders destination=hibernate-work-order/ workOrderDS.fill(model.workOrders, 'WorkOrderVO.getWorkOrdersForSalesPerson', {user: model.user.id}); Thanks for any pointers. Anyone?
[flexcoders] LCDS, AIR and Client Side Cacheing
Hello, Is it possible to enable client side caching with AIR and LCDS when you have managed destinations? For example, if I have 4 related tables each having their own destination. SalesPerson has many WorkOrders. WorkOrder has one SalesPerson. WorkOrder has many Proposals. Proposal has one WorkOrder. Proposal has many LineItems. LineItem has one Proposal. If I have the following mxml code. mx:DataService id=workOrderDS cacheId=workOrders destination=hibernate-work-order/ workOrderDS.fill(model.workOrders, 'WorkOrderVO.getWorkOrdersForSalesPerson', {user: model.user.id}); Thanks for any pointers.
[flexcoders] LCDS, Hibernate, Destinations and Client Side Cacheing
Hello Everyone, I have some questions about the technologies mentioned above. Let's say I had a relational database, I know this is a stretch :) Or at least it would seem so based on all the documentation and examples. If I had the following structure... Company has many Employees. Each Employee has one Company. Each Employee has many WorkOrders, a WorkOrder belongs to an Employee. A WorkOrder has many Proposals, each Proposal beolongs to a WorkOrder. Each Proposal has many LineItems, etc. I'll provide some example configs at the bottom of my post. Here are my questions. 1. Do I need a corresponding mx:DataService/ for each destination? If I do a fill on getWorkOrdersForEmployee, I get the whole data model for that employee (which is what I want) 2. If I set a CacheID for the DataService, I get an error saying that nested Destinations are not supported. Does this mean that If I used relationships and complex data models, I can't use client side cacheing? 3. In Christophe's blog he mentions that the dataService first tries to connect to the server before loading the data from the local cache, But in the documentation it says the opposite is true DataService instance always attempts to load any local data before attempting to establish a connection and satisfy a fill() or getItem() request. Which one is it? Thanks in advance, any clarification would be greatly appreciated. If I'm completely off base it would be great if someone would let me know, maybe i'm just approaching this all wrong :) Here is an example Destination in my data-management-config.xml (I included only the metadata section to keep example as short as possible) destination id=hibernate-work-order metadata identity property=id/ one-to-many property=proposals destination=hibernate-proposal/ many-to-one property=employee destination=hibernate-employee/ /metadata /destination I have the following hibernate mapping files. WorkOrder.hbm.xml Employee.hbm.xml Proposal.hbm.xml LineItem.hbm.xml Company.hbm.xml Here is an example of how they are mapped. (leaving out the columns) hibernate-mapping class name=WorkOrderVO table=work_orders catalog=somedb many-to-one name=employee class=EmployeeVO fetch=select column name=employee_id / /many-to-one set name=proposals inverse=true key column name=work_order_id not-null=true / /key one-to-many class=ProposalVO / /set query name=getAllFrom WorkOrderVO j/query query name=getWorkOrdersForEmployeeFrom WorkOrderVO wo where wo.employee.id = :employee/query /class /hibernate-mapping
[flexcoders] Flex Data Services Enterprise Edition
Hello, I was just wondering if anyone out there was in need of FDS Enterprise. My Company purchased Flex 1.5 and got a an upgrade to FDS when it came out. Our projects and main focus are not on large enterprise apps so we're looking to get rid of it. If anyone is interested, email me and we'll talk. Thanks, Chris Sharon
[flexcoders] Re: Cairngorm: Managing Application State
Thanks for the input. Maybe I've been misunderstanding the way to use them from the beginning. ( very possible ) Let me give a better example, to make sure i'm not way out in left field. This is a typical way I manage the state. viewstack selectedIndex={ModelLocator.workflowState} view:Something view:SomethingElse view:AnotherThing /viewstack Model: public static var workflowState:Number = 0; public static var VIEWING_SOMETHING:Number = 0; public static var VIEWING_SOMETHING_ELSE:Number = 1; public static var VIEWING_ANOTHER_THING:Number = 2; Inside of a view: mx:Button click=ModelLocator.workflowState = ModelLocator.VIEWING_SOMETHING / it seems like this should accomplish the same thing: mx:States mx:State name=Something mx:AddChild position=lastChild view:Something id=somethingView / /mx:AddChild /mx:State mx:State name=SomethingElse mx:AddChild position=lastChild view:SomethingElse id=somethingElseView / /mx:AddChild /mx:State mx:State name=AnotherThing mx:AddChild position=lastChild view:AnotherThing id=anotherThingView / /mx:AddChild /mx:State /mx:States Inside of a view: mx:Button click=this.setCurrentState('SomethingElse')/ I have noticed in messing around with it, that maybe you could bind the current state to the model and change from a number to a string. sorry for the long post, just trying to learn something :) Thanks, Chris --- In flexcoders@yahoogroups.com, Renaun Erickson [EMAIL PROTECTED] wrote: The states as used in Cairngorm will not correlate with the mx:states in Flex 2. The serve different purposes. Well let me step back and say, this is how I feel about it. Flex 2 states are good for view/control states where Cairngorm workflow states are just that work/process flow. Thats not to say you can't have an attribute on the Cairngorm model to facilitate something you are trying to do with mx:states Renaun --- In flexcoders@yahoogroups.com, christophers1228 chris.sharon@ wrote: Hello, I've been using cairngorm for about a year now (flex 1.5) and I just started some projects using flex 2. (I have to admit I've been using and still trying to understand at the same time :) ) I was just wondering, how do the new view states in flex2 fit in with managing the state in the model. i.e. ModelLocator.workflowState = ModelLocator.VIEWING_SOMETHING; vs. mx:State name=ViewingSomething I just got to the point were I was pretty comfortable with the flow of cairngorm (it's taught me alot about architecture) I'm just wondering how to fit some of the new features of flex2 in. Any ideas? -- 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/
[flexcoders] Re: Cairngorm: Managing Application State
Thanks for the input Brennan, This makes sense because once you get into the child components, this.currentState I believe refers to the component itself and not the application. So would you have the view update the model directly or would you have a command that updates the model? Thanks for the input, Chris --- In flexcoders@yahoogroups.com, dreuimar [EMAIL PROTECTED] wrote: Chris, What I usually do is have something like: mx:Application currentState={model.selectedState} ... ... mx:States mx:State name={model.SOMESTATE} mx:AddChild position=lastChild view:Something id=somethingView / /mx:AddChild /mx:State mx:State name={model.SOMETHINGELSE} mx:AddChild position=lastChild view:SomethingElse id=somethingElseView / /mx:AddChild /mx:State mx:State name={model.SOMETHINGELSEAGAIN} mx:AddChild position=lastChild view:AnotherThing id=anotherThingView / /mx:AddChild /mx:State /mx:States And at the creation complete of the application Ill simply put: model.selectedState = model.SOMESTATE; Then whenever you want to switch just set model.selectedState to something else.' Brennan --- In flexcoders@yahoogroups.com, christophers1228 chris.sharon@ wrote: Thanks for the input. Maybe I've been misunderstanding the way to use them from the beginning. ( very possible ) Let me give a better example, to make sure i'm not way out in left field. This is a typical way I manage the state. viewstack selectedIndex={ModelLocator.workflowState} view:Something view:SomethingElse view:AnotherThing /viewstack Model: public static var workflowState:Number = 0; public static var VIEWING_SOMETHING:Number = 0; public static var VIEWING_SOMETHING_ELSE:Number = 1; public static var VIEWING_ANOTHER_THING:Number = 2; Inside of a view: mx:Button click=ModelLocator.workflowState = ModelLocator.VIEWING_SOMETHING / it seems like this should accomplish the same thing: mx:States mx:State name=Something mx:AddChild position=lastChild view:Something id=somethingView / /mx:AddChild /mx:State mx:State name=SomethingElse mx:AddChild position=lastChild view:SomethingElse id=somethingElseView / /mx:AddChild /mx:State mx:State name=AnotherThing mx:AddChild position=lastChild view:AnotherThing id=anotherThingView / /mx:AddChild /mx:State /mx:States Inside of a view: mx:Button click=this.setCurrentState('SomethingElse')/ I have noticed in messing around with it, that maybe you could bind the current state to the model and change from a number to a string. sorry for the long post, just trying to learn something :) Thanks, Chris --- In flexcoders@yahoogroups.com, Renaun Erickson renaun@ wrote: The states as used in Cairngorm will not correlate with the mx:states in Flex 2. The serve different purposes. Well let me step back and say, this is how I feel about it. Flex 2 states are good for view/control states where Cairngorm workflow states are just that work/process flow. Thats not to say you can't have an attribute on the Cairngorm model to facilitate something you are trying to do with mx:states Renaun --- In flexcoders@yahoogroups.com, christophers1228 chris.sharon@ wrote: Hello, I've been using cairngorm for about a year now (flex 1.5) and I just started some projects using flex 2. (I have to admit I've been using and still trying to understand at the same time :) ) I was just wondering, how do the new view states in flex2 fit in with managing the state in the model. i.e. ModelLocator.workflowState = ModelLocator.VIEWING_SOMETHING; vs. mx:State name=ViewingSomething I just got to the point were I was pretty comfortable with the flow of cairngorm (it's taught me alot about architecture) I'm just wondering how to fit some of the new features of flex2 in. Any ideas? -- 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/
[flexcoders] Re: Cairngorm: Managing Application State
That makes sense, I guess I'm a little confused because the coldfusion application wizard generates a login state and mainApplication state and that's where I saw the first real implementation of states. I do realize that it could be done any number of ways, I was just looking for some input as to why you would do it one way or another. --- In flexcoders@yahoogroups.com, Renaun Erickson [EMAIL PROTECTED] wrote: The main thing here is if you use Views with ViewHelpers you should have those as separate views and not use mx:States. States in my preception are more for UI changes within a view then what the switching containers or larger sets of UI. Now this is not to say you can use the States for changing containers like that of the ViewStack, it just seems its not the purpose of it. From the livedocs: The State class defines a view state, a particular view of a component. For example, a product thumbnail could have two view states; a base view state with minimal information, and a rich view state with additional information. More reading: http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0923.html#321190 Renaun --- In flexcoders@yahoogroups.com, christophers1228 chris.sharon@ wrote: Thanks for the input. Maybe I've been misunderstanding the way to use them from the beginning. ( very possible ) Let me give a better example, to make sure i'm not way out in left field. This is a typical way I manage the state. viewstack selectedIndex={ModelLocator.workflowState} view:Something view:SomethingElse view:AnotherThing /viewstack Model: public static var workflowState:Number = 0; public static var VIEWING_SOMETHING:Number = 0; public static var VIEWING_SOMETHING_ELSE:Number = 1; public static var VIEWING_ANOTHER_THING:Number = 2; Inside of a view: mx:Button click=ModelLocator.workflowState = ModelLocator.VIEWING_SOMETHING / it seems like this should accomplish the same thing: mx:States mx:State name=Something mx:AddChild position=lastChild view:Something id=somethingView / /mx:AddChild /mx:State mx:State name=SomethingElse mx:AddChild position=lastChild view:SomethingElse id=somethingElseView / /mx:AddChild /mx:State mx:State name=AnotherThing mx:AddChild position=lastChild view:AnotherThing id=anotherThingView / /mx:AddChild /mx:State /mx:States Inside of a view: mx:Button click=this.setCurrentState('SomethingElse')/ I have noticed in messing around with it, that maybe you could bind the current state to the model and change from a number to a string. sorry for the long post, just trying to learn something :) Thanks, Chris --- In flexcoders@yahoogroups.com, Renaun Erickson renaun@ wrote: The states as used in Cairngorm will not correlate with the mx:states in Flex 2. The serve different purposes. Well let me step back and say, this is how I feel about it. Flex 2 states are good for view/control states where Cairngorm workflow states are just that work/process flow. Thats not to say you can't have an attribute on the Cairngorm model to facilitate something you are trying to do with mx:states Renaun --- In flexcoders@yahoogroups.com, christophers1228 chris.sharon@ wrote: Hello, I've been using cairngorm for about a year now (flex 1.5) and I just started some projects using flex 2. (I have to admit I've been using and still trying to understand at the same time :) ) I was just wondering, how do the new view states in flex2 fit in with managing the state in the model. i.e. ModelLocator.workflowState = ModelLocator.VIEWING_SOMETHING; vs. mx:State name=ViewingSomething I just got to the point were I was pretty comfortable with the flow of cairngorm (it's taught me alot about architecture) I'm just wondering how to fit some of the new features of flex2 in. Any ideas? -- 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/
[flexcoders] Cairngorm: Managing Application State
Hello, I've been using cairngorm for about a year now (flex 1.5) and I just started some projects using flex 2. (I have to admit I've been using and still trying to understand at the same time :) ) I was just wondering, how do the new view states in flex2 fit in with managing the state in the model. i.e. ModelLocator.workflowState = ModelLocator.VIEWING_SOMETHING; vs. mx:State name=ViewingSomething I just got to the point were I was pretty comfortable with the flow of cairngorm (it's taught me alot about architecture) I'm just wondering how to fit some of the new features of flex2 in. Any ideas? -- 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/
[flexcoders] Re: Trying out new Cold Fusion/Flex Application Wizard
This has been a problem for me also. It works sometimes but most times it does not. It seems like the results aren't being bound to the form in time (before it pops up the window) very frustrating, because it definately works sometimes. --- In flexcoders@yahoogroups.com, yaagcur [EMAIL PROTECTED] wrote: This looks like an awesome wizrd for RAD However, I have hit a slight problem trying it out I have a master page which provides a list of people which when I select one and press an edit button produces a form with more details of the person. This works fine first time out but when I select another person the form appears with default data(zeros) rather than actual Bit difficult to understand what I'm talking about unless you have tried this but has anyone else had same problem? Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/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/
[flexcoders] Re: Using captivate within flex
Thanks for all the feedback, it seems like the easiest way to accomplish this is to just link to an external captivate flash movie that updates the database with the quiz results. --- In flexcoders@yahoogroups.com, Manuel Saint-Victor [EMAIL PROTECTED] wrote: During my time with Captivate I was unable to find a way to dynamically pull questions from a database. That might have been due to my personal skill limitations but I found that I had to put the questions in manually. I hope someone can call me wrong on that one but that's something would definitely check into. From what I was told when I called Macromedia a year or so ago- the Flash quiz component is more robust. I'd venture to say that you might be better off creating a custom Flex component for a particular quiz question type. I'd think that it's matter of time before all kinds of components like this start coming around. Mani On 4/28/06, JesterXL [EMAIL PROTECTED] wrote: Possible, but a few challenges. First, Captivate demo's are usually meant to be played standalone. This is ecspecially true with the quizes. I built a CaptivatePlayer because people generally create many demo's without a consolidated way to play them together linearly. The downside is, the quiz emailing code that Captivate creates fails to work with the SWF is loaded into another via loadMovie. I have yet to find a solution (nor really investigate the problem fully). This is because Captivate writes the ActionScript API for quizes at compile time and does not document this API, nor provide the source code for it. Therefore, I'm left to using decompilers to find my answers. Secondly, Captivate DOES provide an API for Captivate 1 SWF's to be controlled; this is how I built my player. Third, Captivate 1 exports to Flash MX 2004 Flash 8, allowing you to customize it to your needs. Thus you can extend it with additional design and code if need to be to help faciliate getting information to Flex. Fourth, you cannot talk to non-Flash 9 SWF's in the Flash 9 player, and currently Captivate 1 only supports Flash Player 6 (or 7, can't remember exactly), so you'll have to utilize other communication messages such as proxy SWF's, sockets, _javascript_, etc. The first one, however, can be a deal killer, so invest some investigative time. The Captivate Development Center should have more information. There is an ActionScript API posted in the documentation somewhere, but I can't find it at the moment. http://www.macromedia.com/devnet/captivate/ http://www.macromedia.com/devnet/captivate/articles/captivateplayer.html - Original Message - From: Christopher Sharon [EMAIL PROTECTED] To: Flex Coders flexcoders@yahoogroups.com Sent: Friday, April 28, 2006 1:09 PM Subject: [flexcoders] Using captivate within flex I'm just about to start a project for a training site. The goal of the site is to track trainees progress through several modules. Each module will contain either : 1) links to external sites, a powerpoint presentation (probably converted to captivate) or a video. 2) A quiz that covers the previous content. The trainee should be able to look at the content to find the answers. Each module quiz will be graded and stored in a PostgreSQL database designed to track user progress through the modules. The idea is to have a flex app (probably flex 2) using flex data services and the hibernate adaptor. Possibly using a tab navigator to display the module content i.e. one tab for learning content , one for resources, and one for the quiz. Does this sound like something that is good use of captivate (I've only used it for a couple of demos). And I'm not sure what it's capabilities are or how to integrate it with flex. It seems like it should be a good fit but I can't find any articles on using the two technologies together? -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design developmenthttp://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software developmenthttp://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design
[flexcoders] Re: Problems installing Data Services Beta 2 on non-Jrun servers?
I've been playing around with fds2 with jboss 4.03 also, I've been able to get most of the sample apps to work, but I had to replace the xalan.jar in jboss with an updated version. I found this post that may help. http://www.jboss.com/index.html?module=bbop=viewtopicp=3904353 I still can't get the jms messaging to work but that probably is due to lack of experience on my part. --- In flexcoders@yahoogroups.com, yomahz [EMAIL PROTECTED] wrote: The documentation here: http://labs.macromedia.com/wiki/index.php/Flex:Install_Instructions Indicates that the wars should run in other J2EE app servers. I cannot get them to deploy in JBoss (4.0.3). I get a ClassNotFoundException: jrun.servlet.file.FileServlet. I searched through all of the jars I could find and none of them contain this class. Has anyone else had luck with deploying to other servers? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] FDS2 on JBoss 4.03sp1 flex.messaging.MessageException:jms not bound
I'm starting to mess with fds2, I deployed the sample.war file to jboss, most of the samples work but the chat app throws a flex.messaging.MessageException:jms not bound exception when sending a message. I'm somewhat new to jboss and it's probably somethingthing simple I'm missing but does anyone have any pointers? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.