[flexcoders] 32kb limit in Flex 2.0?
Title: 32kb limit in Flex 2.0? Hi, Does anybody know if there is the 32KB size limit on actionscript files in Flex 2.0 also? I know it is there in Flex 1.5. Thanks, Shweta -- 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] restrict text size in datagrid cell??
Title: Message Thanks for the link. It works now. -Shweta -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ashishSent: Wednesday, February 15, 2006 10:51 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] restrict text size in datagrid cell?? what i think, you can do this with the help of cellrenderer, to restrict the characters in datagrid -ashish grover On Wed, Feb 15, 2006 at 10:15 PM, Alex Uhlmann wrote: http://www.richinternet.de/blog/index.cfm?mode=search Best, Alex Alex Uhlmann Technical Consultant (Rich Internet Applications) Adobe Consulting Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK p: +44 (0) 131 338 6969 m: +44 (0) 7917 428 951 [EMAIL PROTECTED] ___ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Parekh, Shweta - BLS CTR Sent: 15 February 2006 16:33 To: flexcoders@yahoogroups.com Subject: [flexcoders] restrict text size in datagrid cell?? Hi, How can I specify the maxChars on cells in a datagrid if I want to restrict the size of text entered in a cell to a certain limit. For text input etc. Flex has maxChars which takes care of it. How do I do it in a datagrid? Thanks, Shweta -- 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] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . ___ -- Sent using Laszlo Mail. Try it yourself. http://www.laszlomail.com -- 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] restrict text size in datagrid cell??
Title: restrict text size in datagrid cell?? Hi, How can I specify the maxChars on cells in a datagrid if I want to restrict the size of text entered in a cell to a certain limit. For text input etc. Flex has maxChars which takes care of it. How do I do it in a datagrid? Thanks, Shweta -- 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] changing background color of a cell in datagrid
Title: changing background color of a cell in datagrid Hi, Can anyone send me some sample code / point to some sample code to change the background color of a cell in a datagrid when the cell is clicked. I have tried writing a custom cellRenderer for this but with no luck. class MyCellRenderer extends UIComponent { var listOwner : MovieClip; // the reference we receive to the list var text_c:MovieClip; var getCellIndex : Function; // the function we receive from the list var celltext : mx.controls.Text; function MyCellRenderer() { text_c = createClassObject(Text, celltext, 1, { styleName:this, owner:this }); } function setValue(theValue:String, theItem:Object, selected:String):Void { trace(in setValue, theValue: + selected: +selected ); text_c.text = theValue; text_c.visible = true; listOwner.dataProvider.editField(getCellIndex().columnIndex, backgroundColor, 0xCC66FF); } Thanks in advance, Shweta -- 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 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] problem with arrays
Title: problem with arrays Hi, I have a piece of code like the following: var testArray:Array = new Array(); var temp_arr:Array = new Array(2); for(var num:Number = 0; num 3; num++) { temp_arr[0] = num; temp_arr[1] = num+5; testArray.addItemAt(num, temp_arr); } trace(testArray ***); for(var i:Number = 0; i testArray.length; i++) { trace(testArray[i]); } I am expecting it to print 0 5 1 6 2 7 instead the it prints out 2 7 2 7 2 7 Can anybody tell me why??? How can I fix it? Thanks, Shweta -- 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] Changing the background color of row in datagrid
Title: Changing the background color of row in datagrid Hi, I would like to be able to change the background color of a row in the datagrid after I click on a row and then enter the letter : n in the input box called print_txt and hit enter. I use the setPropertiesAt method, employee_dg.setPropertiesAt(rowInd, {backgroundColor:0xFFF00}); the row changes its color ONLY after I click on another row or anywhere in the datagrid. However, I don't need to click on another row for it to work if I have the row index as a number i.e. if my code looks like this: employee_dg.setPropertiesAt(1, {backgroundColor:0xFFF00}); where I hard code the row index instead of passing a parameter. Why is this? I don't have a problem with this when changing the color of a cell. I also tried using employee_dg.rows[rowInd].backgroundColor = 0xfff00; for changing the background color for a row but this does not work. Any ideas why? Thank you. Shweta -- 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] Changing the background color of row in datagrid
Title: Message Darron, I did use setPropertiesAt function as you have suggested. But my problem is that when I use it the way you have suggested, employee_dg.setPropertiesAt(rowInd, {backgroundColor:0xFFF00}); the bg color of the row does not change instanlty. I have to click somewhere in the datagrid for the color change to take place whereas when I hard code the row index ie. employee_dg.setPropertiesAt(1, {backgroundColor:0xFFF00}); the bg color is changed instantly. I need not click on the datagrid for it to do it. Could you tell me why? Attached is a sample app to see this peculiar behavior.. Thanks, Shweta ___ Shweta Parekh Bureau of Labor Statistics, Room# 5930 202.691.7449 -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Darron J. SchallSent: Tuesday, November 08, 2005 3:35 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Changing the background color of row in datagridParekh, Shweta - BLS CTR wrote: I also tried using employee_dg.rows[rowInd].backgroundColor = "0xfff00"; for changing the background color for a row but this does not work.This should probably be added the to FAQ as it gets asked a lot:// Use "setPropertiesAt" to set the background color of an individual row:theListOrGrid.setPropertiesAt( rowIndex, { backgroundColor: 0xFF } );-d -- 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. deptComp.mxml Description: deptComp.mxml department.mxml Description: department.mxml ?xml version=1.0 encoding=utf-8? departments department deptId01/deptId deptNameAccounting/deptName employees employee nameChristina Coenraets/name phone555-219-2270/phone email[EMAIL PROTECTED]/email activetrue/active /employee employee nameLouis Freligh/name phone555-219-2100/phone email[EMAIL PROTECTED]/email activetrue/active /employee employee nameRonnie Hodgman/name phone555-219-2030/phone email[EMAIL PROTECTED]/email activefalse/active /employee employee nameJoanne Wall/name phone555-219-2012/phone email[EMAIL PROTECTED]/email activetrue/active /employee /employees /department department deptId02/deptId deptNameHuman Resource/deptName employees employee nameMaurice Smith/name phone555-219-2012/phone email[EMAIL PROTECTED]/email activefalse/active /employee employee nameMary Jones/name phone555-219-2000/phone email[EMAIL PROTECTED]/email activetrue/active /employee /employees /department /departments
[flexcoders] CellRenderer for datagrid
Hi, I have a problem with using cellrenderer at datagrid level. Attached is a sample of the application which I'm using to test the cellrenderer. If I have the renderer at column level, mx:DataGridColumn columnName=active width=50 cellRenderer=CellColorRenderer/, when I click on the cells under active column, the background color of the cells change. However, for my case, I can't explicitly define the columns, they generate based on the data result so I need to use a different path. I tried to have the renderer at datagrid level, mx:DataGrid id=employee_dg dataProvider={department.employees.employee} editable=true cellRenderer=CellColorRenderer, it does not work. Please help!!! Thanks in advance, Shweta CellColorRenderer.mxml department.mxml Department.xml deptComp.mxml ___ Shweta Parekh Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ CellColorRenderer.mxml Description: Binary data department.mxml Description: Binary data Department.xml Description: Binary data deptComp.mxml Description: Binary data
RE: [flexcoders] Keyup event in datagrid
Title: Message Hi, Thanks for your input but binding is not a problem but it should bind the two the datagrid cell and textinput as I type in the cell. So this did not work. I am trying to use cellrenderer to see if I can render the cell it as a text inputand handle events on it accordingly. I am stuck at trying to use the cellRenderer at the datagrid level instead of dataGridColumn as my datagrid is dynamic and the number of columns keep changing depending on the data coming from the business tier. This is what my datagrid looks like: mx:DataGrid id="columnar_dg" height="91" textAlign="left" width="524" dataProvider="{listSpec.columnarSpec}" cellPress="pressCell(event)" cellEdit="editCell()" keyUp="test()" cellRenderer="test" sortableColumns="false" rowHeight="15" headerHeight="14" editable="true" creationComplete="setHeaders()" /mx:DataGrid The KeyUp does not work.The test() function in cell renderer is also not called. How can I get the cellrenderer to work at the datagrid level instead for DataGridColumn? Appreciate any ideas on this. Thanks, Shweta -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish JethaniSent: Friday, October 28, 2005 10:07 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Keyup event in datagridOn 10/28/05, Parekh, Shweta - BLS CTR [EMAIL PROTECTED] wrote: When is the keyup event in datagrid fired? I have a requirement where as I edit a cell in a datagrid, the text in my text input should get updated and vice versa. Basically I have to tie together a particular cell pressed in the datagrid to a textinput field. I have a keyUp event for my text input which updates the text in the datagrid cell as I update the textinput but I am not able to get the other way working.Couldn't you just bind the text to the grid's data provider? TextInput text="{dataGrid.dataProvider[index].field}" / -- 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 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] Right click and popup window
Title: Message Hi, I tried using the Delegate class for the popup but it still does not work. It gives me an error saying the property being referenced does not have the static attribute. (error on the lines where I use createDelegate method) I'm working on Flex 1.5 Any ideas?? ?xml version="1.0" encoding="utf-8"?mx:Application initialize="myContextMenu()" backgroundColor="#FF" xmlns:mx="http://www.macromedia.com/2003/mxml" mx:Script import mx.controls.Alert;import mx.containers.TitleWindow;import mx.managers.PopUpManager; public var mnuContext:ContextMenu = null; public function contextItemPressed( obj, item ):Void { if( item.caption == "Yahoo" ) { obj.txtReport.text = obj.txtReport.text + "\nYahoo fired."; trace("i am here");//var popupWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(this, FormulaPopup, true));//popupWindow.centerPopUp(this);showFormWin(); } else if( item.caption == "Google" ) { obj.txtReport.text = obj.txtReport.text + "\nGoogle fired."; } else if( item.caption == "CNet News" ) { obj.txtReport.text = obj.txtReport.text + "\nCNet News fired."; } } public function setupContext( Void ):Void { mnuContext = new ContextMenu(); mnuContext.hideBuiltInItems(); var contextDelegate = mx.utils.Delegate.createDelegate(this, contextItemPressed); mnuContext.customItems.push( new ContextMenuItem( "Yahoo", contextDelegate ) ); mnuContext.customItems.push( new ContextMenuItem( "Google", contextDelegate ) ); mnuContext.customItems.push( new ContextMenuItem( "CNet News", contextDelegate ) ); this["menu"] = mnuContext; txtReport.text = "Setup."; } public function myContextMenu(){parent.addEventListener("initialize",mx.utils.Delegate.createDelegate(this, setupContext));} function showFormWin(){mx.controls.Alert.show("showFormWin fired."); var popupWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(this, FormulaPopup, true));popupWindow.centerPopUp(this);}/mx:Script mx:TextArea id="txtReport" preferredWidth="175" height="200"//mx:Application Thanks, Shweta -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy SprattSent: Thursday, October 20, 2005 1:00 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Right click and popup window Beware of scope issues. Not sure exactly how in your specific case, but you should probably use a Delegate. I suspect that handleContext is running in a scope that is unaware of showFormWin. Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Parekh, Shweta - BLS CTRSent: Wednesday, October 19, 2005 5:33 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Right click and popup window Thanks Jester. I understand the getEditingData() method better. I got that to work. I have a question regarding bringing up a popup window when you right click, and click on a particular menu option. I got the right click and creating custom menu by pushing new items working but when I click on a menu option, I want it to popup a window whereas the app just hangs. Here is the code: mx:Script import mx.controls.Alert; import mx.containers.TitleWindow; import mx.managers.PopUpManager; public var mnuContext:ContextMenu = null; public function handleContext( obj, item ):Void { if( item.caption == "Yahoo" ) { obj.txtReport.text = obj.txtReport.text + "\nYahoo fired."; trace("i am here"); //var popupWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(this, FormulaPopup, true)); //popupWindow.centerPopUp(this); showFormWin(); -- This method is not called at all, I don't see any trace } else if( item.caption == "Google" ) { obj.txtReport.text = obj.txtReport.text + "\nGoogle fired."; } else if( item.caption == "CNet News" ) { obj.txtReport.text = obj.txtReport.text + "\nCNet News fired."; } } public function setupContext( Void ):Void { mnuContext = new ContextMenu(); mnuContext.hideBuiltInItems(); mnuContext.customItems.push( new ContextMenuItem( "Yahoo", handleContext ) ); mnuContext.customItems.push( new ContextMenuItem( "Google", handleContext ) ); mnuContext.customItems.push( new ContextMenuItem( "CNet News", handleContext ) ); this["menu"] = mnuContext; txtReport.text = "Setup."; } function showFormWin() { trace("showFormWin fired."); var popupWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(this, FormulaPopup, true)); popupWindow.centerPopUp(this); } /mx:Script mx:TextArea id="txtReport" preferredWidth="175" height="200"/ /mx:Application Any help / ideas on this will be appreciated.
RE: [flexcoders] Right click and popup window
Title: Message I tried this out from sample code given in Flex book - Developing rich clients with Macromedia Flex. It does havethe createDelegate method. -Shweta -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul QabizSent: Friday, October 21, 2005 3:12 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Right click and popup window There is no createDelegate method, it is Delegate.create(...) -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Parekh, Shweta - BLS CTRSent: Friday, October 21, 2005 11:01 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Right click and popup window Hi, I tried using the Delegate class for the popup but it still does not work. It gives me an error saying the property being referenced does not have the static attribute. (error on the lines where I use createDelegate method) I'm working on Flex 1.5 Any ideas?? ?xml version="1.0" encoding="utf-8"?mx:Application initialize="myContextMenu()" backgroundColor="#FF" xmlns:mx="http://www.macromedia.com/2003/mxml" mx:Script import mx.controls.Alert;import mx.containers.TitleWindow;import mx.managers.PopUpManager; public var mnuContext:ContextMenu = null; public function contextItemPressed( obj, item ):Void { if( item.caption == "Yahoo" ) { obj.txtReport.text = obj.txtReport.text + "\nYahoo fired."; trace("i am here");//var popupWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(this, FormulaPopup, true));//popupWindow.centerPopUp(this);showFormWin(); } else if( item.caption == "Google" ) { obj.txtReport.text = obj.txtReport.text + "\nGoogle fired."; } else if( item.caption == "CNet News" ) { obj.txtReport.text = obj.txtReport.text + "\nCNet News fired."; } } public function setupContext( Void ):Void { mnuContext = new ContextMenu(); mnuContext.hideBuiltInItems(); var contextDelegate = mx.utils.Delegate.createDelegate(this, contextItemPressed); mnuContext.customItems.push( new ContextMenuItem( "Yahoo", contextDelegate ) ); mnuContext.customItems.push( new ContextMenuItem( "Google", contextDelegate ) ); mnuContext.customItems.push( new ContextMenuItem( "CNet News", contextDelegate ) ); this["menu"] = mnuContext; txtReport.text = "Setup."; } public function myContextMenu(){parent.addEventListener("initialize",mx.utils.Delegate.createDelegate(this, setupContext));} function showFormWin(){mx.controls.Alert.show("showFormWin fired."); var popupWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(this, FormulaPopup, true));popupWindow.centerPopUp(this);}/mx:Script mx:TextArea id="txtReport" preferredWidth="175" height="200"//mx:Application Thanks, Shweta -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy SprattSent: Thursday, October 20, 2005 1:00 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Right click and popup window Beware of scope issues. Not sure exactly how in your specific case, but you should probably use a Delegate. I suspect that handleContext is running in a scope that is unaware of showFormWin. Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Parekh, Shweta - BLS CTRSent: Wednesday, October 19, 2005 5:33 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Right click and popup window Thanks Jester. I understand the getEditingData() method better. I got that to work. I have a question regarding bringing up a popup window when you right click, and click on a particular menu option. I got the right click and creating custom menu by pushing new items working but when I click on a menu option, I want it to popup a window whereas the app just hangs. Here is the code: mx:Script import mx.controls.Alert; import mx.containers.TitleWindow; import mx.managers.PopUpManager; public var mnuContext:ContextMenu = null; public function handleContext( obj, item ):Void { if( item.caption == "Yahoo" ) { obj.txtReport.text = obj.txtReport.text + "\nYahoo fired."; trace("i am here"); //var popupWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(this, FormulaPopup, true)); //popupWindow.centerPopUp(this); showFormWin(); -- This method is not called at all, I don't see any trace } else if( item.caption == "Google" ) { obj.txtReport.text = obj.txtReport.text + "\nGoogle
[flexcoders] Right click and popup window
Title: Right click and popup window Thanks Jester. I understand the getEditingData() method better. I got that to work. I have a question regarding bringing up a popup window when you right click, and click on a particular menu option. I got the right click and creating custom menu by pushing new items working but when I click on a menu option, I want it to popup a window whereas the app just hangs. Here is the code: mx:Script import mx.controls.Alert; import mx.containers.TitleWindow; import mx.managers.PopUpManager; public var mnuContext:ContextMenu = null; public function handleContext( obj, item ):Void { if( item.caption == Yahoo ) { obj.txtReport.text = obj.txtReport.text + \nYahoo fired.; trace(i am here); //var popupWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(this, FormulaPopup, true)); //popupWindow.centerPopUp(this); showFormWin(); -- This method is not called at all, I don't see any trace } else if( item.caption == Google ) { obj.txtReport.text = obj.txtReport.text + \nGoogle fired.; } else if( item.caption == CNet News ) { obj.txtReport.text = obj.txtReport.text + \nCNet News fired.; } } public function setupContext( Void ):Void { mnuContext = new ContextMenu(); mnuContext.hideBuiltInItems(); mnuContext.customItems.push( new ContextMenuItem( Yahoo, handleContext ) ); mnuContext.customItems.push( new ContextMenuItem( Google, handleContext ) ); mnuContext.customItems.push( new ContextMenuItem( CNet News, handleContext ) ); this[menu] = mnuContext; txtReport.text = Setup.; } function showFormWin() { trace(showFormWin fired.); var popupWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(this, FormulaPopup, true)); popupWindow.centerPopUp(this); } /mx:Script mx:TextArea id=txtReport preferredWidth=175 height=200/ /mx:Application Any help / ideas on this will be appreciated. Thanks, Shweta -- 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] Problem with repeater and datagrid -- Please help!
Title: Problem with repeater and datagrid -- Please help! Hi, I have a problem with repeater and datagrids. I have a repeater in ItemSpec.mxml file (below) which includes an mxml component: itemSpecInfo. File: itemSpec.mxml mx:Repeater id=specRepeater dataProvider={specs} ... itemSpecInfo/ /mx:Repeater ItemSpecInfo.mxml has a datagrid in it. The ItemSpecInfo, being in the repeater, is repeated five times. So basically it displays a page with 5 datagrids. ItemSpecInfo.mxml also has a remote object call which gets the result from Backend and that result is the dataprovider for the datagrid. The mxml file corresponds to ItemSpecInfo.as actionscript file. As this ItemSpecInfo is in the repeater, the remote call is made five times which is something I want to avoid. I want the remote call being made only once. So logically I need to put the remote call before the repeater code in ItemSpec.mxml file above. But as I use the result from the remote call in the ItemSpecInfo.as actionScript file for the dataProvider in ItemSpecInfo, I cannot have the remote call in ItemSpec.mxml because the component child file will not understand the result got in the parent file. File: itemSpecInfo.mxml mx:Script source=classes/ItemSpecInfo.as/ mx:RemoteObject id=itemDetailController source=gov.bls.ppi.janus.repricing.manageitems.controllers.ItemDetailController showBusyCursor=true mx:method name=getSpecData result=getSpecVOData(event.result) fault=mx.controls.Alert.show(event.fault.faultstring, 'getSpecData() Error') mx:arguments arg1{itemSid}/arg1 arg2{irMonth}/arg2 arg3{monthNo}/arg3 /mx:arguments /mx:method /mx:RemoteObject mx:DataGrid id=columnar_dg height=91 textAlign=left width=524 dataProvider={specData} sortableColumns=false rowHeight=15 headerHeight=14 editable=true initialize=setHeaders() /mx:DataGrid I guess there are 2 options and I wanted to know what would work for me: 1. Are there global variables in Flex so that I can take the result from remote call in a global variable and then use it anywhere -- in my case in the child component? 2. Instead of calling the component in the repeater, stick in the entire code for component ItemSpecInfo inside the repeater. But this is causing problems with my datagrid as I need to indicate which datagrid I am manipulating because my repeater repeats the component 5 times, so I have 5 datagrids displayed. columnar_dg[0].addColumnAt(0, ); -- I need to specify indexes for my datagrid. Any help will be highly appreciated. Thanks in advance, Shweta -- 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 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] Problem with repeater and datagrid -- Please help!
Title: Message So then two mxml files will be accessing the same actionscript. In one mxml, the member is set and the other mxml accesses the member. That might work for me. But can two mxml files access the same actionscript? -Shweta -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mink, JosephSent: Friday, October 14, 2005 1:18 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Problem with repeater and datagrid -- Please help! Or you can create a static actionscript class with a private member. Set that member, and then everyone who accesses the static class will get the same value for that static member: class StaticClass { public static var theValue; } ... StaticClass.theValue = something; ... if (StaticClass.theValue == something) ... Does that help? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish JethaniSent: Friday, October 14, 2005 12:27 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Problem with repeater and datagrid -- Please help! On 10/14/05, Parekh, Shweta - BLS CTR [EMAIL PROTECTED] wrote: 1. Are there global variables in Flex so that I can take the result from remote call in a global variable and then use it anywhere -- in my case in the child component?You can save the result in the application and then refer to it fromchild components using the _expression_ "parentApplication.myResult"(can even bind to it I guess). -- 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 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] Populating values in datagrid from arrays
Hi, I am having problem populating values in my datagrid. From my mxml, I make a remote call to my controller which returns an array of ItemVOs. ItemVO has one-dimensional integer array, containing values for columns in each row in the datagrid. i.e. if my int array in ItemVO1 contains values 1, 2 and array in ItemVO2 contains values 3,4, then my datagrid should display 12 34 Instead the code below displays my datagrid as 1,2 1,2 3,4 3,4 Code: mx:RemoteObject id=itemDetailController source=controllers.ItemDetailController showBusyCursor=true mx:method name=getColSpecData result=result_ColSpecData=event.result mx:arguments arg1{itemSid}/arg1 arg2{irMonth}/arg2 arg3{monthNo}/arg3 /mx:arguments /mx:method /mx:RemoteObject mx:VBox mx:DataGrid id=colSpec_dg width=600 dataProvider={result_ColSpecData} textAlign=left height=250 headerHeight=50 editable=true mx:columns mx:Array mx:DataGridColumn headerText=A columnName=colSpecData width=50 textAlign=left/ mx:DataGridColumn headerText=B columnName=colSpecData width=100 textAlign=left/ /mx:Array /mx:columns /mx:DataGrid mx:FormItem direction=horizontal width=100% height=30 mx:Text text=value: width=90/mx:Spacer height=63/ mx:Text id=tobEffIrm text={itemDetailController.getColSpecData.result[0].colSpecData[0]} width=57/mx:Spacer height=63/ mx:Text id=tobEffIrm1 text={itemDetailController.getColSpecData.result[0].colSpecData[1]} width=57/mx:Spacer height=63/ mx:Text id=tobEffIrm2 text={itemDetailController.getColSpecData.result[1].colSpecData[0]} width=57/mx:Spacer height=63/ mx:Text id=tobEffIrm3 text={itemDetailController.getColSpecData.result[1].colSpecData[1]} width=57/mx:Spacer height=63/ /mx:FormItem If I replace colSpecData with colSpecData[0] and colSpecData[1], datagrid does not show any values. But the text field displays values fine as 1 2 3 4. I fail to understand why the dataprovider in the datagrid does not work with indexes specified. Can anybody please help me with this. Thanks in advance, Shweta Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Populating values in datagrid from arrays
Title: Message Hi, I type casted the result as you have suggested here. But still my datagrid does not display the values. import classes.ItemSpecVO; var itemSpecVO:ItemSpecVO;var myArray:Array;var itemSpecVO1:ItemSpecVO;var specdata_arr; function getdata(result){mx.controls.Alert.show("inside getdata - len"+result.length);myArray= mx.utils.ArrayUtil.toArray(result);itemSpecVO=myArray[0];mx.controls.Alert.show("d0: "+itemSpecVO.colSpecData[0]); -- prints value correctlymx.controls.Alert.show("d1: "+itemSpecVO.colSpecData[1]); -- prints value correctlyitemSpecVO1=myArray[1];mx.controls.Alert.show("d0: "+itemSpecVO1.colSpecData[0]); -- prints value correctlymx.controls.Alert.show("d1: "+itemSpecVO1.colSpecData[1]); -- prints value correctlyspecdata_arr=itemSpecVO.colSpecData[0];specdata_arr=itemSpecVO.colSpecData[1];specdata_arr=itemSpecVO1.colSpecData[0];specdata_arr=itemSpecVO1.colSpecData[1];} mx:RemoteObject id="itemDetailController" source="gov.bls.ppi.janus.repricing.manageitems.controllers.ItemDetailController" showBusyCursor="true"mx:method name="getColSpecData" result="getdata(event.result)" mx:arguments arg1{itemSid}/arg1 arg2{irMonth}/arg2 arg3{monthNo}/arg3/mx:arguments/mx:method/mx:RemoteObject mx:VBox mx:DataGrid id="colSpec_dg" width="600" dataProvider="{specdata_arr}" textAlign="left" height="250" headerHeight="50" editable="true" mx:columns mx:Array mx:DataGridColumn headerText="A" columnName="A" width="50" textAlign="left"/ mx:DataGridColumn headerText="B" columnName="B" width="100" textAlign="left"/ /mx:Array /mx:columns /mx:DataGrid /mx:VBox What could be the problem? Thanks, Shweta -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]Sent: Monday, October 03, 2005 3:06 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Populating values in datagrid from arraysTry casting the result to an Array ... myArray= mx.utils.ArrayUtil.toArray(event.result);It worked for me in a similar case ... "Parekh, Shweta - BLS CTR" To: "'flexcoders@yahoogroups.com'" flexcoders@yahoogroups.com [EMAIL PROTECTED] cc: Sent by: Subject: [flexcoders] Populating values in datagrid from arrays flexcoders@yahoogroups.com 10/03/2005 02:19 PM Please respond to flexcoders Hi,I am having problem populating values in my datagrid. From my mxml, I makearemote call to my controller which returns an array of ItemVOs.ItemVO has one-dimensional integer array, containing values for columns ineach row in the datagrid. i.e. if my int array in ItemVO1 contains values1,2 and array in ItemVO2 contains values 3,4, then my datagrid should display 1 2 3 4Instead the code below displays my datagrid as 1,2 1,2 3,4 3,4Code:mx:RemoteObject id="itemDetailController"source="controllers.ItemDetailController" showBusyCursor="true" mx:method name="getColSpecData"result="result_ColSpecData=event.result" mx:arguments arg1{itemSid}/arg1 arg2{irMonth}/arg2 arg3{monthNo}/arg3 /mx:arguments /mx:method/mx:RemoteObjectmx:VBox mx:DataGrid id="colSpec_dg" width="600"dataProvider="{result_ColSpecData}" textAlign="left" height="250"headerHeight="50" editable="true" mx:columns mx:Array mx:DataGridColumn headerText="A"columnName="colSpecData" width="50" textAlign="left"/ mx:DataGridColumn headerText="B"columnName="colSpecData" width="100" textAlign="left"/ /mx:Array /mx:columns /mx:DataGridmx:FormItem direction="horizontal" width="100%" height="30" mx:Text text="value:" width="90"/mx:Spacer height="63"/ mx:Text id="tobEffIrm"text="{itemDetailController.getColSpecData.result[0].colSpecData[0]}"width="57"/mx:Spacer height="63"/ mx:Text id="tobEffIrm1"text="{itemDetailController.getColSpecData.result[0].colSpecData[1]}"width="57"/mx:Spacer height="63"/ mx:Text id="tobEffIrm2"text="{itemDetailController.getColSpecData.result[1].colSpecData[0]}"width="57"/mx:Spacer height="63"/ mx:Text id="tobEffIrm3"text="{itemDetailController.getColSpecData.result[1].colSpecData[1]}"width="57"/mx:Spacer height="63"//mx:FormItem
[flexcoders] Error deploying flex application to Weblogic server
Hi, I am trying to deploy my flex application in the form of an ear file to WebLogic 8.1 server through the console. While deployment, I get the following error. Strangely when the application is put in applications folder on the server in an exploded format, the application runs fine. The error that I get on deployment is: Aug 22, 2005 4:49:26 PM EDT Error HTTP PAREKH_S-DPPS cgServer ExecuteThread: '3' for queue: 'weblogic.kernel.System' WLS Kernel BEA-101165 Could not load user defined filter in web.xml: flex.bootstrap.BootstrapFilter. javax.servlet.ServletException: flex.server.j2ee.DetectionFilter at flex.bootstrap.BootstrapFilter.init(Ljavax.servlet.FilterConfig(BootstrapFil ter.java:53) at weblogic.servlet.internal.WebAppServletContext$FilterInitAction.run()Ljava.l ang.Object;(WebAppServletContext.java:6745) Also, the weblogic server is not able to preload the flex servlets. I gte the following error for all flex servlets defined in web.xml Aug 22, 2005 5:07:09 PM EDT Error HTTP PAREKH_S-DPPS cgServer ExecuteThread: '1' for queue: 'weblogic.kernel.System' WLS Kernel BEA-101216 Servlet: AMFGatewayServlet failed to preload on startup in Web application: ppi.javax.servlet.ServletException: Unable to load configuration. Reason: nullat weblogic.servlet.internal.ServletStubImpl.createServlet()Ljavax.servlet.Serv let;(ServletStubImpl.java:919) My web.xml for filter and filter-mapping looks like this: filter filter-nameFlexDetectionFilter/filter-name filter-classflex.bootstrap.BootstrapFilter/filter-class init-param param-namefilter.class/param-name param-valueflex.server.j2ee.DetectionFilter/param-value /init-param /filter filter filter-nameFlexCacheFilter/filter-name filter-classflex.bootstrap.BootstrapFilter/filter-class init-param param-namefilter.class/param-name param-valueflex.server.j2ee.cache.CacheFilter/param-value /init-param /filter filter-mapping filter-nameFlexDetectionFilter/filter-name servlet-nameFlexMxmlServlet/servlet-name /filter-mapping filter-mapping filter-nameFlexCacheFilter/filter-name servlet-nameFlexMxmlServlet/servlet-name /filter-mapping filter-mapping filter-nameFlexCacheFilter/filter-name servlet-nameFlexSwfServlet/servlet-name /filter-mapping Can anyone please tell me what I am missing here? Why is it not able to load the filter and why are the servelts not being preloaded? Thanks, Shweta Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hb2it3o/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124830306/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide!/a./font ~- -- 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/