[flexcoders] All the bunch of idiots at Adobe, please note!
I wanted to share this aweful story to this group. Over months we have been trying to get a Flex expert from Adobe to do a code review of our application as a part of our partnership building process. They agreed to do it in person and finally on the day, they sent out an email saying they cannot come and will do this over breeze presentation. This was not ok for us but we had no other option and we oked it. BTW the guys were Brian O'Connor, Adobe Consulting, John Bennet, Architect. Finally during the presentation, we went through the agenda for the meeting and basically we wanted to get some useful tips for the problem we were having in flex app and things that we could not implement. Over the presentation, they were treating themselves as gods and us as no good developers. And at times it went like OK we got it, next... next, I was very offended while driving the presentation. At one point I was showing them a slide with cairngorm and i said we are using viewhelpers and value objects and .., one of the guys said quickly viewhelpers are not values objects. They were very disrespectful all over the meeting. Also he mentioned that Cairngorm is not the bible. So he thinks we dont know this? I mean this is total lack of professionalism by Adobe guys. They should treat the flex developer community with respect and show some sensitivity when they talk to people and treat them as experts rather than dont-know-even-this-guys. On top of that they did not give one single useful tip for us. They were blabbering like inexperienced developers. All the bunch of idiots at Adobe, please note this aweful story -- 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: All the bunch of idiots at Adobe, please note!
Dave That funny because the mailing system is hiding my email and this is not my personal effort. My email is [EMAIL PROTECTED] and I am Madhu if that is what you are interested in. --- In flexcoders@yahoogroups.com, Dave Carabetta [EMAIL PROTECTED] wrote: On 4/17/06, t_msreddy [EMAIL PROTECTED] wrote: HO HO HO Here come the Adobe Chauvinist! This is not dirty laundry Tim. I am not using this a platform for airing my personal stuff. Sorry if you felt so. This is my personal experience related to Flex project. So I thought there is nothing wrong in expressing my views. All due respect, but you posted this while completely hiding behind your e-mail address. If you're so adamant about your experience and want to make a public statement about the quality of Adobe Consulting, I think you'd receive a bit more respect (even if they vehmently disagree) if you were to provide your name. You saw fit to put the engineers' names into the public domain, so why are you hiding behind t_msreddy? I have no experience with Adobe Consulting; they really could stink for all I know. But I can't really seriously consider anything you wrote when t_msreddy is all anybody knows about the source of the accusations. Regards, Dave. -- 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: Accessing a custom cellrenderer
Look at the code below and try in similar lines in your cellRenderer file: var rowIndex : Number;var columnIndex : Number;var getCellIndex : Function; // the function we receive from the listvargetDataLabel : Function; // the function we receive from the listfunction setValue( str:String, item:Object, sel:Boolean ) {//Dumper.info("@@This cell belongs to:" + str);if(rowIndex == undefined || columnIndex == undefined){rowIndex = getCellIndex().itemIndex;columnIndex = getCellIndex().columnIndex;}var projectMemberVO : ProjectMemberVO = ProjectMemberVO(item);var projectMemberWeekArray : Array = projectMemberVO.projectMemberWeekArray;if(!isNaN(Number(projectMemberWeekArray[columnIndex].forecastHours)) Number(projectMemberWeekArray[columnIndex].forecastHours) != 0) {//Dumper.info("projectMemberWeekArray[columnIndex].forecastHours setting to weekHoursForecast.text");weekHoursForecast.text = projectMemberWeekArray[columnIndex].forecastHours;} else{weekHoursForecast.text = "";}}function updateWeekHoursDataProvider(){if (!isNaN(weekHoursForecast.text)){ModelLocator.currentProject.projectTeamVO.projectMembersArray[rowIndex].projectMemberWeekArray[columnIndex].forecastHours = weekHoursForecast.text;}} --- In flexcoders@yahoogroups.com, "digital_eyezed" [EMAIL PROTECTED] wrote: Hi, I have a simple cellrenderer in a List which contains a checkbox. I want to check through the list to see which items are checked. Here is the cellrenderer: ?xml version="1.0" encoding="utf-8"? mx:HBox styleName="wizardContainer" horizontalAlign="left" xmlns:mx="http://www.macromedia.com/2003/mxml" width="100%" height="100%" mx:Script ![CDATA[ var theLabel; var theData; function setValue(str:String, item:Object, sel:Boolean){ theLabel = String(item.label); theData = Number(item.data); } ]] /mx:Script mx:Spacer width="5"/ mx:CheckBox width="20" id="siteSelected" selected="false"/ mx:Text width="100%" text="{theLabel}" styleName="cellRendererText"/ /mx:HBox Here is the list: mx:List cellRenderer="components.WizardCell" id="list2" width="100%" height="100%" dataProvider="{service.getMethod.result}"/ There is a Submit button below this which when clicked I want to check through the list to see which items have been checked. Each object in the list has a data and label attribute from the dataProvider, ideally I would like to get an array of the data attributes of those checked. Cheers, Iain -- 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] Re: Google Finance in AJAX: Can we do this in Flex?
You are right Mike. I was fooled by another page in the same site which was in AJAX. I saw your blog. Your component TEOTaskPane - TEOTaskList is mind- blogging :) . You are the GEEE OHHH D of Flex :) Do you plan to publish your code? --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, I could probably make a component like that in a couple of days. No, joke. Check out my blog; http://flex2components.com/f2cblog for some proto component examples. I made that Color chooser in 2 days. Peace, Mike On 3/21/06, Abdul Qabiz [EMAIL PROTECTED] wrote: By writing custom componentsI am sure you can do the same in Flex may be more easily.. -abdul On 3/21/06, t_msreddy [EMAIL PROTECTED] wrote: I just learnt about Google Finance. I think they implemented in AJAX URL: http://finance.google.com/finance?q=MSFTbtnG=Search I was particularly pleased with the sliding bar at the top of the chart used for zoom in/out. Can this be done in Flex? I know there is a SlideBar component in Flex which can do that. But it is limited: 1. SlideBar component has only one movable sliding tip. In the google chart that you see, there are two movable sliding tips. 2. SlideBar component can be used to filter data based on only one point lets say 2004. In google finance chart, there is a movable sliding window apart from movable adjustable tips say between 2004 and 2006 How can we implement such a think in Flex? -- 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 http://groups.yahoo.com/group/flexcoders/ -- 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=M acromedia+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+developmentw 2=Computer+software+developmentw3=Software+design+and+developmentw4 =Macromedia+flexw5=Software+development+best+practicec=5s=166.sig =lvQjSRfQDfWudJSe1lLjHw Software design and developmenthttp://groups.yahoo.com/gads? t=msk=Software+design+and+developmentw1=Web+site+design+development w2=Computer+software+developmentw3=Software+design+and+development w4=Macromedia+flexw5=Software+development+best+practicec=5s=166.s ig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flexhttp://groups.yahoo.com/gads? t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+sof tware+developmentw3=Software+design+and+developmentw4=Macromedia+fl exw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZ I36cYzBjw Software development best practicehttp://groups.yahoo.com/gads? t=msk=Software+development+best+practicew1=Web+site+design+developm entw2=Computer+software+developmentw3=Software+design+and+developme ntw4=Macromedia+flexw5=Software+development+best+practicec=5s=166 .sig=f89quyyulIDsnABLD6IXIw -- YAHOO! GROUPS LINKS - Visit your group flexcodershttp://groups.yahoo.com/group/flexcoders on the web. - To unsubscribe from this group, send an email to: [EMAIL PROTECTED]flexcoders- [EMAIL PROTECTED] - Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. -- -- What goes up, does come down. -- 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: Dynamic Generation of DataGridColumns + rowRenderer
I have some sample code in 1.5: public static function buildPhasesDataGridColumns():Void { Dumper.info("%%% buildPhasesDataGridColumns invoked"); var phasesVOArray : Array = ModelLocator.currentProject.phaseVOArray; ModelLocator.phasesDG.removeAllColumns(); for ( var i:Number=0; i phasesVOArray.length; i++ ) { var dgcNew = new mx.controls.gridclasses.DataGridColumn(); //now create the column var date : String = VirgilUtil.nextWeekEndDateStr(ModelLocator.currentProject.projectStartDate, i); dgcNew.width = Constants.WEEK_COLUMN_WIDTH * (Number(phasesVOArray[i].numWeeks));dgcNew.columnName = i + 1;dgcNew.headerText = phasesVOArray[i].phaseName + " " + i;dgcNew.headerRenderer = ui.PhasesColumnHeaderRenderer;ModelLocator.phasesDG.addColumn(dgcNew); //add the column to the dg Dumper.info("%%% Adding column at:" + (i)); } ModelLocator.phasesDG.width = Number(ModelLocator.currentProject.numWeeks) * 170;} --- In flexcoders@yahoogroups.com, "jameskeepnews" [EMAIL PROTECTED] wrote: Hello. I am very new to Flex -- and we're running the 2.0 Beta now, knowing that we'll have to migrate to it eventually -- and was never an enterprise-class ActionScript developer in Flash anyway, so forgive me if my two questions seem very simple to some of you. Nevertheless, I haven't seen a satisfactory answer to either question here, or anywhere else online. First question -- how could I dynamically generate an array of DataGridColumns? Suppose I have the following: mx:DataGrid id="grid_01" mx:dataProvider{ someProvider }/mx:dataProvider . /mx:DataGrid and, in place of those "dots," I'd want to have the following results returned from "someProvider": mx:columns mx:Array mx:DataGridColumn columnName="gridcol_01" headerText="First Column" textAlign="middle" / mx:DataGridColumn columnName="gridcol_02" headerText="Second Column" textAlign="middle" / mx:DataGridColumn columnName="gridcol_03" headerText="Third Column" textAlign="middle" / mx:DataGridColumn etc. / /mx:Array /mx:columns Could someone provide me with sample code for how to build out the data provider so that those results might be returned? Lastly, coming from a mouseDown/getURL sensibility in Flash, I'm a little mystified by the way in which DataGrid cells -- or rows, in my case -- can simply serve as links. In my case, I'd want a rolled- over row to call a different viewstack when clicked. Obviously, if I'm generating the DataGrid dynamically, I won't have an automatic reference to anything in my Datagrid within MXML. Also, I believe I need to generate a cellRenderer to accomplish a "stack.selectedChild=nameofstack" result for what is (to me) a souped-up link. I've seen cellRenderer do impressive dynamic tricks, EXCEPT linking to something! And, to reiterate, I'm looking to have an entire row be a hyperlink, much as the DataGrid allows for a rollover state for rows and would, from our users' perspective, be seen as results of a search, arranged into a handy grid -- and rows that should link to something else when clicked. Any help that could be provided would be very much appreciated. Thank you for your attention. James -- 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] Re: Dynamic Generation of DataGridColumns + rowRenderer
The function that I posted here is a part of some Helper class. In order to operate on the datagrid defined in MXML you can save the reference of the datagrid liek this (there are umpteen ways of doing this ) mx:VBox initialize="init()" function init() { ModelLocator.myDG = this.myDG; Helper.buildPhasesDataGridColumns(); //This is how you need to hook this up. } mx:DataGrid id="myDG" / /mx:VBox You can hookup in during initialization of the Component or when the dataProvider changes (assuming number of columns in Datagrid depend on the DataProvider). You can call this whenever you want. Once you save the reference, since Flex works on the pass-by-reference model when you update the reference it updates your original datagrid. --- In flexcoders@yahoogroups.com, "jeffrey_lage" [EMAIL PROTECTED] wrote: great! couple of questions: ModelLocator, is that a utlity that you have created to locate a component by it's ID? What/when do you hook into this method to set the columns on the datagrid? i assume it needs to be done before the data is actually loaded into it? thanks! --- In flexcoders@yahoogroups.com, "t_msreddy" t_msreddy@ wrote: I have some sample code in 1.5: public static function buildPhasesDataGridColumns():Void { Dumper.info("%%% buildPhasesDataGridColumns invoked"); var phasesVOArray : Array = ModelLocator.currentProject.phaseVOArray;ModelLocator.phasesDG.removeAllColumns(); for ( var i:Number=0; i phasesVOArray.length; i++ ) { var dgcNew = new mx.controls.gridclasses.DataGridColumn(); //now create the column var date : String = VirgilUtil.nextWeekEndDateStr(ModelLocator.currentProject.projectStartDa\ te, i); dgcNew.width = Constants.WEEK_COLUMN_WIDTH * (Number(phasesVOArray[i].numWeeks)); dgcNew.columnName = i + 1; dgcNew.headerText = phasesVOArray[i].phaseName + " " + i; dgcNew.headerRenderer = ui.PhasesColumnHeaderRenderer; ModelLocator.phasesDG.addColumn(dgcNew); //add the column to the dg Dumper.info("%%% Adding column at:" + (i)); } ModelLocator.phasesDG.width = Number(ModelLocator.currentProject.numWeeks) * 170; } --- In flexcoders@yahoogroups.com, "jameskeepnews" jkeepnews@ wrote: Hello. I am very new to Flex -- and we're running the 2.0 Beta now, knowing that we'll have to migrate to it eventually -- and was never an enterprise-class ActionScript developer in Flash anyway, so forgive me if my two questions seem very simple to some of you. Nevertheless, I haven't seen a satisfactory answer to either question here, or anywhere else online. First question -- how could I dynamically generate an array of DataGridColumns? Suppose I have the following: mx:DataGrid id="grid_01" mx:dataProvider{ someProvider }/mx:dataProvider . /mx:DataGrid and, in place of those "dots," I'd want to have the following results returned from "someProvider": mx:columns mx:Array mx:DataGridColumn columnName="gridcol_01" headerText="First Column" textAlign="middle" / mx:DataGridColumn columnName="gridcol_02" headerText="Second Column" textAlign="middle" / mx:DataGridColumn columnName="gridcol_03" headerText="Third Column" textAlign="middle" / mx:DataGridColumn etc. / /mx:Array /mx:columns Could someone provide me with sample code for how to build out the data provider so that those results might be returned? Lastly, coming from a mouseDown/getURL sensibility in Flash, I'm a little mystified by the way in which DataGrid cells -- or rows, in my case -- can simply serve as links. In my case, I'd want a rolled- over row to call a different viewstack when clicked. Obviously, if I'm generating the DataGrid dynamically, I won't have an automatic reference to anything in my Datagrid within MXML. Also, I believe I need to generate a cellRenderer to accomplish a "stack.selectedChild=nameofstack" result for what is (to me) a souped-up link. I've seen cellRenderer do impressive dynamic tricks, EXCEPT linking to something! And, to reiterate, I'm looking to have an entire row be a hyperlink, much as the DataGrid allows for a rollover state for rows and would, from our users' perspective, be seen as results of a search, arranged into a handy grid -- and rows that should link to something else when clicked. Any help that could be provided would be very much appreciated. Thank you for your attention. James -- 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
[flexcoders] Re: Cairgnorm beta release?
If both do the same why do you want to do this. If this is only for learning purposes, one way is to save the references of your views in ModelLocator (during initialize) and then assign those references to the selectedChild. --- In flexcoders@yahoogroups.com, Oriol Gual [EMAIL PROTECTED] wrote: Just one more point, I've tried the Cairngorm login example, and after changing the namespaces to http://www.adobe.com/2006/mxml, I can compile but I get this error: Implicit coercion of a value with static type 'mx.core:UIComponent' to a possibly unrelated type 'mx.core:Container' in line 68, which is: mx:ViewStack id=appView selectedChild={ getView( model.workflowState ) } If look at it, and viewstack has no selectedChild propertie, so if I change it to: selectedIndex={ model.workflowState } it works. My question is, how should it be if I want to return a view instead of an int? Thanks, Oriol. -- 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] Flex2.0 with OpenAMF
Anyone really tried OpenAMF with Flex 2.0. Can you please share some code samples or links? -- 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] Flex 2.0 Builder Problem - migration from 1.5
I am trying to migrate my application in Flex 1.5 to Flex 2.0. I did the following: 1. Created a new Project in Flex 2.0 builder 2. Imported mxml files/folders 3. Imported AS files/folders 4. Modified all AS files to follow new package convention in 2.0 5. Modified all Void to void for all the functions 6. Made sure all vars have data types defined 7. Modified the namespace in MXMLs to rflect 2005 namespace The problem I found in Flex 2.0 builder is that it doesnt identify the compilation problem until the class instance is created/declared in the MXML file. It doesnt show the compilation errors if you dont do that. Please save me nightmares, and give me suggestions or share your experiences while migrating apps. -- 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] Flex 2.0 Builder BUG : Flex builder doesnt recognize imported AS classes
Flex builder 2.0 doesnt recognize the AS classes if you imported them or try to pasted the files into the project (right click copy files/dir and past in the project) To reproduce this bug: 1. Create a sample project. 2. import the existing AS classes/packages 3. in project MXML do this (assuming you have ClientVO.as in as classes) var client : ClientVO = new ClientVO(); I get the following error: Type annotation is not a compile-time constant: ClientVO my AS class confirms to AS3.0. To prove that this is a bug do this: 1. create a sample project 2. create a simple AS class ClientVO and copy the content in the previous project's ClientVO.as file as is. 3. in project MXML do this (assuming you have ClientVO.as in as classes) var client : ClientVO = new ClientVO(); You will not see any error as such This bug is a big pain when you actually migrate projects from Flex 1.5 to Flex 2.0 where you import the classes into the 2.0 project and modify accordingly rather than re-writing the AS classes from scratch. -- 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] Flex2.0: MXMLC compiler is a big pain during migration from 1.5 to 2.0
I am trying to migrate an application that we developed in Flex 1.5 to Flex 2.0. These are the steps I followed: 1. Created a project in Flex 2 builder with empty content. 2. Copied MXML folders/files 3. Copied AS folders/files and Cairngorm 2 packages 4. Modified all my AS files to follow the new package convention 5. Made sure all the vars have a datatype defined. 6. Modified Void to void for all the functions. (this is the stupidest thing in the world) Now my real problem with Flex 2 builder is that it doesnt really show the compilation problem in AS files until you try to instantiate the object in MXML files. Now I have a ClientVO.as class until I do the following in MXML file, I wouldnt know what the real problem in ClientVO.as is: var client : ClientVO = new ClientVO(); Please, save me some nightmares by suggesting or sharing your experiences in working with Flex 2.0 or during migration from Flex 1.5 to Flex 2.0 -- 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.
Re: [flexcoders] Starting a Project Now! FLEX 1.5 or 2.0?
Migrating from Flex 1.5 to Flex 2.0 is big pain becuase things changed a lot around lot of things especially around the concept of cellRenderers and CellEditors. Apart from that I would consider these facts: 1. Flex 2.0 does not dependent on Flex server being available. You can use webservices deployed on the same same server without the FES (Flex Enterprise Services) 2. Some of the problems in Flex 1.5 were fixed. 3. Performance is much better in Flex 2.0 --- In flexcoders@yahoogroups.com, "Dimitrios Gianninas" [EMAIL PROTECTED] wrote: I'd go with Flex 2.0 if I were you. Jimmy -Original Message- From: flexcoders@yahoogroups.com on behalf of Richie Rich Sent: Sat 3/18/2006 9:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Starting a Project Now! FLEX 1.5 or 2.0? Hello, I am starting a project that I would like to finish this summer. This is a prototype project, when finished will morph into a bigger project. Would you start in FLEX 1.5 and port it over to 2.0 when it is released or would you use FLEX 2.0 and work through the work arounds and wait for features to mature? Any thoughts or insight? Rich -- 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 http://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 development http://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 and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS* Visit your group "flexcoders http://groups.yahoo.com/group/flexcoders " on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- 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] Flex2.0 Beta BUG: cellRender/cellEditor
I have posted this question many times in the group, but this time I want to put it very clearly so that people notice this problem The BUG isif you cellRenderer implements IDropInListItemRenderer (where you implement set and get listData methods, refer http://livedocs.macromedia.com/labs/1/flex/langref/index.html?mxml-tag-detail.htmlmxml-tags.html), its set and get listData methods are never invoked. So you cellRenderer's listData local var is always null. There are couple of issues here. The problemon hand is related to cellRenderer/cellEditor for a DataGrid. I really see no value in editorProperty attribute in datagrid, becuase most of times when you implement a cellRenderer/cellEditor it will have more than one editable property. So what will you set the editorProperty. They dont talk about this in the documentation. They only talk about simple examples which has only one editable property. Manish suggested that we use a composite label of all the editable properties in cellRenderer to set to the editorProperty. I am not sure how this works. When the datagrid sets the editorProperty, it will set the composite label and how does the cellRenderer know how to split this label to set the values to appropriate textInput fields in my cellRenderer. My cell renderer implements mx.controls.listclasses.IDropInListItemRenderer interface and implements set and get listData methods (see code below), this is the same code given in the documentation. It says all cellRenderers should implement these methods. I want to use listData to actually get the cell indices in my cellRenderer. // Internal variable for the property value. private var __listData:BaseListData; // Make the listData property bindable. [Bindable("dataObjectChanged")] // Define the getter method. public function get listData():BaseListData { trace("WeekHoursCR: get listData called"); return __listData; } // Define the setter method, and dispatch an event when the property changes // to support data binding. public function set listData(value:BaseListData):void { trace("WeekHoursCR: set listData called"); __listData = value;//The below line causes compile error in flex2.0 beta. //dispatchEvent(new FlexEvent(FlexEvent.DATA_OBJECT_CHANGED)); } // Override the setter method. override public function set dataObject(value:Object) : void { if(value != null) { // Use super to set the value in the base class. super.dataObject = value; } trace("WeekHoursCR: set dataObject called ; __listData=" + __listData); trace("WeekHoursCR: set dataObject called ; dataObject=" + dataObject); } But when I trace the __listData object is always null. the set and get methods are never called. I think its a bug in flex2.0 Beta. If my analysis is wrong please feel free to correct me. -- 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] Re: Flex2.0 Beta BUG: cellRender/cellEditor
So I understand that editorProperty and cellEndEdit are mutually exclusive. They both do the same but for complicated stuff we have to use cellEndEdit event hook. But the bug is really in the cellRenderer listData object which is never set. When the datagrid is rendered for the first time, it cannot depend on cellEndEdit. It will depend on dataObject in cellRenderer to render values. And since dataObject cannot help in getting the cell indices, we need listData. And the documentation says that the cellRenderer has to implement IDropInListItemRenderer interface. But it looks like this set and get methods are never called and so my listData object is always null. --- In flexcoders@yahoogroups.com, "Stephen Gilson" [EMAIL PROTECTED] wrote: There is an example of returning multiple results from a cell renderer in the Beta 1 doc at: http://livedocs.macromedia.com/flex/20beta1/docs/1110.html Basically, you have to handle the cellEndEdit event, extract the data from the cell editor, and write it directly to the control. Please let me know if this example is helpful. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of t_msreddy Sent: Thursday, March 16, 2006 9:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2.0 Beta BUG: cellRender/cellEditor I have posted this question many times in the group, but this time I want to put it very clearly so that people notice this problem The BUG is if you cellRenderer implements IDropInListItemRenderer (where you implement set and get listData methods, refer http://livedocs.macromedia.com/labs/1/flex/langref/index.html?mxml-tag-d etail.htmlmxml-tags.html), its set and get listData methods are never invoked. So you cellRenderer's listData local var is always null. There are couple of issues here. The problem on hand is related to cellRenderer/cellEditor for a DataGrid. I really see no value in editorProperty attribute in datagrid, becuase most of times when you implement a cellRenderer/cellEditor it will have more than one editable property. So what will you set the editorProperty. They dont talk about this in the documentation. They only talk about simple examples which has only one editable property. Manish suggested that we use a composite label of all the editable properties in cellRenderer to set to the editorProperty. I am not sure how this works. When the datagrid sets the editorProperty, it will set the composite label and how does the cellRenderer know how to split this label to set the values to appropriate textInput fields in my cellRenderer. My cell renderer implements mx.controls.listclasses.IDropInListItemRenderer interface and implements set and get listData methods (see code below), this is the same code given in the documentation. It says all cellRenderers should implement these methods. I want to use listData to actually get the cell indices in my cellRenderer. // Internal variable for the property value. private var __listData:BaseListData; // Make the listData property bindable. [Bindable("dataObjectChanged")] // Define the getter method. public function get listData():BaseListData { trace("WeekHoursCR: get listData called"); return __listData; } // Define the setter method, and dispatch an event when the property changes // to support data binding. public function set listData(value:! BaseListData):void { trace("WeekHoursCR: set listData called"); __listData = value; //The below line causes compile error in flex2.0 beta. //dispatchEvent(new FlexEvent(FlexEvent.DATA_OBJECT_CHANGED)); } // Override the setter method. override public function set dataObject(value:Object) : void { if(value != null) { ! n! bsp;nbs p; // Use super to set the value in the base class. super.dataObject = value; } trace("WeekHoursCR: set dataObject called ; __listData=" + __listData); trace("WeekHoursCR: set dataObject called ; dataObject=" + dataObject); } But when I trace the __listData object is always null. the set and get methods are never called. I think its a bug in flex2.0 Beta. If my analysis is wrong please feel free to correct me.-- 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 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and de
[flexcoders] Application HotKeys Manager
I want to implement a application hotkey/shortcuts manager. I am implementing a manager class which actually listens to keyboard events at the application level. The problem that i noticed was, when the focus is on some component within the application the keyboard events at the application level are not fired. Any ideas on why this is happening? -- 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: Flex2.0 Beta BUG: cellRender/cellEditor
I not implementing a cellRenderer as AS class instead i do it in the mxml. In mxml I have set and get listData methods. I no where specify that I am implementing the interface. Ss it not implicit in MXMLs that if it has set and get listData methods that it is implementing the IDropInListItemRenderer interface? Creating a cellrenderer in AS is a big mess, which I want to avoid. Can you please tell me how can i implement a interface in mxml? --- In flexcoders@yahoogroups.com, thunderstumpgesatwork [EMAIL PROTECTED] wrote: I have implemented this interface in Beta1 and it works just fine for me... did you specify implements IDropInListItemRenderer in your class declaration? For example, mine looks like this: public class PivotTableCellRenderer extends mx.containers.HBox implements IDropInListItemRenderer The rest (the getter/setter methods) were a cut and paste from the docs with the exception of TWO things... the internal variable in the documentation has two underscores (__listData vs _listData) I make mine all use one underscore. I believe that is better practice. Also, the documentation references FlexEvent.DATA_OBJECT_CHANGED which doesn't exist, so I've just called it this way: this.dispatchEvent(new Event(dataObjectChanged)); Hope this helps... I always hate the It works for me answer, but it does =) good luck, Thunder --- In flexcoders@yahoogroups.com, t_msreddy t_msreddy@ wrote: So I understand that editorProperty and cellEndEdit are mutually exclusive. They both do the same but for complicated stuff we have to use cellEndEdit event hook. But the bug is really in the cellRenderer listData object which is never set. When the datagrid is rendered for the first time, it cannot depend on cellEndEdit. It will depend on dataObject in cellRenderer to render values. And since dataObject cannot help in getting the cell indices, we need listData. And the documentation says that the cellRenderer has to implement IDropInListItemRenderer interface. But it looks like this set and get methods are never called and so my listData object is always null. --- In flexcoders@yahoogroups.com, Stephen Gilson smgilson@ wrote: There is an example of returning multiple results from a cell renderer in the Beta 1 doc at: http://livedocs.macromedia.com/flex/20beta1/docs/1110.html Basically, you have to handle the cellEndEdit event, extract the data from the cell editor, and write it directly to the control. Please let me know if this example is helpful. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of t_msreddy Sent: Thursday, March 16, 2006 9:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2.0 Beta BUG: cellRender/cellEditor I have posted this question many times in the group, but this time I want to put it very clearly so that people notice this problem The BUG is if you cellRenderer implements IDropInListItemRenderer (where you implement set and get listData methods, refer http://livedocs.macromedia.com/labs/1/flex/langref/index.html? mxml-tag-d etail.htmlmxml-tags.html), its set and get listData methods are never invoked. So you cellRenderer's listData local var is always null. There are couple of issues here. The problem on hand is related to cellRenderer/cellEditor for a DataGrid. I really see no value in editorProperty attribute in datagrid, becuase most of times when you implement a cellRenderer/cellEditor it will have more than one editable property. So what will you set the editorProperty. They dont talk about this in the documentation. They only talk about simple examples which has only one editable property. Manish suggested that we use a composite label of all the editable properties in cellRenderer to set to the editorProperty. I am not sure how this works. When the datagrid sets the editorProperty, it will set the composite label and how does the cellRenderer know how to split this label to set the values to appropriate textInput fields in my cellRenderer. My cell renderer implements mx.controls.listclasses.IDropInListItemRenderer interface and implements set and get listData methods (see code below), this is the same code given in the documentation. It says all cellRenderers should implement these methods. I want to use listData to actually get the cell indices in my cellRenderer. // Internal variable for the property value. private var __listData:BaseListData; // Make the listData property bindable. [Bindable(dataObjectChanged)] // Define the getter method. public function get listData():BaseListData { trace(WeekHoursCR: get listData called); return __listData; } // Define the setter method, and dispatch an event when
[flexcoders] Re: Flex2.0 Beta BUG: cellRender/cellEditor
You guys ROCK!!! I tried both the solutions MXML as well as AS, both worked great. --- In flexcoders@yahoogroups.com, thunderstumpgesatwork [EMAIL PROTECTED] wrote: Ah, well that explains your problem, unfortunately I'm not sure if or how you can specify in MXML that you're implementing an additional interface. Is what you're doing really that complicated? An ActionScript renderer class is really not that difficult in most cases... If it is, what you may need to do is take whatever base class you have (your mxml component's top level container) and make an ActionScript class that inherits that and adds the IDropInListItemRenderer interface and getter/setter functions. Then implement the complexity of your renderer in an MXML component that uses your ActionScript class as it's main component. Good Luck, Thunder --- In flexcoders@yahoogroups.com, t_msreddy t_msreddy@ wrote: I not implementing a cellRenderer as AS class instead i do it in the mxml. In mxml I have set and get listData methods. I no where specify that I am implementing the interface. Ss it not implicit in MXMLs that if it has set and get listData methods that it is implementing the IDropInListItemRenderer interface? Creating a cellrenderer in AS is a big mess, which I want to avoid. Can you please tell me how can i implement a interface in mxml? --- In flexcoders@yahoogroups.com, thunderstumpgesatwork thunder.stumpges@ wrote: I have implemented this interface in Beta1 and it works just fine for me... did you specify implements IDropInListItemRenderer in your class declaration? For example, mine looks like this: public class PivotTableCellRenderer extends mx.containers.HBox implements IDropInListItemRenderer The rest (the getter/setter methods) were a cut and paste from the docs with the exception of TWO things... the internal variable in the documentation has two underscores (__listData vs _listData) I make mine all use one underscore. I believe that is better practice. Also, the documentation references FlexEvent.DATA_OBJECT_CHANGED which doesn't exist, so I've just called it this way: this.dispatchEvent(new Event(dataObjectChanged)); Hope this helps... I always hate the It works for me answer, but it does =) good luck, Thunder --- In flexcoders@yahoogroups.com, t_msreddy t_msreddy@ wrote: So I understand that editorProperty and cellEndEdit are mutually exclusive. They both do the same but for complicated stuff we have to use cellEndEdit event hook. But the bug is really in the cellRenderer listData object which is never set. When the datagrid is rendered for the first time, it cannot depend on cellEndEdit. It will depend on dataObject in cellRenderer to render values. And since dataObject cannot help in getting the cell indices, we need listData. And the documentation says that the cellRenderer has to implement IDropInListItemRenderer interface. But it looks like this set and get methods are never called and so my listData object is always null. --- In flexcoders@yahoogroups.com, Stephen Gilson smgilson@ wrote: There is an example of returning multiple results from a cell renderer in the Beta 1 doc at: http://livedocs.macromedia.com/flex/20beta1/docs/1110.html Basically, you have to handle the cellEndEdit event, extract the data from the cell editor, and write it directly to the control. Please let me know if this example is helpful. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of t_msreddy Sent: Thursday, March 16, 2006 9:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2.0 Beta BUG: cellRender/cellEditor I have posted this question many times in the group, but this time I want to put it very clearly so that people notice this problem The BUG is if you cellRenderer implements IDropInListItemRenderer (where you implement set and get listData methods, refer http://livedocs.macromedia.com/labs/1/flex/langref/index.html? mxml-tag-d etail.htmlmxml-tags.html), its set and get listData methods are never invoked. So you cellRenderer's listData local var is always null. There are couple of issues here. The problem on hand is related to cellRenderer/cellEditor for a DataGrid. I really see no value in editorProperty attribute in datagrid, becuase most of times when you implement a cellRenderer/cellEditor it will have more than one editable property. So what will you set the editorProperty. They dont talk about this in the documentation. They only
[flexcoders] Re: Flex2.0 Beta BUG: cellRender/cellEditor
Manish thanks for your awesome help. The proposed solution works. --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 3/17/06, thunderstumpgesatwork [EMAIL PROTECTED] wrote: Ah, well that explains your problem, unfortunately I'm not sure if or how you can specify in MXML that you're implementing an additional interface. You can comma-separate the interface names in the implements attribute. Manish -- 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: rowIndex columnIndex while rendering in Flex 2.0
Manish What if I have two textboxes in the cellRenderer HBox label={weekHoursActual.text} TextInput id=weekHoursActual text={...} / TextInput id=weekHoursForecast text={...} / /HBox what will the editorProperty be? Also can you tell me how to get the rowIndex and columnIndex. My dataProvider to DataGrid is 2 Dimensional, one dimension represents the row and the other the columns so that any cell(i,j) value will be dataProvider[i][j]. So I need to know atleast columnIndex in Cellrenderer so that my value will in it will be dataObject.object[columnIndex].someValue. Thanks --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 3/14/06, t_msreddy [EMAIL PROTECTED] wrote: I have the same problem. I need to know rowIndex and columnIndex to populate values in cellrenderer (Please see the code for both below). Also I get the error: -- ReferenceError: Error #1069: Property text not found on WeekHoursCR and there is no default value [snip] - This is my Cellrenderer (WeekHourCR.mxml): - ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.macromedia.com/2005/mxml; width=100% height=100% horizontalGap=0 verticalAlign=top mx:TextInput id=weekHoursActual width=40 height=20 textAlign=center text={(dataObject.employeeHours [0]).forecastHours} / mx:TextInput id=weekHoursForecast width=40 height=20 textAlign=center text={(dataObject.employeeHours [0]).actualHours} / /mx:HBox - It's trying to access the non-existent `text` property on HBox. Add a `text` property, or, faster, set `editorProperty` to label and bind the HBox's label to the TextInput's text. HBox label={weekHoursActual.text} TextInput id=weekHoursActual text={...} / ... Manish -- 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: [Flex 1.5] Update ColumnData with new data
In flex 1.5 you will have to do that on "change" event in cellRenderer: MyCellRenderer.mxml mx:HBox mx:Script ![CDATA[ function updateDP() { //loop through the dataProvider for DataGrid and setValues. parentDocument.MyDataGrid.executeBinding(); //this may not be required, this will re-render the DataGrid } ]]/mx:Script mx:TextInput id="MyTI" change="updateDP()"/ /mx:HBox --- In flexcoders@yahoogroups.com, "Jonathan Miranda" [EMAIL PROTECTED] wrote: Your easiest bet for this is to have a cellRenderer send an event out when you leave the cell and update the dataprovider accordingly in a function which will update the datagrid. If you're unlucky like me, I had to have selectable=false and it was giving me a headache trying to figure this out (knowing which row I was on) - but I got the final answer after a long list of emails. Things to note first about this: -my cell renderer had to have implements="mx.controls.listclasses.IDropInListItemRenderer" because I need access to listdata -you can't get to selectedIndices or anything of the like if your selectable=false, so that's why I had to use the vPosition -the idea is you bubble an event out from the cell you're editing, find out what row it is (and column in your case) and change the dataprovider. Here's the code for finding the row: (resultsDG is my datagrid, the stuff inside the brackets is the row position and compare is my column) resultsDG.dataProvider[e.target.parent.listData.owner.vPosition+e.target .parent.listData.rowIndex-1].compareTry tackling the extension of the cellrenderer to get the listData and if you got questions I can provide more examples. _ Jonathan Miranda Flexible Master of the Web "Try not to become a man of success, but a man of value." - Albert Einstein HealthGrades http://www.healthgrades.com/ : Guiding America to Better Healthcare(tm) NASDAQ: HGRD w (720) 963-3832 c (707) 761-0868 [EMAIL PROTECTED] _ The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee. If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sreejith Unnikrishnan Sent: Tuesday, March 14, 2006 11:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] [Flex 1.5] Update ColumnData with new dataHi,Need some help here.Assume I have an editable datagrid with 10 columns and 10 rows, all cells initially populated with a value 0.When I enter a value, say 10 in the first column and tab out, I need to update all the succeeding columns with the value 10. And then if I say edit the 3rd column with a different value, the succeeding columns should update with the new value.What would be the most efficient way to achieve this?Maybe I should try to generically find the "newValue" of a cell and then assign it by rowIndex-columnIndex?Thanks Sree-- 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 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexw5=Software+development+best+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1 66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice
[flexcoders] Re: rowIndex columnIndex while rendering in Flex 2.0
I have the same problem. I need to know rowIndex and columnIndex to populate values in cellrenderer (Please see the code for both below). Also I get the error: -- ReferenceError: Error #1069: Property text not found on WeekHoursCR and there is no default value at mx.controls::DataGrid/mx.controls:DataGrid::cellEditorCellEndEditH andler() at flash.events::EventDispatcher/dispatchEvent() at mx.controls::DataGrid/endEdit() at mx.controls::DataGrid/deactivateHandler() -- Here is the Datagrid code: -- mx:DataGrid id=weekHoursDG height=341 hScrollPolicy=auto width=100% rowCount=17 sortableColumns=false dataProvider={projectsDetailsList.projectDetails [projectsDG.selectedIndex].projectWeekHours.employeeDetails} editable=true cellBeginEdit=onCellBeginEdit(event); cellEndEdit=onCellEndEdit (event); mx:columns mx:Array mx:DataGridColumn headerText=week1 width=160 isCellEditor=true cellRenderer=WeekHoursCR/ mx:DataGridColumn headerText=week2 width=160 isCellEditor=true cellRenderer=WeekHoursCR/ /mx:Array /mx:columns /mx:DataGrid - This is my Cellrenderer (WeekHourCR.mxml): - ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.macromedia.com/2005/mxml; width=100% height=100% horizontalGap=0 verticalAlign=top mx:TextInput id=weekHoursActual width=40 height=20 textAlign=center text={(dataObject.employeeHours [0]).forecastHours} / mx:TextInput id=weekHoursForecast width=40 height=20 textAlign=center text={(dataObject.employeeHours [0]).actualHours} / /mx:HBox - --- In flexcoders@yahoogroups.com, Dustin Mercer [EMAIL PROTECTED] wrote: Another way is to cast the list data to DataGridListData I.E. DataGridListData(listData).rowIndex or DataGridListData(listData).coulmnIndex Dustin Mercer -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Friday, March 10, 2006 1:51 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] rowIndex columnIndex while rendering in Flex 2.0 On 3/10/06, stchavan [EMAIL PROTECTED] wrote: In Flex 2.0, we can get rowIndex and columnIndex for a datagrid cell, when it is being edited, by using event.rowIndex and event.columnIndex (where event is a DataGridEvent like cellBeginEdit, cellEndEdit etc.) Similarly, how can we retrieve the rowIndex and columnIndex, when a cell is being rendered for the first time? ListBase(listData.owner).getItemIndices() I'm not sure it's a public, documented method in Beta 1 (or even Beta 2), but it's the one to use basically. Manish -- 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 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: referencing a datamodel from another component
I am not sure if i understand you right, but there is something called parentDocument which allows you to access parentDocuments objects Main mx:Application my:comp1 id=comp1/ my:comp2 id=comp2/ /mx:Application then in comp2.mxml, you can do this: parentDocument.comp1.datamodel to get you datamode defined in comp1.mxml --- In flexcoders@yahoogroups.com, rgwilson26 [EMAIL PROTECTED] wrote: I am recently starting to work with datamodels in flex 1.5 and am having a bit of a time trying to pass data around my application. I figured I would use a data model using a model tag within comp#1. I will need comp#2 to access and display this data. However I cannot seem to get comp#2 to see comp#1's datamodel. Instead I get a changes to unknown property, comp#1Model, will not be detected. In comp#2 I have text={comp#1Model.userFirstName} This is my directory strucuture: main.mxml comp directory comp#1.mxml comp#2.mxml If there is possibly a better approach to passing data around within an app I am open to suggestions. Thanks -- 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: Named Webservices
See the sample code in flex-config.mxml below. --- web-service-proxy !-- all locations may be specified as a URL relative to the web server document root, or a complete http URL; to specify relative to the context root, please include {context.root} NOTE: do not use a leading slash with {context.root} -- !-- determine whether the proxy is used or bypassed. client - up to the client via the useProxy attribute on the WebService, if unspecified will use the proxy always - always use the proxy, useProxy='false' on the WebService will generate a Warning never - never use the proxy, useProxy='true' on WebService will generate a Warning -- proxy-use-policyclient/proxy-use-policy !-- the web service proxy to use when calling a page over http or -- !-- when protocol is specified as http -- url{context.root}/flashproxy/url !-- the web service proxy to use when calling a page over https or -- !-- when protocol is specified as https -- https-url{context.root}/flashproxy/https-url !-- use proxy specified via flashvars or query parameter ?proxyURL=XXX -- allow-url-overridefalse/allow-url-override !-- Whether to accept self-signed certificates. Dangerous in production -- allow-lax-sslfalse/allow-lax-ssl !-- a list of urls accessible via this web service proxy -- !-- the {localserver} token may be added in place of actual host and port number to ensure that services created with relative URLs are allowed -- whitelist !-- config for unnamed web services -- unnamed urlhttp://{localserver}/*/url urlhttps://{localserver}/*/url !-- For security, the whitelist is locked down by default. Uncomment the first two urls below to enable access to all URLs, or add above the individual URLs you wish to access. urlhttp://*/url urlhttps://*/url -- /unnamed !-- config for named web services -- named service name="EmployeeWS" !-- enables use of custom fault code on the client for handling authentication failures -- use-custom-authenticationfalse/use-custom-authentication !-- wsdl location for the named service -- wsdl{context.root}/EmployeeWS.jws?wsdl/wsdl !-- endpoints for the named web service -- endpoints !-- actual url to use when accessing the named web service -- endpoint{context.root}/EmployeeWS.jws/endpoint /endpoints !-- user-name and password to use when accessing this web service -- !-- run-as user="user" password="pwd"/ -- !-- Adds the service's wsdl and endpoints to the unnamed whitelist. If false, these can never be used unnamed -- !-- This should be set to false if using web application security with this named service -- !-- allow-unnamed-accesstrue/allow-unnamed-access -- /service service name="ProjectWS" !-- enables use of custom fault code on the client for handling authentication failures -- use-custom-authenticationfalse/use-custom-authentication !-- wsdl location for the named service -- wsdl{context.root}/services/ProjectWS?wsdl/wsdl !-- endpoints for the named web service -- endpoints !-- actual url to use when accessing the named web service -- endpoint{context.root}/services/ProjectWS/endpoint /endpoints !-- user-name and password to use when accessing this web service -- !-- run-as user="user" password="pwd"/ -- !-- Adds the service's wsdl and endpoints to the unnamed whitelist. If false, these can never be used unnamed -- !-- This should be set to false if using web application security with this named service -- !-- allow-unnamed-accesstrue/allow-unnamed-access -- /service/named /whitelist /web-service-proxy --- --- In flexcoders@yahoogroups.com, "Jeremy Rottman" [EMAIL PROTECTED] wrote: During development, I used something like this to handle all data sending/retreiving. mx:WebService id="SaleMod" useProxy="false" wsdl="http://flex.homesmartagent.com/cfc/adminHS2F.cfc?wsdl" showBusyCursor="true" / Currently I develope on one box, and I upload the compiled swf to anohter box that contains our cf/sql servers. How can I setup a named webservice with in flex. any help will be greatly appreciated. -- 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.
[flexcoders] Datagrid how to get access to cellRenderer instance
I have a cellRenderer in Datagrid column which has text box and an image. I want to implement focus on tab key. I dont know how to do it. The only way i thought was to get the instance of cell renderer for that cell(itemIndex, columnIndex) and do FocusManager.setFocus (cellRendererInstance.MyText). I dont know how to do this. I am not sure if this is possible. The tabbing works by default in a datagrid: if the datagrid is editable, meaning if it doesnt have any cell renderer. I want to implement the same feature but the tabbing should be for text box inside the cellRenderer. Please help -- 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] Implementing setFocus for Datagrid which has cellRender with TextInput field
Hi I have a datagrid with a vbox cell renderer which has text box. I want to implement a kind of focus manager to set the focus on TAB key press. Here is what i want: If current focus is in TextField1 in Cell(i,j), pressing the tab key should set the focus on TextField1 in Cell(i, j+1) ... something like that. I have access to the cell indices (i, j) but how can I use them to get the TextField1 in Cell(i, j) Please help, thanks. -- 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] How to customize mouse trail
Hi I am implementing a drag and drop between two datagrids and I want actually show a trail bacially an image which follows the mouse. movement until you drop it. The standard trail that you see it now when you drag is the actual row details. I want to customize this trail. Can you please tell me how? -- 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] dynamic number of datagrid columns
HiI need to implement a datagrid based on user input. User input determines the number of datagrid columns.Can you please tell me how to do this? In all the examples I have seen the grid columns are static though data is rendered through data provider like this:mxataGrid id="datagrid1" width="100%" height="80%" dataProvider="{dp}" rowHeight="100" mx:columnsmx:Array mxataGridColumn headerText="Name" columnName="name" editable="false"/ mxataGridColumn headerText="City" columnName="city" editable="false" / mxataGridColumn headerText="Birthday" cellRenderer="GridCellRenderer" / mxataGridColumn headerText="Favorites" columnName="combodata" editable="true" / mxataGridColumn headerText="Delete" columnName="candelete" editable="true" //mx:Array /mx:columns /mxataGridhere you have mxataGridColumn tags which render the columns. I need to implement a datagrid which has dynamic number of columns.Please help me. -- 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] how to display ruler in mx:Grid
I want to display a grid with ruler. Can you please tell me how to do it? -- 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] Please advise on how to implement this
We are actually working on some application which has a section with the following details: 1. Section should have some kind of a timeline bar as header (like in bar chart, main ticker as weeks and small tickers as days). We want to see the grid as well. 2. Should be able to create multiple rows. In Each Row I should be abel to drag and drop elements ( from listbox) anywhere into this section. Once you drop it should show a bar starting at the nearest week ticker on the left and ending at the nearest week ticker on the right. This bar should be expandable by pulling the right edge. When you pull it should align with the nearest week ticker on the right. the bar should also be movable with mouse like drag and drop. These features are very crucial for our application.This is not a charting application but a resource management tool for project in our company. Please suggest ideas. We want to do this in Flex Thanks Madhu -- 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/
Performance testing Flash-J2EE applications
Hi I am trying to test the performance of my application which involves flex mxml, actionscript classes which call backend J2EE code. What are the tools out in the market which allows me to test this similar to the test load test that we do on web applications. I tried OpenSTA but and tried to capture and play the test but I got this error: - Error: Request received was not Flash-based (not of the binary AMF protocol). - Any ideas on what this error might be. Or if you know any tool let me know. Thanks Madhu
opening a link in canvas in the same page
Hi I have question regarding navigation. The layout of the page I have is, I have header on top, naviagtion bar on the left and body on the left and footer at the bottom. I want the navigation to be an Accordion and each accordion tab has links. When you click the link I want to see the contents related to that link (I mean page associated with that link) in the body on the same page.(In the main mxml file I I have a Accordion on the left and an empty Canvas o nthe right). If anyone could tell me how to do, I will really worship him/her. Thanks Madhu