[flexcoders] The processing instruction target matching [xX][mM][lL] is not allowed.
Hi All, I am using Flex Builder 3. When I create a new project using J2EE LCDS and compile the code without doing anything in MXML file. It gives the following error in Problems panel: The processing instruction target matching [xX][mM][lL] is not allowed. Code is:: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute /mx:Application I am trying to use BLAZEDS. Kindly suggest. Thanks, Sanjay Sharma
[flexcoders] ADDED: The processing instruction target matching [xX][mM][lL] is not allowed.
The exact error is: Configuration error encountered on line 1, column 7: 'The processing instruction target matching [xX][mM][lL] is not allowed.' --- In flexcoders@yahoogroups.com, sanjaypmg sanjay...@... wrote: Hi All, I am using Flex Builder 3. When I create a new project using J2EE LCDS and compile the code without doing anything in MXML file. It gives the following error in Problems panel: The processing instruction target matching [xX][mM][lL] is not allowed. Code is:: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute /mx:Application I am trying to use BLAZEDS. Kindly suggest. Thanks, Sanjay Sharma
[flexcoders] Re: Data Grid Issue
Hello Dharmendra, I have done this type of functionality in Flex 2. That functionality was like :: User can select multiple rows on a single click without pressing SHIFT key and when user again click on the selected row it gets deselected. for that functionality I have not override any method. I have just created a method Array as you have done and stored the index of selected row at the respective index of array. thereafter asigned that array to DG's selectedIndices. Cheers Sanjay Sharma --- In flexcoders@yahoogroups.com, Dharmendra Chauhan chauhan_i...@... wrote: Hello, I have designed a custom dataGird which allows user to select multiple row without shift key. that meas user just need to right click the mouse and drag it over the grid. For this I have override mouseOverHandler Function in my dataGrid. override protected function mouseOverHandler(event:MouseEvent):void { var selectedArr:Array = new Array(); if(isMouseDown){ try{ selectedArr = dg.selectedIndices; selectedArr.push(mOver.target.listData.rowIndex); dg.selectedIndices = selectedArr; }catch(e:Error){ } } } Issue wich I have been facing is 'mOver.target.listData.rowIndex' does not consistently return rowIndex ,whenever I move mouse with fast pace 1 ) it throws an error Property listData not found on mx.controls.listClasses.ListBaseContentHolder and there is no default value . 2) Some dataGrid does not dispatch mouseOver as a result mouseUpHandler does get called. I hope you are convinced with observation.Please let me know you have any workAound for the above issue. Regards, Dharmendra
[flexcoders] SpeedoMeter
Hi All, I have create a speedometer in flex. Will you guys help me out to dig this well..? All suggestions are welcome... Thanks in Advance... Sanjay Sharma
[flexcoders] autoSize for Buttons
Hi All, I want my buttons to be adjustable accourding to the text width. but autoSize property is not available for the same. Pls guide me how can I make its width adjustable accordingly? Request you to tell me the various ways to do it. Pls let me know. Thanks in advance. SS
[flexcoders] Re: Working with Session....
Hi, Thanks for your suggesions but I am already doing it in the same way as to store it in javascript variable and pass it using External Interface I am looking the way to access session variables directly from flex.. is there anyway..? thanks, SS --- In flexcoders@yahoogroups.com, Anthony DeBonis [EMAIL PROTECTED] wrote: I am sure there are many ways to make this happen some better then others. -IF values never change once they are logged in then you could pass them in a FlashVars... kinda oldschool but still works - Write them as JavaScript vars on page and read them in, like with at External Interface (http://livedocs.adobe.com/flex/2/langref/flash/external/ExternalInte rfa ce.html) or Flex/AJax bridge - Write a service (jsp or something) that returns the users session vars as XML and just call the service anytime you want to recheck the users current session values.
[flexcoders] Failed to disable shadow of ToolTip...
Hi, I want to remove shadow of the tooltip in my flex screen but failed to do the same... I have used (In MXML file) StyleManager.getStyleDeclaration(ToolTip).setStyle (dropShadowEnabled,false); or StyleManager.getStyleDeclaration(ToolTip).setStyle (dropShadowEnabled,false); (In CSS file) ToolTip { dropShadowEnabled: false; } But It is not working. Can anyone pls do let me know, how can I remove the shadow from the tooltip. Thanks in Advance, Sanjay Sharma MXML file == ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=ShortTimer() mx:Script ![CDATA[ import mx.events.DropdownEvent; import mx.controls.Alert; import mx.events.CloseEvent; import mx.events.ItemClickEvent; import flash.display.Sprite; import flash.events.Event; import flash.events.TimerEvent; import flash.utils.Timer; import mx.controls.ToolTip; [Bindable] public var arr:Array = ['1','2','3','4']; public var minuteTimer:Timer = new Timer (1000, 60); public var counter:int = 1; public var flag:int = 0; public function open(event:Object):void { flag = 1; } public function close(event:Object):void { flag = 0; } public function ShortTimer():void { StyleManager.getStyleDeclaration(ToolTip).setStyle (cornerRadius,0); StyleManager.getStyleDeclaration(ToolTip).setStyle (dropShadowEnabled,false); // creates a new five-second Timer //var minuteTimer:Timer = new Timer(1000, 60); // designates listeners for the interval event and the completion event minuteTimer.addEventListener(TimerEvent.TIMER, onTick); minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete); // starts the timer ticking minuteTimer.start(); } public function onTick(evt:TimerEvent):void { // displays the tick count so far // The target of this event is the Timer instance itself. ComboPos.text=tick + evt.target.currentCount + , + Counter + counter; if(flag == 0) counter++; } public function onTimerComplete(evt:TimerEvent):void { ComboPos.text=Time's Up!; } ]] /mx:Script mx:ComboBox id=myComboBox toolTip=Testing Shaddow text=Select dataProvider={arr} click=open(event) close=close (event) /mx:ComboBox mx:TextArea id=ComboPos x=129 y=42 color=#00/ /mx:Application
[flexcoders] Re: Working with Session....
Ya that's true I can hold the data in flex itself but there are some session variables used by the JSPs in the same application and the same variables are also required in my flex screen to pass as a parameters for various java classes/methods calls. This purpose I need to get the session variables in flex. So pls help to do that.. Thanks, SS --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: True, but the more important question is why you want to access the session? You don't need to. Remember with Flex you are creating an app that will run on the client side and you can hold all the client side data in Flex itself. Dimitrios Gianninas Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Flexing... Sent: Tuesday, May 22, 2007 4:25 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Working with Session If you are using FDS, have a look at flex.messaging.FlexContext On May 22, 2007, at 11:27 AM, sanjaypmg wrote: Hi All, Am using flex with an existing java application here I need to use some session variables so can anyone let me know the followings: 1. How to get the session variables in flex 2.0. 2. How to set the session variables in flex 2.0. 3. How to destroy the session using flex 2.0. Request you all to let me know how can I do the mentioned task.. It would be a great help... thanks in advance SS -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] Working with Session....
Hi All, Am using flex with an existing java application here I need to use some session variables so can anyone let me know the followings: 1. How to get the session variables in flex 2.0. 2. How to set the session variables in flex 2.0. 3. How to destroy the session using flex 2.0. Request you all to let me know how can I do the mentioned task.. It would be a great help... thanks in advance SS
[flexcoders] Re: Tooltip : Charting issues
Jolly, you can use the followings in CSS file: ToolTip { fontFamily: Arial; fontSize: 11; cornerRadius: 0; dropShadowEnabled: false; } you can add more attributes like backgroundcolor, alpha etc. etc. Sanjay --- In flexcoders@yahoogroups.com, Paramjit Jolly [EMAIL PROTECTED] wrote: HI All, Any one checked how to customize the tooltip of graphs like Changing styles i.e font, bgcolor , alpha of bg etc. I can change generic Tooltip of flex but I am not finding any clue for Charting components tool tip customization. Anyone having any clue or sample pls let me know. Thanks Regards Jolly * *** Life Fitness - A Division of Brunswick Corporation #09-02, The Signature, Changi Business Park Central 2, Singapore-486066 (Cell) 65 -96216408 (Tel) 65-62606409 (Fax) 65-62605150 http://www.lifefitness.com http://www.lifefitness.com/ | http://www.brunswick.com http://www.brunswick.com/ * ***
[flexcoders] Can I change DateChooser Style?
Hi All, am using DateChooser in my flex screen.. the defaul format is next previous button with Year and month label... But I want to replace these labels with DropDowns of Year and months respectively. Is it possible to do that if yes, How can I ? Pls give me some hint to get it done... Thanks in Advance, SS
[flexcoders] ToolTip on rollOver on Grid's SCROL bar
Hi All, We have a scrollTipFunction event for dataGrid which show the toolTip when user drags the scrollbar... But here I want this toolTip on rolling move over the scroll bar of the dataGrid. I have done something to get it done but i guess its not a proper solution and facing a lots of problm... Will you pls help me to get it done Thanks in Advance, SS == CODE = ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; initialize=initData(); mx:Script ![CDATA[ import mx.managers.ToolTipManager; import mx.controls.ToolTip; import mx.events.ToolTipEvent; import mx.collections.ArrayCollection; import mx.controls.Alert; import flash.events.MouseEvent; public var myTip:ToolTip; [Bindable] public var authorsDataProvider : ArrayCollection = new ArrayCollection( [ {sNo: 1, Selected: , Country: USA, Gold: 35, Status:Active, URL:http://www.google.com; }, {sNo: 2, Selected: , Country: China, Gold: 32, Status:Deactive,URL:http://www.yahoo.com}, {sNo: 3, Selected: , Country: Russia, Gold: 27,Status:Deactive, URL:http://www.hotmail.com; }, {sNo: 4, Selected: , Country: India, Gold: 12, Status:Active,URL:http://www.gmail.com}, {sNo: 5,Selected: , Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; }, {sNo: 6,Selected: , Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; }, {sNo: 7, Selected: , Country: China, Gold: 32, Status:Deactive,URL:http://www.yahoo.com}, {sNo: 8, Selected: , Country: Russia, Gold: 27,Status:Deactive, URL:http://www.hotmail.com; }, {sNo: 9, Selected: , Country: India, Gold: 12, Status:Active,URL:http://www.gmail.com}, {sNo: 10,Selected: , Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; }, {sNo: 11,Selected: , Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; }, {sNo: 12, Selected: , Country: China, Gold: 32, Status:Deactive,URL:http://www.yahoo.com}, {sNo: 13, Selected: , Country: Russia, Gold: 27,Status:Deactive, URL:http://www.hotmail.com; }, {sNo: 14, Selected: , Country: India, Gold: 12, Status:Active,URL:http://www.gmail.com}, {sNo: 15,Selected: , Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; }, {sNo: 16,Selected: , Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; } ]); // Data initialization. public function initData():void { myDataGrid.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler); } public function mouseOverHandler(eventObj:Event):void { //createTip(); var s:String = X = + myDataGrid.mouseX.toString() +\n Y = + myDataGrid.mouseY.toString(); mPos.text = s; if(myDataGrid.mouseY 150 ){ }else{ ToolTipManager.currentToolTip.text = s; } } ]] /mx:Script mx:Panel title=CheckBox Control Example height=75% width=75% mx:DataGrid allowMultipleSelection=true id=myDataGrid dataProvider={authorsDataProvider} verticalScrollPolicy=on horizontalScrollPolicy=on toolTip= scrollTipFunction= /mx:DataGrid mx:TextArea id=mPos/ /mx:Panel /mx:Application
[flexcoders] Re: HyperLink on Label in PieChart
Hi Ely, Thanks for your suggestions I want one more favour from your side... Can you pls guide me how to do the same? actually i didnt get much information in flex help... So It would be better if you give some hint to get it done... Thanks in Advance, SS --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: There's no built in support for doing this. If I were to try and make this happen, I would probably do it like so: 1) The PieSeries has a property called labelContainer. This is a reference to the flash.display.Sprite that contains all of the labels being displayed by the Series. 2) I would, early in initialization, grab a reference to this Sprite. Add an event listener to the sprite that will get called whenever a child is added to the sprite. 3) Whenever a child gets added, add a click handler to the child. 4) When your click handler gets called, grab the text of the currentTarget of the event. Use this to determine which item in the dataProvider the label refers to. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Monday, April 09, 2007 4:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] HyperLink on Label in PieChart Hi All, I have a pieChart in my application. I have given label postion labelPosition=callout so the label is coming outside pieChart. Let me first tell you one scenario, there are only 2 items one's value is 1 million and another value is 1 only. so the second value is a thin line which is not clearly visible but the label is coming out. Provided the chart items are clickables and some other window is coming with different values based on the itemClick Value. Since a thin line is coming, its very hard to point and click on that thin line... Now here What I want is Can I make the label (The Item name or number is coming out with the pointing line) Clickable? If its so, how can I do the same? Request you to do the same Thanks in Advance, SS
[flexcoders] Flex Installation\Compilation Guidelines for AIX OS
Hi All, I have developed an application for windows... Its working fine everywhere but now I have to make the whole application running on AIX too... Can anyone tell me, how can I do it? I mean What are the steps or some installation guidelines to compile the MXMLs for AIX.. I have already downloaded Flex Data Services 2 Express for AIX from ADOBE.com. I have already Flex Build for Windows, Do I need to download Flex Builder 2 for MAC or other OS? Once I get these sofwares, which steps do I need to follow to make my application working on AIX? Please help to do the same. Thanks in Advance SS
[flexcoders] Re: Flex Installation\Compilation Guidelines for AIX OS
seen sense with their investment in Linux, but the AIX dinosaur rolls on. --- In flexcoders@yahoogroups.com, sanjaypmg sanjaypmg@ wrote: Hi All, I have developed an application for windows... Its working fine everywhere but now I have to make the whole application running on AIX too... Can anyone tell me, how can I do it? I mean What are the steps or some installation guidelines to compile the MXMLs for AIX.. I have already downloaded Flex Data Services 2 Express for AIX from ADOBE.com. I have already Flex Build for Windows, Do I need to download Flex Builder 2 for MAC or other OS? Once I get these sofwares, which steps do I need to follow to make my application working on AIX? Please help to do the same. Thanks in Advance SS
[flexcoders] Re: hand + rollOver
Set buttonMode = true and useHandCursor = true --- In flexcoders@yahoogroups.com, mychemic Carlo Gulliani [EMAIL PROTECTED] wrote: How I can display a hand on rollOver mx:Button ? ___ _ Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. http://answers.yahoo.com/dir/?link=listsid=396545367
[flexcoders] HyperLink on Label in PieChart
Hi All, I have a pieChart in my application. I have given label postion labelPosition=callout so the label is coming outside pieChart. Let me first tell you one scenario, there are only 2 items one's value is 1 million and another value is 1 only. so the second value is a thin line which is not clearly visible but the label is coming out. Provided the chart items are clickables and some other window is coming with different values based on the itemClick Value. Since a thin line is coming, its very hard to point and click on that thin line... Now here What I want is Can I make the label (The Item name or number is coming out with the pointing line) Clickable? If its so, how can I do the same? Request you to do the same Thanks in Advance, SS
[flexcoders] Re: Scroll Tip on Roll Over on scroll bar of a grid
Hi, I have gone through the ScrollControlBase.as but i didnt find any rollOver event.. so can I show a tip on rollover on scroll of a grid Kindly suggest... Thanks in Advance.. Sanjay sharma --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: You'll probably have to add ROLL_OVER handlers to the scrollbar and put up your own tooltip. You can probably borrow a bunch of code from ScrollControlBase.as From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Monday, April 02, 2007 4:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Scroll Tip on Roll Over on scroll bar of a grid Hi All, I have a dataGrid and showing a tool tip on sroll by making showScrollTips=true and calling scrollTipFunction=mainScrollTipFunc.. TIP content is written in the funtion mainScrollTipFunc.. public function mainScrollTipFunc(dir : String, pos: Number):String { var tempTip:String = No of Records: +mainGridDP.length.toString(); return tempTip; } Here, the tip is showing when user presses\drags the scroll bar but I want to show the tip when user rolls over the mouse on scroll bar of the grid. How can I do it? kindly suggest... Thanks in Advance... Sanjay
[flexcoders] Scroll Tip on Roll Over on scroll bar of a grid
Hi All, I have a dataGrid and showing a tool tip on sroll by making showScrollTips=true and calling scrollTipFunction=mainScrollTipFunc.. TIP content is written in the funtion mainScrollTipFunc.. public function mainScrollTipFunc(dir : String, pos: Number):String { var tempTip:String = No of Records: +mainGridDP.length.toString(); return tempTip; } Here, the tip is showing when user presses\drags the scroll bar but I want to show the tip when user rolls over the mouse on scroll bar of the grid. How can I do it? kindly suggest... Thanks in Advance... Sanjay
[flexcoders] Problem in Menu control Example available in FlexBuilder
Hi All, I faced a problem When I was having a look on MenuControl Example available in Flex Builder. The problem is that When I select any of the menu item, the event is called twice... but logically I should be called once... Can anyone tell me why this is happening and how can i stop this by executing the event twice? Pls suggest something.. Thanks in Advance SS ?xml version=1.0? !-- Simple example to demonstrate the PopUpButton control. -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.controls.*; import mx.events.*; private var myMenu:Menu; // Initialize the Menu control, and specify it as the pop up object // of the PopUpButton control. private function initMenu():void { myMenu = new Menu(); var dp:Object = [{label: New Folder}, {label: Sent Items}, {label: Inbox}]; myMenu.dataProvider = dp; myMenu.selectedIndex = 0; myMenu.addEventListener(itemClick, itemClickHandler); popB.popUp = myMenu; popB.label = Put in: + myMenu.dataProvider [myMenu.selectedIndex].label; } // Define the event listener for the Menu control's itemClick event. private function itemClickHandler(event:MenuEvent):void { Alert.show(event.item.label); } ]] /mx:Script mx:Panel title=PopUpButton Control Example height=75% width=75% paddingTop=10 paddingBottom=10 paddingRight=10 paddingLeft=10 mx:Label width=100% color=blue text=Button label contains the name of the last selected menu item. / mx:PopUpButton id=popB label=Edit creationComplete=initMenu(); width=135 / mx:Spacer height=50 / mx:TextInput id=popTypeB / /mx:Panel /mx:Application
[flexcoders] Re: Hiding of datagrid header
Deepa, you can sent showHeaders property of dataGrid to false to hide the header of a grid. Sanjay --- In flexcoders@yahoogroups.com, deepa golamudi [EMAIL PROTECTED] wrote: Hai everybody. Can i get a clue of how can we hide the header of the datagrid control in flex. Thanks in advance Deepa - Here's a new way to find what you're looking for - Yahoo! Answers
[flexcoders] grid header becomes invisible while scroll
Hi All, I am using a grid with 22 columns all are rendered... the problem, I am facing here is that my header becomes invisible when I scroll the grid wethr I scroll vertically/ horizontally... I couldnt find the solution.. kinldy suggest. Thanks in advance... Sanjay
[flexcoders] PopUpButton :: creationComplete is giving ERROR
Hi All, I am using creation complete in my one of the screens where I am attaching a Dynamic menu to PopUpButton. I am using creationComplete event of PopUpButton to initialise that menu once the creation is completed of the popUpButton... but its shows the following error on run time: TypeError: Error #1009: Cannot access a property or method of a null object reference. at ComboPOS/initVal() at ComboPOS/__cboAuthorsStatusFilter_creationComplete() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE ventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/set initialized() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() If I use initialize event, it doesnt init my dynamic menu Can anyone tell me the solution for the same? Appriciate quick response... Thanks in Advance.. Sanjay sharma
[flexcoders] SCROLL for MENU
Hi All, I am using menu in my project but there are a huge number of items to be displayed in menu like 10-15 I want to put vertical scroll to make its height short... Is it possible? How can I do it? Thanks in Advance.. Sanjay
[flexcoders] Re: Line inbetween comboItems
Hi thanks... :) But I am using this combo in a dataGrid headerRenderer and all the items values are unique from the corresponding column. When I replace the combo code with PopUP Menu It doesnt load the menu when i click on the arrow. I dont know y its behaving like dis Pls help me... Thanks in Advance... Sanjay --- In flexcoders@yahoogroups.com, Trevor.Peace [EMAIL PROTECTED] wrote: No custom renderer necessary... Just swap your ComboBox for a MenuBar, and bind it to an array like this one: [Bindable] public var compList : Array = [{label: separating menu options, children: [ {label: ya gotta, type: normal, value: 1}, {label: keep em, type: normal, value: 2}, {type: separator}, {label: separated, type: normal, value: 3} ]}, ]; Peace out... From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Friday, March 23, 2007 10:59 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Line inbetween comboItems Maybe some sort of custom itemRenderer. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Friday, March 23, 2007 2:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Line inbetween comboItems Hi All, I have a combo box in my application and there a lots of items all are related to 4-5 categories.. Wht I wanted to do here I want a seperator sort of line once a category Items are finished I have tried it but didnt get success. Pls suggest, How can i do the same? Thanks in Advance, Sanjay Sharma
[flexcoders] Re: Line inbetween comboItems
Hi, The menu is coming if I run the MXML directly in browser... If I run the see the SWF in my JSP page it doesnt show the menu when I click on the popup button... What could be the problm pls suggest me to make it correct... Thanks in Advace Sanjay --- In flexcoders@yahoogroups.com, sanjaypmg [EMAIL PROTECTED] wrote: Hi thanks... :) But I am using this combo in a dataGrid headerRenderer and all the items values are unique from the corresponding column. When I replace the combo code with PopUP Menu It doesnt load the menu when i click on the arrow. I dont know y its behaving like dis Pls help me... Thanks in Advance... Sanjay --- In flexcoders@yahoogroups.com, Trevor.Peace Trevor.Peace@ wrote: No custom renderer necessary... Just swap your ComboBox for a MenuBar, and bind it to an array like this one: [Bindable] public var compList : Array = [{label: separating menu options, children: [ {label: ya gotta, type: normal, value: 1}, {label: keep em, type: normal, value: 2}, {type: separator}, {label: separated, type: normal, value: 3} ]}, ]; Peace out... From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Friday, March 23, 2007 10:59 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Line inbetween comboItems Maybe some sort of custom itemRenderer. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Friday, March 23, 2007 2:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Line inbetween comboItems Hi All, I have a combo box in my application and there a lots of items all are related to 4-5 categories.. Wht I wanted to do here I want a seperator sort of line once a category Items are finished I have tried it but didnt get success. Pls suggest, How can i do the same? Thanks in Advance, Sanjay Sharma
[flexcoders] DataGrid header paddingTop
Hi All, In my flex screen, there is a dataGrid with rendered headers. To make my header looking good I have given paddingTop=-2... but If I specify paddingTop=-2, vertical alignment of my Data/other rows shifts towards top in other words, which is not vertically in middle.. How can I make the paddingTop=0 for all rows except header? Please do let me knw the solution... Thanks in Advance Sanjay Sharma
[flexcoders] Line inbetween comboItems
Hi All, I have a combo box in my application and there a lots of items all are related to 4-5 categories.. Wht I wanted to do here I want a seperator sort of line once a category Items are finished I have tried it but didnt get success. Pls suggest, How can i do the same? Thanks in Advance, Sanjay Sharma
[flexcoders] Re: Fascinating problem hiding columns in a DataGrid
Hi, I have done the same using remote object but didnt face this sort of problem. I am making the columns visible/invisible on the basis of value coming frm the database... Thanks Sanjay --- In flexcoders@yahoogroups.com, Peter Demling [EMAIL PROTECTED] wrote: While a problem for me, I find the following behavior fascinating and inexplicable; so here's a good challenge for any Flexlock Holmes out there (full code is below - 26 lines, fairly simple): I have a DataGrid that's using a RemoteObject as its dataProvider, and I initialize the 'visible' propery of its first dataGridColumn to false. On startup, this column (labelled Name) is hidden - so far, so good. Next I click my GetData button to invoke the RemoteObject's service, and poof! The column becomes visible - even though the debugger verified that its visible property remains false! So now I click my HideName Button, which forcibly sets the visible property of this Name column to false. The debugger verifies that its false before I click it, and its false after I click it. Still, the column remains visible. So just for the heck of it I click my ShowName Button, which forcibly sets the visible property of the Name column to true. The debugger verifies that the value is changed to true - and as an added bonus, it increases the width of the Name column from 50 to 100! Okay... Finally, I click the HideName Button, and *this* time it works - the Name column is now hidden, having worked only after I forced its visible prpoerty to true immediately beforehand. I can replicate this ad nauseum (calling the RemoteObject service makes the hidden column visible without setting visible to true; forcing the visible value to false works only after forcing it to true), but it only happens when the dataProvider is remoteObject, and the forcing of the visible value only shows the column when done via Buttons (it does not work directly in code right after calling the RemoteObject service). Full code is below. I tracked every single Name column variable through the debugger, and nothing changes, except for visible and width as noted above. I did track down the moment that the ShowName button expands the column width (in Button.as, line 2050, function focusOutHandler), but I don't know enough about Flex yet to know why that would enable column hiding; or why the call to RemoteObject is revealing my invisible column in the first place, for that matter. Started out just wanting to hide some DataGrid columns, but went pretty far down the rabbit hole. Thanks for any input! -Peter Demling Lexington, MA ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:RemoteObject id=srv destination=employees/ mx:DataGrid id=myDataGrid dataProvider={srv.getEmployees.lastResult} mx:columns mx:DataGridColumn visible=false headerText=Name dataField=name / mx:DataGridColumn headerText=Group dataField=group/ /mx:columns /mx:DataGrid mx:Button label=Get Data click=srv.getEmployees(); x=10 y=170/ mx:Button label=Hide name column click=myDataGrid.columns[0].visible=false; y=230 x=10/ mx:Button label=Show name column click=myDataGrid.columns[0].visible=true; y=200 x=10/ /mx:Application
[flexcoders] Re: Show\Hide Column in DataGrid
Hi Harish, I have done that but am still facing some problme in dataGrid.. I have posted my issues regarding dataGrid today and day before yesterday will appreciate if you go through all of them and let me know the solutions. Thanks for your support... Sanjay Sharma --- In flexcoders@yahoogroups.com, Harish Sivaramakrishnan [EMAIL PROTECTED] wrote: do not use the column names, just store the indices of the columns and do datagridInstance.columns[columnIndex].visible= true / false. this is the right way of doing it. On 05 Mar 2007 22:20:28 -0800, sanjaypmg [EMAIL PROTECTED] wrote: Hi All, I am facing an Error while making Grid columns visible\Invisible at runtime. I have made a function showHideColumns in my application which accepts 2 arrays as parameters. One is colNameArr Which has all the column names of GRID and another one is colStatusArr, which has TRUE or FALSE corresponding to that partifular column. When I call the method showHideColumns It is making the column visible\invisible but showing an ERROR also Which is Cannot Create a Property on String. How Can I remove that error? pls suggest me something. the function is given below: ** FUNCTION * public function showHideColumns(colNameArr:Array, colStatusArr:Array):void{ for(var i:int=0; icolStatusArr.length; i++){ this[colNameArr[i]].visible = colStatusArr[i]; } } *** Thanks in Advance, Sanjay Sharma
[flexcoders] Skinning for Grid Header
Hi All, How can I implement skin for header of a dataGrid? Please do let me know Thanks in Advance,, SS
[flexcoders] Re: Combo Skin problem
Hi Juan, I have made it in flash and its working fine I can increase the width its not distorting but Its size is not decreasing after accordingly since I have put its width to 100%... Wht could be the prblm? Please let me know.. Thanks in Advance.. SS --- In flexcoders@yahoogroups.com, scalenine [EMAIL PROTECTED] wrote: Maybe the SWF has scale9 grids set on it and the PNG does not. If the SWF scale9 grids are set a little off they can stretch the graphic. Also, you may want to take a look at the SWF graphics in Flash and break them apart if you brought them in from Illustrator. I was having similar issues with graphics in the themes I made and breaking apart the graphics in Flash definitely helped. Juan scalenine.com --- In flexcoders@yahoogroups.com, sanjaypmg sanjaypmg@ wrote: Hi All, In my project, I have developed Filter functionality in dataGrid using comboBox in the grid headerRenderer. I kept column rezisable true and combo width set to 100% so that if user resizes the column combo shld be adjustable with the column width. one more thing, I have skind the combo using a PNG file. When I resize the column, Combo width is also getting adjusting with the column width but its gettig distorted, I can understatnd since I am using PNG so this shd happen.. But if I replaces this PNG with SWF file, its not getting distorted but when the width of the combo is larger then the Arrow Part is also increasing\decreasing accordingly, which should not be happend. Can anyone suggest me something to make it correct? What I am thinking, Is there any way to skin both the things seperately or fix the down arrow box width constant? Request you to help me.. Thanks in advance, Ss
[flexcoders] Re: Skinning for Grid Header
I have already done it because I want the text in different colors according to the conditions specified. Since I have renderd a few header with Skinned combo boxes and others with Text for differnt colors and alignment the combo skin is with some sort of border and the header randered with text doesnt have any border so its looking so ODD... that's y i wanna this skin also... Kinldy let me know how can I skinn without headerRendarer.. Thanks in Advance... Sanjay --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: One way is to use a custom header renderer. Check out examples and doc on custom itemRenderers. A headerRenderer is basically a custom itemRenderer. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Thursday, March 15, 2007 11:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Skinning for Grid Header Hi All, How can I implement skin for header of a dataGrid? Please do let me know Thanks in Advance,, SS
[flexcoders] Combo Skin problem
Hi All, In my project, I have developed Filter functionality in dataGrid using comboBox in the grid headerRenderer. I kept column rezisable true and combo width set to 100% so that if user resizes the column combo shld be adjustable with the column width. one more thing, I have skind the combo using a PNG file. When I resize the column, Combo width is also getting adjusting with the column width but its gettig distorted, I can understatnd since I am using PNG so this shd happen.. But if I replaces this PNG with SWF file, its not getting distorted but when the width of the combo is larger then the Arrow Part is also increasing\decreasing accordingly, which should not be happend. Can anyone suggest me something to make it correct? What I am thinking, Is there any way to skin both the things seperately or fix the down arrow box width constant? Request you to help me.. Thanks in advance, Ss
[flexcoders] Scroll sycronization between 2 dataGrids and header becomes invisible
Hi All, I have developed filter functionality using dataGrid and combobox usind headerRanderer as it is in the MS Excel. There are 2 dataGrids in my screen and I have given there Drag n Drop between them. Since there are 22 columns in my dataGrid so I have sycronized their scrolls by calling a method on scroll event of the grids and their horizontalScrollPosition with each other like: mainGrid.horizontalScrollPosition = destGrid.horizontalScrollPosition; But sometimes, Its behavior is unrealistic. One more problem, I am facing while scrolling the grid.. as i told you guys I have rendered the header of the main grid.. when I move the scroll bar from left to right or right to left the header text/Combos of the Grid becomes invisible... which makes everything is vain.. Kindly suggest me what to do with these bugs.. Thanks SS
[flexcoders] Show\Hide Column in DataGrid
Hi All, I am facing an Error while making Grid columns visible\Invisible at runtime. I have made a function showHideColumns in my application which accepts 2 arrays as parameters. One is colNameArr Which has all the column names of GRID and another one is colStatusArr, which has TRUE or FALSE corresponding to that partifular column. When I call the method showHideColumns It is making the column visible\invisible but showing an ERROR also Which is Cannot Create a Property on String. How Can I remove that error? pls suggest me something. the function is given below: ** FUNCTION * public function showHideColumns(colNameArr:Array, colStatusArr:Array):void{ for(var i:int=0; icolStatusArr.length; i++){ this[colNameArr[i]].visible = colStatusArr[i]; } } *** Thanks in Advance, Sanjay Sharma
[flexcoders] Re: How Can I save the drawing made at runtime
Thanks to all of you for your suggestions... Sanjay --- In flexcoders@yahoogroups.com, Troy Gilbert [EMAIL PROTECTED] wrote: Tom's suggestion is a decent one if you're looking to save the image in an editable form. If you're wanting to save the image as a GIF/JPG/PNG/etc., then you should search around for the various PNG enconders (I believe Adobe's ascorelib has at least a JPG encoder, maybe a few other formats as well). To turn your shapes into a bitmap, you'll need to use the Bitmap API, in particular BitmapData.draw() to draw the DisplayObjectContainer that serves as the shapes' root (a Canvas or other UIComponent most likely) to a bitmap, use the ascorelib/etc. methods to turn that into a ByteArray of JPG data, then send that to the server which will roundtrip back to the user as a downloadable file (since Flex can't directly save a file to the user's machine). Troy. On 3/5/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 05 Mar 2007, sanjaypmg wrote: I have made a screen where user can draw some SHAPES using graphics class at runtime using . I wanna give a functionality to save that object/drwaings once the it is completed. You could push() each drawing operation and parameters onto an Array as the user draws them. -- Tom Chiverton Helping to carefully benchmark bleeding-edge e-commerce On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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] graphics Class
Hi All, I have drawn some graphical objects on runtime using graphics class in Flex/Flash. I want to save that drawing in my local hardisk or some other location. How can I do that? pls give me some hint. Or Is there anyway to export a JPG, GIF or PNG etc..? Kinldy help me out. Thanks in Advace, SS
[flexcoders] How Can I save the drawing made at runtime
Hi All, I have made a screen where user can draw some SHAPES using graphics class at runtime using . I wanna give a functionality to save that object/drwaings once the it is completed. And He/She can open it whenever he/she wants. How can I save that objects? or Is there anyway to export those objects as JPG, GIF or PNG, etc..? Pls help me to do this.. Thanks in Advance, SS
[flexcoders] Re: Can anyone help on getting data from a grid cell .. I know the row/column index
Hi Sean, you can do it by calling a method on itemClick of a dataGrid. in this method you'll get the selected row of your Grid. thereafter you can access any particular cell's value by specifying dataField name like: evt.target.selectedItem.DataFieldNAME; -- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Is it possible ? Sean. --- In flexcoders@yahoogroups.com, helihobby helihobby@ wrote: Hello, Can anyone help out ... I know the Data Grid Cell's Row and Colum Index. How can I retrieve the data in that cell if I know these two values ? Thank you, Sean.
[flexcoders] problem in getting value of an editable ComboBox
Hi, I have an editable combo on my flex screen. I have entered some text in combo's editable area. but I am not able to get that value using ComboboxID.selectedID or ComboboxID.text. How can I get that value... Pls help me Thanks in advance Sanjay
[flexcoders] Re: problem in getting value of an editable ComboBox
Hey, I got the solution by using .value property, I got the value. thanks Sanjay --- In flexcoders@yahoogroups.com, sanjaypmg [EMAIL PROTECTED] wrote: Hi, I have an editable combo on my flex screen. I have entered some text in combo's editable area. but I am not able to get that value using ComboboxID.selectedID or ComboboxID.text. How can I get that value... Pls help me Thanks in advance Sanjay
[flexcoders] DataGrid Columns Printing???
Hi All, I have a huge data in my dataGrid like 22 Columns and thousands of rows. I want to print all the data, even I tried using PrintDataGrid. I prints all rows but it fails to print all the columns. I prints only the columns which fit in a single pagebut I want to print rest columns too... How can I squese all the columns or adjust the font size so that each column can be printed with proper data? Pls kindly tell me the solutions It would be a great help for me.. Thanks a lot.. Sanjay sharma
[flexcoders] DataGrid Header Center Align??
Hi, How can I center align header text of a DataGrid? Thanks, Sanjay
[flexcoders] Google Map API Flex2.0 Integration??
Hi All, How can I integrate google map API with Flex? Has anybody done it? Please send your Comments\Ideas to get it done. Thanks in Advance, Sanjay
[flexcoders] How to get\set the sort status of a Grid Column
Hi All, I have a Data Grid with various columns. I have sorted the data by clicking on a specified column's header. How can I get the name of that purticular column name which has sorted and its sorting way (Ascending\Decending) programatically? In return, I need to set (implement) the same to a dataGrid. how can I do it...? Pls help me... Thanks in advance. Sanjay
[flexcoders] Array Collection Column Value
Hi, I have an ArrayCollection with various columns. I need to populate different combos using this array collection columns. I have a method where I am passing only column name as a parameter like: public function initArra(curColName:String):void{ var totalLen:int = tempArrCol.length; Alert.show(tempArrCol.toString()) for(var i:int =0; itotalLen; i++){ var t:String = this[tempArrCol[+i+].Gold]//+this[curColName] listArray.push(t); //t = tempArrCol[i].curColName; comboBoxes_curColName.dataProvider = listArray; Alert.show(t) } } But here I am not able to get the list of ArrayCollection using this []. How can I get the list of the respected columns? Pls suggest. Thanks in advance.. Sanjay sharma
[flexcoders] DataGrid Header Randar Example......
Hi All, I was looking into DataGrid Example from FB's Help of rendaring a header. I have used TextArea to display ColIndex in each corresponding header, which is working fine. Here, I want to display a combobox with unique value of that purticular coloumn. When I changed TextArea to ComboBox and compiled, It doesnt show anything on the screen. Can anyone tell me, Why? If I use HBox in place of TextArea and add ComboBox inside HBox, Combobox appears on the screen but it doesnt listData as it is a public property of TextArea. How can I get the dataField Name of Randared column? Or Is there any other way to rendar a grid header to populate the combobox with using column value? Please help me to resolve this issue. Thanks, Sanjay sharma = GridHeaderRendar.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:local=* xmlns:gridCode=* mx:Script ![CDATA[ import mx.collections.*; [Bindable] public var authorsDataProvider : ArrayCollection = new ArrayCollection( [ {sNo: 1, Selected: , Country: USA, Gold: 35, Status:Active, URL:http://www.google.com; }, {sNo: 2, Selected: , Country: China, Gold: 32, Status:Deactive,URL:http://www.yahoo.com}, {sNo: 3, Selected: , Country: Russia, Gold: 27,Status:Deactive, URL:http://www.hotmail.com; }, {sNo: 4, Selected: , Country: India, Gold: 12, Status:Active,URL:http://www.gmail.com}, {sNo: 5,Selected: , Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; } ]); ]] /mx:Script mx:Panel title=Header Filter width=700 height=400 !-- gridCode:gridCode dataProvider={authorsDataProvider} / -- mx:DataGrid id=grid width=100% height=300 dataProvider={authorsDataProvider} mx:columns mx:DataGridColumn id=sNo headerText=Serial Number dataField=sNo headerRenderer=testCombo / mx:DataGridColumn id=Selected headerText=Selected Item itemRenderer=MyContactEditable headerRenderer=testCombo dataField=Selected / mx:DataGridColumn id=Country headerText=Country name dataField=Country headerRenderer=testCombo / mx:DataGridColumn id=Status width=300 headerText=Status dataField=Status headerRenderer=testCombo sortable=false/ mx:DataGridColumn id=Gold headerText=Gold dataField=Gold / /mx:columns /mx:DataGrid /mx:Panel /mx:Application testCombo.mxml (withTextArea) = ?xml version=1.0? mx:TextArea xmlns:mx=http://www.adobe.com/2006/mxml; preinitialize =initTA(); mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridListData; public function initTA():void { var myListData:DataGridListData = DataGridListData (listData); text=row Name: + String(myListData.dataField) } ]] /mx:Script /mx:TextArea testCombo.mxml (with ComboBox) = ?xml version=1.0? mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml; preinitialize =initTA(); mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridListData; public function initTA():void { var myListData:DataGridListData = DataGridListData (listData); //text=row Name: + String(myListData.dataField) } ]] /mx:Script /mx:ComboBox testCombo.mxml (with HBox) = ?xml version=1.0? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; preinitialize =initTA(); mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridListData; public function initTA():void { var myListData:DataGridListData = DataGridListData (listData); //text=row Name: + String(myListData.dataField) } ]] /mx:Script mx:ComboBox id=te / /mx:HBox
[flexcoders] Any Idea to build such an application
Hi All, I want to know how can I build an application like: http://plasma.nationalgeographic.com/mapmachine/index.html#theme=Street c=0|0sf=190728987.993139 All Ideas are welcome here, Please go ahead.. Thanks, Sanjay sharma
[flexcoders] Show/Hide Column of Grid using Context Menu
Hi all, Am making a function of show/hide column of dataGrid using Context Menu. Contextmenu comes when user clicks right button of mouse on header. I have made a mxml component and added in headerRender of the dataGrid Column. But when I click on my hide column button of context menu it doesnt hide my clickd coloum. Here in case of Filter in my files, If I enable sorting of the same column, it overrides my filter functionality. can anyone let me know the solution of it? In testCombo.mxml, currently I have populated Combo box using hardcoded array. I want to populate this array dynamically so that I can use the same file for multiple filters. Kindly do let me know how can I populate combo box dynamically? I am atteching my code pls have a look n help me. Thanks in Advance, Sanjay sharma File # 1 contMenuOnGrid.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute initialize=doInit() xmlns:local=* xmlns:gridCode=* mx:Script ![CDATA[ import mx.controls.Alert; import mx.collections.*; public var filterVar:String; [Bindable] public var authorsDataProvider : ArrayCollection = new ArrayCollection( [ { Selection: , Country: USA, Gold: 35, Status:Active, URL:http://www.google.com; }, { Selection: , Country: China, Gold: 32, Status:Deactive,URL:http://www.yahoo.com}, { Selection: , Country: Russia, Gold: 27,Status:Deactive, URL:http://www.hotmail.com; }, { Selection: , Country: India, Gold: 12, Status:Active,URL:http://www.gmail.com}, {Selection: , Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; }, {Selection: , Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; }, { Selection: , Country: China, Gold: 32, Status:Deactive,URL:http://www.yahoo.com}, { Selection: , Country: Russia, Gold: 27,Status:Deactive, URL:http://www.hotmail.com; }, { Selection: , Country: India, Gold: 12, Status:Active,URL:http://www.gmail.com}, {Selection: , Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; }, {Selection: , Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; }, { Selection: , Country: China, Gold: 32, Status:Deactive,URL:http://www.yahoo.com}, { Selection: , Country: Russia, Gold: 27,Status:Deactive, URL:http://www.hotmail.com; }, { Selection: , Country: India, Gold: 12, Status:Active,URL:http://www.gmail.com}, {Selection: , Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; }, {Selection: , Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; } ]); public function doInit():void{ /*var gridSnippet:gridCode = null; gridSnippet = new gridCode(); gridSnippet.addEventListener( gridCode.HIDE_COLUMN, hideCol ); addChild(gridSnippet); gridSnippet.visible = false;*/ } public function filterFnc(item:Object):Boolean { return item.Gold == 27 ; } public function filterFnc1(item:Object):Boolean { //Alert.show(item: +item.toString ()); //Alert.show(item.Gold.toString()) return item.Status == Deactive ; } public function hideCol( event:Event ):void { Alert.show(hideCol) } ]] /mx:Script mx:Panel title=Header Filter width=100% height=100% gridCode:gridCode dataProvider={authorsDataProvider} / /mx:Panel /mx:Application File # 2 gridCode.mxml ?xml version=1.0 encoding=utf-8? mx:DataGrid xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.core.UIComponent; import mx.controls.Alert; import mx.events.DataGridEvent; public var curColumn:String; public function showColumn( event:Event ):void { Alert.show(showColumn); Selection.visible = true; Country.visible = true; Status.visible = true; Gold.visible = true; } private function headerPressed (evt:DataGridEvent):void{ curColumn = evt.dataField;
[flexcoders] Re: Adding columns in DataGrid dynamically
Hi have done it by giving an id to the colum and sets its visible property to hide/show that purticular column. Thank, Sanjay --- In flexcoders@yahoogroups.com, Jeff Tapper [EMAIL PROTECTED] wrote: something like this should work (note, this code is off the top of my head and not tested) var colArray:Array = dg.columns; // remove column 3 var newColArray = colArray.splice(3,1); dg.columns = newColArray; At 12:00 PM 2/4/2007, sanjaypmg wrote: Hi, How can I delete a colum dynamicall? Thanks Sanjay --- In mailto:flexcoders% 40yahoogroups.comflexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: You can reassign the grid's columns property to accomplish this. Array methods like push don't emit the events necessary for the component to detect that the array has changed, thus the component will not update. Try: public function populateData() { // code snipped var newCols: Array = []; newCols.push(new DataGridColumn(col1)); newCols.push(new DataGridColumn(col2)); dataGrid_columns = dataGrid_columns.concat(newCols); ... Reassigning dataGrid_columns to the new Array returned by the concat () method ought to be detected by the component and cause it to update. --- In mailto:flexcoders% 40yahoogroups.comflexcoders@yahoogroups.com, Paul Neyman paul@ wrote: Is it possible to add DataGrid columns dynamically, after DataGrid has been initialized? I have the following scenario: User loads swf file with DataGrid component in it, and passes a url as parameter. ActionScript code makes an HttpRequest call to this url, receives Xml data, parses it into columns and displays it in the DataGrid. I do not know in advance, how many columns there will be. I tried to make 'columns' array bindable and add instances of DataGridColumn into it on the fly, but that has no effect on the DataGrid. While DataGrid is able to figure out itself, how many columns there are in a data provider, it sorts them in alphabetical order. I need to set my own order. Here's a code snippet: MXML: mx:DataGrid dataProvider={dataGrid_data} id = m_dataGrid columns={dataGrid_columns} initialize=makeCall () /mx:DataGrid mx:script [Bindable] public var dataGrid_data:ArrayCollection = new ArrayCollection(); [Bindable] public var dataGrid_columns:Array = new Array(); public function makeCall() { // code snipped ... populateData(dataGrid_data, dataGrid_columns); // code snipped } public function populateData() { // code snipped dataGrid_columns.push(new DataGridColumn(col1)); dataGrid_columns.push(new DataGridColumn(col2)); ... // add data to provider } While provider works perfectly, columns array does not affect the DataGrid at all. Is there any workaround for this? Thanks a lot. Jeff Tapper Founding Partner Tapper, Nimer and Associates Inc. [EMAIL PROTECTED] (718) 576-1775
[flexcoders] dropEnabled property of Image tag?
Hi, I have embd a trash image in the image tag. I want to drop a datagrid item over this trash image to delete it from the grid. But I didnt find dropEnabled property of Image tag. how can I do it? please suggest.. Thanks for support. Sanjay
[flexcoders] is there any other process?
Hi, I have a question regarding flex builder. Is there any to compile MXML file using command prompt as we do to compile JAVA file?? Pls suggest. regards, sanjay
[flexcoders] Re: Filters with DataGrid - Excel
, Deactive, Deleted]; public function init():void{ addEventListener(initialize, handleDataChanged); } public function handleDataChanged (event:Event):void { //var ttext:String =row index: + String(myListData.rowIndex) + column index: + String(myListData.columnIndex); //Alert.show(ttext:: +myListData); } public function changeCombo():void{ //Alert.show(changeCombo:: ); parentDocument.authorsDataProvider.filterFunction = filterFnc; parentDocument.authorsDataProvider.refresh(); //var testData:ListData = ListData (parentDocument.listData); } public function filterFnc(item:Object):Boolean { //Alert.show(item: +item.toString ()); //Alert.show(item.Gold.toString()) return item.Status == cboAuthorsStatusFilter.selectedItem ; } ]] /mx:Script mx:ComboBox width=100% id=cboAuthorsStatusFilter dataProvider={statusArray} change=changeCombo() / mx:Label id=headLabel text={cboAuthorsStatusFilter.selectedItem} / /mx:HBox --- In flexcoders@yahoogroups.com, sanjaypmg [EMAIL PROTECTED] wrote: Hi, I have tried to get column index in my testCombo.mxml by importing mx.controls.dataGridClasses.DataGridListData But I am not able to get column index or column name. Could anyone please help me? so that i can complete the task and populate code for all. Thanks, Sanjay sharma --- In flexcoders@yahoogroups.com, phipzkillah pkrasko@ wrote: Sanjay, Did you have any luck converting the DG Header Filter cell renderer to Flex 2.0? These are the cons that were posted with the code snippet: CONS 1) you must maintain the same dataProvider. 2) sorting is no good. you might want to re-sort after a filter is done (but providing events and what not are still something I need to provide, probable a modelChanged event utilizing the eventName 'filter' There is still a lot to do for this renderer to make it more usable, but I figure I've gotten everyone to a dropping off point it shouldn't be too hard. As I progress with this I'll post more to this thread # I'm not sure exactly what you are trying to do. Do you just simply want a combo-box that you select a field in the list and have it sort the datagrid? If so I believe you need to use an ArrayList collection for your dataprovider. The link that I gave you earlier seems like it would be the best for filtering a datagrid as you would be able to filter on each field/column by clicking on the header and selecting an item - which is exactly what Excel does. If you were able to convert that datagrid header filter cell renderer to Flex 2.0 can you please post the source up here? -Phil --- In flexcoders@yahoogroups.com, sanjaypmg sanjaypmg@ wrote: Hi, I have tried it but facing a problem when I try to access DataCollection from another MXML testCombo.mxml. Please Suggest::: See the following Code: filterTest.mxml ?xml version=1.0 ? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=../* mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.core.ClassFactory; public var object2:Object = new Object(); public var object:Object = new Object(); [Bindable] [Bindable] public var authorsDataProvider : ArrayCollection = new ArrayCollection( [ { Country: USA, Gold: 35, Status:Active, URL:http://www.google.com; }, { Country: China, Gold: 32, Status:Deactive,URL:http://www.yahoo.com}, { Country: Russia, Gold: 27,Status:Deactive, URL:http://www.hotmail.com; }, { Country: India, Gold: 12, Status:Active,URL:http://www.gmail.com}, {Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; }, {Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; } ]); ]] /mx:Script mx:Panel title=Header Filter width=100% height=100% mx:DataGrid id=grid dataProvider={authorsDataProvider} width=100% height=100% sortableColumns=false mx:columns mx:Array mx:DataGridColumn width=300 headerText=Country dataField=Country / mx:DataGridColumn width=300 headerText=Value dataField=Gold
[flexcoders] functionality to open n close a panel?
Hi All, Please hav a look on the following mentioned URL: http://www.asfusion.com/apps/homelocator/ There is a panel on the right hand side with MAP which have been created using Yahoo API... there is one more panel on the same with SrollBar. this panel has an pointed arrow in the middle of the scroll bar. When you click on this left pointed arrow, a panel opens and left poninted arrow converts to right pointd arrow. when you click on the right pointed arrow, the same panel closes and right pointed arrow changes to left pointed arrow. I want to create the same panel in my flex application... Can anyone help me to create the same feature or if someone has the same example, can he/she share the same with this group? It would be a great help... thanks, Sanjay sharma
[flexcoders] Re: functionality to open n close a panel?
Thanks PS. Sanjay --- In flexcoders@yahoogroups.com, learner [EMAIL PROTECTED] wrote: try this : mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Resize id=expand target={img} heightTo=350/ mx:Resize id=contract target={img} heightTo=60/ mx:Panel title=Resize Effect Example width=534 height=350 paddingTop=10 paddingLeft=10 paddingRight=10 paddingBottom=10 id=img /mx:Panel mx:Button label=Expand click=expand.end(); expand.play ();/ mx:Button label=Contract click=contract.end(); contract.play();/ /mx:Application Regards, Ps On 2/6/07, sanjaypmg [EMAIL PROTECTED] wrote: Hi All, Please hav a look on the following mentioned URL: http://www.asfusion.com/apps/homelocator/ There is a panel on the right hand side with MAP which have been created using Yahoo API... there is one more panel on the same with SrollBar. this panel has an pointed arrow in the middle of the scroll bar. When you click on this left pointed arrow, a panel opens and left poninted arrow converts to right pointd arrow. when you click on the right pointed arrow, the same panel closes and right pointed arrow changes to left pointed arrow. I want to create the same panel in my flex application... Can anyone help me to create the same feature or if someone has the same example, can he/she share the same with this group? It would be a great help... thanks, Sanjay sharma
[flexcoders] Re: functionality to open n close a panel?
Ya, I have made it but i want the same functionality as its shown in the url. I want to open that panel over a dataGrid so that i can provider filter option under this extendible panel. Pls Suggest something.. Thanks Sanjay --- In flexcoders@yahoogroups.com, sanjaypmg [EMAIL PROTECTED] wrote: Thanks PS. Sanjay --- In flexcoders@yahoogroups.com, learner peacocksea@ wrote: try this : mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Resize id=expand target={img} heightTo=350/ mx:Resize id=contract target={img} heightTo=60/ mx:Panel title=Resize Effect Example width=534 height=350 paddingTop=10 paddingLeft=10 paddingRight=10 paddingBottom=10 id=img /mx:Panel mx:Button label=Expand click=expand.end(); expand.play ();/ mx:Button label=Contract click=contract.end(); contract.play();/ /mx:Application Regards, Ps On 2/6/07, sanjaypmg sanjaypmg@ wrote: Hi All, Please hav a look on the following mentioned URL: http://www.asfusion.com/apps/homelocator/ There is a panel on the right hand side with MAP which have been created using Yahoo API... there is one more panel on the same with SrollBar. this panel has an pointed arrow in the middle of the scroll bar. When you click on this left pointed arrow, a panel opens and left poninted arrow converts to right pointd arrow. when you click on the right pointed arrow, the same panel closes and right pointed arrow changes to left pointed arrow. I want to create the same panel in my flex application... Can anyone help me to create the same feature or if someone has the same example, can he/she share the same with this group? It would be a great help... thanks, Sanjay sharma
[flexcoders] Re: Adding columns in DataGrid dynamically
Hi, How can I delete a colum dynamicall? Thanks Sanjay --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: You can reassign the grid's columns property to accomplish this. Array methods like push don't emit the events necessary for the component to detect that the array has changed, thus the component will not update. Try: public function populateData() { // code snipped var newCols: Array = []; newCols.push(new DataGridColumn(col1)); newCols.push(new DataGridColumn(col2)); dataGrid_columns = dataGrid_columns.concat(newCols); ... Reassigning dataGrid_columns to the new Array returned by the concat () method ought to be detected by the component and cause it to update. --- In flexcoders@yahoogroups.com, Paul Neyman paul@ wrote: Is it possible to add DataGrid columns dynamically, after DataGrid has been initialized? I have the following scenario: User loads swf file with DataGrid component in it, and passes a url as parameter. ActionScript code makes an HttpRequest call to this url, receives Xml data, parses it into columns and displays it in the DataGrid. I do not know in advance, how many columns there will be. I tried to make 'columns' array bindable and add instances of DataGridColumn into it on the fly, but that has no effect on the DataGrid. While DataGrid is able to figure out itself, how many columns there are in a data provider, it sorts them in alphabetical order. I need to set my own order. Here's a code snippet: MXML: mx:DataGrid dataProvider={dataGrid_data} id = m_dataGrid columns={dataGrid_columns} initialize=makeCall () /mx:DataGrid mx:script [Bindable] public var dataGrid_data:ArrayCollection = new ArrayCollection(); [Bindable] public var dataGrid_columns:Array = new Array(); public function makeCall() { // code snipped ... populateData(dataGrid_data, dataGrid_columns); // code snipped } public function populateData() { // code snipped dataGrid_columns.push(new DataGridColumn(col1)); dataGrid_columns.push(new DataGridColumn(col2)); ... // add data to provider } While provider works perfectly, columns array does not affect the DataGrid at all. Is there any workaround for this? Thanks a lot.
[flexcoders] Re: Non-Clustered CPU, Clustered, Distributed and Mirroring Environment????
Hi Matt, Thanks a lot for your response. but I am still expecting more description for the same Thanks sanjay --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Assuming you have multiple CPUs (non-virtual) running FDS for the same application, in all of those scenarios you still need a license per-CPU. The only scenario where you do not need a license is where FDS is running on one CPU (and it can support as many applications as you like). If you were to have separate applications (and application here means business purpose application, not necessarily Flex application) you could even have one FDS CPU per application. However, I consider this scenario unlikely for a business, but more possible for personal use. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Friday, February 02, 2007 2:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Non-Clustered CPU, Clustered, Distributed and Mirroring Environment Hi All, We need to install an application where a number of screens are developed using FLEX. We could have different environment-setups in which the application may be deployed and need to know in what scenarios we will have to get separate licences of FLEX DATA SERVICES for application deployment and maintenance (Would be of great help if someone could explain the difference in all the four environment settings) : 1. Non-Clustered CPU environment 2. Clustered Environment 3. Distributed Environment 4. Mirroring Environment All help would be appreciated. Thanks Sanjay
[flexcoders] Clusterd NonClustered CPU
Hi Group, Can anyone tell me the difference between Clustered and Non-Clustered CPU in terms of Flex Data Services (FDS) license? Thanks in Advance... Sanjay Sharma
[flexcoders] Clustered and Non-Clustered CPU
Hi Group, Can anyone tell me the difference between Clustered and Non-Clustered CPU in terms of Flex Data Services (FDS) license? Thanks in Advance... Sanjay Sharma
[flexcoders] Non-Clustered CPU, Clustered, Distributed and Mirroring Environment????
Hi All, We need to install an application where a number of screens are developed using FLEX. We could have different environment-setups in which the application may be deployed and need to know in what scenarios we will have to get separate licences of FLEX DATA SERVICES for application deployment and maintenance (Would be of great help if someone could explain the difference in all the four environment settings) : 1. Non-Clustered CPU environment 2. Clustered Environment 3. Distributed Environment 4. Mirroring Environment All help would be appreciated. Thanks Sanjay
[flexcoders] Re: (Added ) Selecting datagrid row on rollover...
Hey Jamie, Sorry to inturupt... I wanna add one more thing here whch i faced... I want to select multiple rows in a DataGrid without pressing Ctrl button. Is there anyway to do it? Thanks Sanjay --- In flexcoders@yahoogroups.com, jamiebadman [EMAIL PROTECTED] wrote: Hi, The title sums it up... basically, I'd like to select a datagrid row on rollover. There's a rollover event on the datagrid but I see no way from that, to obtain the id of the row that's currently being 'rolled over'... any ideas ? Alternatively... and here's the reason I'm trying to do the above... I have a context menu on the datagrid which provides the user with options to carry out on the currently 'rolled over' row... but when the user clicks the right mouse button, the 'rollover' color disappears. I want the rollover color to remain when the menu pops up. My only solution was to force the rollover row to be the selected row - which would solve this. If anyone can think of an alternative way to stop the loss of the rollover color then that'll be just as good ;- ) Thanks, Jamie.
[flexcoders] Re: PIVOT TABLE and CHART
I am trying to do this. --- In flexcoders@yahoogroups.com, leds usop [EMAIL PROTECTED] wrote: Hi everyone, BEfore we proceed with implementing pivot table (of MS excel -- same functionality although not necessarily with drag and drop support) in Flex, we wanna know if someone else in this group has already done this( or is currently doing this)? Care to share notes, tips, etc? Any help will be appreciated. Thnx! _ ___ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
[flexcoders] Re: Flash simple question
Hi Olivier, SWF is stored at the Local Settings\Temporary Internet Files folders of your workstation. Thanks, Sanjay --- In flexcoders@yahoogroups.com, Stembert Olivier \(BIL\) [EMAIL PROTECTED] wrote: Hi all, When a swf file is downloaded to my computer, where is it stored? I mean where on the file system? Thanks Olivier - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. -
[flexcoders] Result from webservice?
Hi, I am using webservices to get data. I have made a simple webservice in Java which returns a simple Hello world and called it in flex in return I am not getting it by using result.target.toString(); I can display the result by using messaging as an XML Item. Please tell me is there any alternate or simple way to show the return value? Thanks, Sanjay
[flexcoders] Re: Could it really take so much code to color a row in a DataGrid..?
Hi Paul, You can color DataGrid Rows by using the following: DataGrid { alternatingItemColors: #00, #cc66cc; } Thanks, Sanjay --- In flexcoders@yahoogroups.com, paulwelling [EMAIL PROTECTED] wrote: Hello, I'm sure I've missed it, but is there a straight forward way to color the background of a DataGrid row..? Thanks for the info, Paul
[flexcoders] DataGrid Column width Resizing
Hi All, I have two major issues with DataGrid. Please help to come out First Column Width I am not able get the width of datagrid's column. I need to store the width of each column of a datagrd in database and resize each column everytime it loads on the basis of value stored in the database. Second Column ReOrder Lets say user changed the order of dataGrid. I want to save this order in database but this order should be user specific i.e users can save their order and see the same what they have changed last time. Since it should be user specific, so I cant save arrayCollection again n again for each user. How can I implement these functionalies in my project. Kindly help. Thanks, Sanjay sharma
[flexcoders] remove FDS from existing application
Hi All, I have an application in which I have used RO with FDS2. I have deployed this flex 2 using the instructions available on Adobe's website. I have copied Flex Folder in WEB-INF folder and copy the JARs to the relevent folders. Now I want to remove Flex Data Services from the application. Can anyone tell me how can i do the same? It would be a great help. Thanks, Sanjay sharma
[flexcoders] Difference Between FDS and Flex SDK
Hi, Can anyone tell me the main differences between Flex Data Services (FDS) and Flex SDK? And I have one more question, Can I connect to Remote Object without FDS? Please clearify my doubts. Thanks, Sanjay Sharma
[flexcoders] Flex SDK configuration with JBoss?
Hi All, How can I configure Flex SDK with JBoss server? Is it the same as I configured Flex with JBoss or something different? Please do tell me. thanks, Sanjay sharma
[flexcoders] multiple Selection in DataGrid?
Hi Dude.. Is it possible to selected multiple rows in DataGrid? How can I do that? Regards, Sanjay Sharma
[flexcoders] Re: Application without FDS?
Thanks everybody thanks for your support... If you have more to say, your most welcome...:) Thanks to all Sanjay --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 18 January 2007 05:38, sanjaypmg wrote: If yes, How can I call my java's remote object? Yes, as a web service. -- Tom Chiverton Helping to evangelistically seize eligible m-commerce This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: multiple Selection in DataGrid?
Thanks to all... :) Sanjay --- In flexcoders@yahoogroups.com, David Harris [EMAIL PROTECTED] wrote: you'd be after the 'allowMultipleSelection=true ' attribute I'd be guessing... On 1/19/07, sanjaypmg [EMAIL PROTECTED] wrote: Hi Dude.. Is it possible to selected multiple rows in DataGrid? How can I do that? Regards, Sanjay Sharma
[flexcoders] Re: Application without FDS?
Thanks Benjamin and group, XML solution seems good but If the data is large in size, it would take time to create XML then more time will also be taken by flex to parse those XMLs, isnt It? Do you have some idea how can i use Java's webservices in flex? I have used webservices developed in Coldfusion but I dont have any idea of using same developed in java. Waiting for response.. Thanks, Sanjay sharma --- In flexcoders@yahoogroups.com, whitelines81 [EMAIL PROTECTED] wrote: Hi Sanjay (and group), I've just started using Flex with Java and did not want to start using FDS, simply because clustering is something we require and currently cannot take the 20K+ licensing fees. We've developed a solution with actionscript and a servlet that does compressed xml back and forth (binary over the wire) and was wondering what the community's interest would be? We are looking at creating a more robust version and releasing it possibly open source. Any ideas? Many thanks, Benjamin Benjamin Ranck Senior Technologist --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: ...flex without FDS... reduced cost and complexity. ..create XMLs at the runtime... this will take some server side code. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Thursday, January 18, 2007 1:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Application without FDS? Thanks David, We have existing application developed in Struts and UI is in JSP... Client just wants to change the UI of a few screens only without using FDS. Is there only way to create XMLs at the runtime? as you have suggested... What are the advantages and disadvantages of creating application in flex without FDS? Thanks in advance.. Sanjay Sharma --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , David Mendels dmendels@ wrote: Hello, FDS is not required. Use the SDK and/or Flex Builder and go for it! Connect to your back end using just XML over HTTP. This is a fine approach for many use cases. FDS offers additional value in a number of areas, in particular: * Remoting--simplifies programming model and higher performance protocal for connecting to Java obects on server (performance benefit it material for larger data sets, immaterial for trivial amounts of data.) * Messaging--connect to JMS or other messaging service, push and real time data to client * Data Service--page data, synch data More info on FDS available on www.adobe.com HTH, David Adobe From: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of sanjaypmg Sent: Thursday, January 18, 2007 12:39 AM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Application without FDS? Hi, I have a general question for all Can I make application with FDS? If yes, How can I call my java's remote object? If No, Can you please tell me? Why cannt I make application in flex without FDS? Thanks, Sanjay Sharma
[flexcoders] Re: How can I do to add a background color for datagrid header?
Zedan, you can change background and header color of dataGrid by using the following in css: DataGrid { backgroundAlpha: 0.5; backgroundColor: #cc; headerColors: #ffcc00, #ff9900; } Regards, Sanjay --- In flexcoders@yahoogroups.com, zedan_gu [EMAIL PROTECTED] wrote: Igor Costa, thanks for help, but I just want to set the column header's bgcolor which user clicks, no the datagrid bgcolor, other help? Thanks --- In flexcoders@yahoogroups.com, Igor Costa igorcosta@ wrote: Zedan I suggest you to take a look at the Flex cookbook, If I'm not wrong already has a solution for that. But if Not, just take a look at the Flex Style Explore and use the Class of StyleManager to do that. for example: public function setHeaderBack():void { myGrid.setStyle(backgroundColor,0x990044); } then in the datagrid just put a datagrid Event click handler. Isn't a best decribe for your problem just point you out on that. Best. On 1/18/07, zedan_gu zedan_gu@ wrote: Iï¼m attempting to add a background color for datagrid header when user clicks the header to sort the data, to indicate which column was sorted, how can I achieve this? I want to get the header which user click, and then set itï¼s background color style, but I canï¼t get the header, getChildAt() ? No use, Flex 2 Help document is helpless for me about this issue. Any suggestions would be greatly appreciated -- Igor Costa www.igorcosta.org www.igorcosta.com skype: igorpcosta
[flexcoders] Application without FDS?
Hi, I have a general question for all Can I make application with FDS? If yes, How can I call my java's remote object? If No, Can you please tell me? Why cannt I make application in flex without FDS? Thanks, Sanjay Sharma
[flexcoders] Re: Application without FDS?
Thanks David, We have existing application developed in Struts and UI is in JSP... Client just wants to change the UI of a few screens only without using FDS. Is there only way to create XMLs at the runtime? as you have suggested... What are the advantages and disadvantages of creating application in flex without FDS? Thanks in advance.. Sanjay Sharma --- In flexcoders@yahoogroups.com, David Mendels [EMAIL PROTECTED] wrote: Hello, FDS is not required. Use the SDK and/or Flex Builder and go for it! Connect to your back end using just XML over HTTP. This is a fine approach for many use cases. FDS offers additional value in a number of areas, in particular: * Remoting--simplifies programming model and higher performance protocal for connecting to Java obects on server (performance benefit it material for larger data sets, immaterial for trivial amounts of data.) * Messaging--connect to JMS or other messaging service, push and real time data to client * Data Service--page data, synch data More info on FDS available on www.adobe.com HTH, David Adobe From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Thursday, January 18, 2007 12:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Application without FDS? Hi, I have a general question for all Can I make application with FDS? If yes, How can I call my java's remote object? If No, Can you please tell me? Why cannt I make application in flex without FDS? Thanks, Sanjay Sharma
[flexcoders] problem with DataGridListData
Hi, I am facing a problem when I initialise DataGridListData class in testCombo.mxml. I have initialised it in changeCombo method of testCombo.mxml but when i change the combo it doesnt show the value of column index in alert. If i have comment the initialisation and display somethingelse or some hardcode value, it shows the alert but doesnt show the columnIndex. Please help me to resolve this prblm. Thanks, Sanjay sharma filterTest.mxml ?xml version=1.0 ? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=../* viewSourceURL=srcview/index.html mx:Script ![CDATA[ import mx.events.DataGridEvent; import mx.rpc.events.HeaderEvent; import mx.collections.ArrayCollection; import mx.core.ClassFactory; import mx.controls.Alert; import mx.events.DataGridEvent; public var object2:Object = new Object(); public var object:Object = new Object(); [Bindable] [Bindable] public var authorsDataProvider : ArrayCollection = new ArrayCollection( [ { Country: USA, Gold: 35, Status:Active, URL:http://www.google.com; }, { Country: China, Gold: 32, Status:Deactive,URL:http://www.yahoo.com}, { Country: Russia, Gold: 27,Status:Deactive, URL:http://www.hotmail.com; }, { Country: India, Gold: 12, Status:Active,URL:http://www.gmail.com}, {Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; }, {Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; } ]); public function headerClick(evt:DataGridEvent):void{ } ]] /mx:Script mx:Panel title=Header Filter width=100% height=100% mx:DataGrid id=gridPanel headerRelease=headerClick(event) dataProvider={authorsDataProvider} width=100% height=100% sortableColumns=false mx:columns mx:Array mx:DataGridColumn width=300 headerText=Country dataField=Country / mx:DataGridColumn width=300 headerText=Value dataField=Gold/ mx:DataGridColumn width=300 headerText=Status dataField=Status headerRenderer=testCombo/ mx:DataGridColumn width=300 headerText=URL dataField=URL/ /mx:Array /mx:columns /mx:DataGrid /mx:Panel /mx:Application = testCombo.mxml === ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:ComboBox id=cboAuthorsStatusFilter dataProvider={authorsArray} preinitialize=init() change=changeCombo() mx:Script ![CDATA[ import mx.controls.DataGrid; import mx.controls.Alert; import mx.collections.*; import mx.controls.dataGridClasses.DataGridListData; [Bindable] public var authorsArray:Array = [All, Active, Deactive, Deleted]; public function init():void{ addEventListener(dataChange, handleDataChanged); } public function handleDataChanged (event:Event):void { Alert.show(s+handleDataChanged); } public function changeCombo():void{ var testData:DataGridListData = DataGridListData (parentDocument.listData); Alert.show (s+testData.columnIndex.toString()); } ]] /mx:Script /mx:ComboBox /mx:HBox
[flexcoders] Re: Filters with DataGrid - Excel
Hi, I have tried to get column index in my testCombo.mxml by importing mx.controls.dataGridClasses.DataGridListData But I am not able to get column index or column name. Could anyone please help me? so that i can complete the task and populate code for all. Thanks, Sanjay sharma --- In flexcoders@yahoogroups.com, phipzkillah [EMAIL PROTECTED] wrote: Sanjay, Did you have any luck converting the DG Header Filter cell renderer to Flex 2.0? These are the cons that were posted with the code snippet: CONS 1) you must maintain the same dataProvider. 2) sorting is no good. you might want to re-sort after a filter is done (but providing events and what not are still something I need to provide, probable a modelChanged event utilizing the eventName 'filter' There is still a lot to do for this renderer to make it more usable, but I figure I've gotten everyone to a dropping off point it shouldn't be too hard. As I progress with this I'll post more to this thread # I'm not sure exactly what you are trying to do. Do you just simply want a combo-box that you select a field in the list and have it sort the datagrid? If so I believe you need to use an ArrayList collection for your dataprovider. The link that I gave you earlier seems like it would be the best for filtering a datagrid as you would be able to filter on each field/column by clicking on the header and selecting an item - which is exactly what Excel does. If you were able to convert that datagrid header filter cell renderer to Flex 2.0 can you please post the source up here? -Phil --- In flexcoders@yahoogroups.com, sanjaypmg sanjaypmg@ wrote: Hi, I have tried it but facing a problem when I try to access DataCollection from another MXML testCombo.mxml. Please Suggest::: See the following Code: filterTest.mxml ?xml version=1.0 ? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=../* mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.core.ClassFactory; public var object2:Object = new Object(); public var object:Object = new Object(); [Bindable] [Bindable] public var authorsDataProvider : ArrayCollection = new ArrayCollection( [ { Country: USA, Gold: 35, Status:Active, URL:http://www.google.com; }, { Country: China, Gold: 32, Status:Deactive,URL:http://www.yahoo.com}, { Country: Russia, Gold: 27,Status:Deactive, URL:http://www.hotmail.com; }, { Country: India, Gold: 12, Status:Active,URL:http://www.gmail.com}, {Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; }, {Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; } ]); ]] /mx:Script mx:Panel title=Header Filter width=100% height=100% mx:DataGrid id=grid dataProvider={authorsDataProvider} width=100% height=100% sortableColumns=false mx:columns mx:Array mx:DataGridColumn width=300 headerText=Country dataField=Country / mx:DataGridColumn width=300 headerText=Value dataField=Gold/ mx:DataGridColumn width=300 headerText=Status dataField=Status headerRenderer=testCombo/ mx:DataGridColumn width=300 headerText=URL dataField=URL/ /mx:Array /mx:columns /mx:DataGrid /mx:Panel /mx:Application testCombo.mxml: ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:Label text=Sale Price!/ mx:ComboBox id=cboAuthorsStatusFilter dataProvider={authorsStatusArray} change=filterAuthorsGrid(); !-- dataProvider={_parent._parent.gridData}-- mx:Script ![CDATA[ import mx.controls.Alert; import mx.collections.*; [Bindable] public var authorsArray:Array = [All, Active, Deactive, Deleted]; [Bindable] public var authorsStatusArray : Array = populateAuthorsStatusArray(authorsArray); public function populateAuthorsStatusArray (authorsArray:Array):Array { //Alert.show (authorsArray: +authorsArray.toString()) var statusArrayHashMap : Object = new Object(); var statusArray : Array = new Array; var n:int = authorsArray.length; for (var i:int = 0; i n; i++) { if (statusArrayHashMap
[flexcoders] problem with DataGridListData....
Hi All, I am facing a problem with DataGridListData class I have initialised this class in changeCombo() method of testCombo.mxml and display testData.columnIndex.toString() in Alert but Alert is not coming. If i comment the initialisation and make the alert hard code, Alert comes. I couldnt find out the problem. Please help me out to resolve it. Thanks, Sanjay var testData:DataGridListData = DataGridListData (parentDocument.listData); --- filterTest.mxml- ?xml version=1.0 ? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=../* viewSourceURL=srcview/index.html mx:Script ![CDATA[ import mx.events.DataGridEvent; import mx.rpc.events.HeaderEvent; import mx.collections.ArrayCollection; import mx.core.ClassFactory; import mx.controls.Alert; import mx.events.DataGridEvent; public var object2:Object = new Object(); public var object:Object = new Object(); [Bindable] [Bindable] public var authorsDataProvider : ArrayCollection = new ArrayCollection( [ { Country: USA, Gold: 35, Status:Active, URL:http://www.google.com; }, { Country: China, Gold: 32, Status:Deactive,URL:http://www.yahoo.com}, { Country: Russia, Gold: 27,Status:Deactive, URL:http://www.hotmail.com; }, { Country: India, Gold: 12, Status:Active,URL:http://www.gmail.com}, {Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; }, {Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; } ]); public function headerClick(evt:DataGridEvent):void{ } ]] /mx:Script mx:Panel title=Header Filter width=100% height=100% mx:DataGrid id=gridPanel headerRelease=headerClick(event) dataProvider={authorsDataProvider} width=100% height=100% sortableColumns=false mx:columns mx:Array mx:DataGridColumn width=300 headerText=Country dataField=Country / mx:DataGridColumn width=300 headerText=Value dataField=Gold/ mx:DataGridColumn width=300 headerText=Status dataField=Status headerRenderer=testCombo/ mx:DataGridColumn width=300 headerText=URL dataField=URL/ /mx:Array /mx:columns /mx:DataGrid /mx:Panel /mx:Application = testCombo.mxml ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:ComboBox id=cboAuthorsStatusFilter dataProvider={authorsArray} preinitialize=init() change=changeCombo() mx:Script ![CDATA[ import mx.controls.DataGrid; import mx.controls.Alert; import mx.collections.*; import mx.controls.dataGridClasses.DataGridListData; [Bindable] public var authorsArray:Array = [All, Active, Deactive, Deleted]; public function init():void{ addEventListener(dataChange, handleDataChanged); } public function handleDataChanged (event:Event):void { Alert.show(s+handleDataChanged); } public function changeCombo():void{ var testData:DataGridListData = DataGridListData (parentDocument.listData); Alert.show (s+testData.columnIndex.toString()); } ]] /mx:Script /mx:ComboBox /mx:HBox
[flexcoders] problem with DataGridListData....
Hi All, I am facing a problem with DataGridListData class I have initialised this class in changeCombo() method of testCombo.mxml and display testData.columnIndex.toString() in Alert but Alert is not coming. If i comment the initialisation and make the alert hard code, Alert comes. I couldnt find out the problem. Please help me out to resolve it. Thanks, Sanjay var testData:DataGridListData = DataGridListData (parentDocument.listData); --- filterTest.mxml- ?xml version=1.0 ? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=../* viewSourceURL=srcview/index.html mx:Script ![CDATA[ import mx.events.DataGridEvent; import mx.rpc.events.HeaderEvent; import mx.collections.ArrayCollection; import mx.core.ClassFactory; import mx.controls.Alert; import mx.events.DataGridEvent; public var object2:Object = new Object(); public var object:Object = new Object(); [Bindable] [Bindable] public var authorsDataProvider : ArrayCollection = new ArrayCollection( [ { Country: USA, Gold: 35, Status:Active, URL:http://www.google.com; }, { Country: China, Gold: 32, Status:Deactive,URL:http://www.yahoo.com}, { Country: Russia, Gold: 27,Status:Deactive, URL:http://www.hotmail.com; }, { Country: India, Gold: 12, Status:Active,URL:http://www.gmail.com}, {Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; }, {Country: Russia, Gold: 27, Status:Deleted,URL:http://www.hotmail.com; } ]); public function headerClick(evt:DataGridEvent):void{ } ]] /mx:Script mx:Panel title=Header Filter width=100% height=100% mx:DataGrid id=gridPanel headerRelease=headerClick(event) dataProvider={authorsDataProvider} width=100% height=100% sortableColumns=false mx:columns mx:Array mx:DataGridColumn width=300 headerText=Country dataField=Country / mx:DataGridColumn width=300 headerText=Value dataField=Gold/ mx:DataGridColumn width=300 headerText=Status dataField=Status headerRenderer=testCombo/ mx:DataGridColumn width=300 headerText=URL dataField=URL/ /mx:Array /mx:columns /mx:DataGrid /mx:Panel /mx:Application = testCombo.mxml ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:ComboBox id=cboAuthorsStatusFilter dataProvider={authorsArray} preinitialize=init() change=changeCombo() mx:Script ![CDATA[ import mx.controls.DataGrid; import mx.controls.Alert; import mx.collections.*; import mx.controls.dataGridClasses.DataGridListData; [Bindable] public var authorsArray:Array = [All, Active, Deactive, Deleted]; public function init():void{ addEventListener(dataChange, handleDataChanged); } public function handleDataChanged (event:Event):void { Alert.show(s+handleDataChanged); } public function changeCombo():void{ var testData:DataGridListData = DataGridListData (parentDocument.listData); Alert.show (s+testData.columnIndex.toString()); } ]] /mx:Script /mx:ComboBox /mx:HBox
[flexcoders] Re: Filters with DataGrid - Excel
; } ]] /mx:Script /mx:ComboBox /mx:HBox --- In flexcoders@yahoogroups.com, sanjaypmg [EMAIL PROTECTED] wrote: Thanks Phil, :) That's what I was looking for...Now I'll try to convert it into Flex2.0. Wish me luck ;) Thanks, Sanjay --- In flexcoders@yahoogroups.com, phipzkillah pkrasko@ wrote: I am also looking for this functionality. About a month ago I came across this page http://www.cflex.net/showFileDetails.cfm? ObjectID=299Object=FileChann\ elID=1 . It is a sample of a datagrid whose headers have a drop down list to filter each field/column on. Unfortuneately it was developed in Flex 1.5. Has anyone converted it to Flex 2.0? If so, this is the answer we all are looking for. If someone can copy that source code and eliminate the compiler errors you will be doing several of us a huge favor! Thanks Phil --- In flexcoders@yahoogroups.com, sanjaypmg sanjaypmg@ wrote: Hi There, Is there any way to put filters feature on Datagrid as available in Excel? Or Anything Similar to that feature? Please let me know if there is something or any possible solution for the same. Thanks Sanjay sharma
[flexcoders] Paging with DataGrid??
Hi, Is there any way to put paging on datagrid? Please let me know, if there is something like dis in flex or the way to do it in flex. Regards, Sanjay sharma
[flexcoders] Re: Paging with DataGrid??
Hi Stembert, Thanks for responding... Please let me know, Flex Data Management Services are available in FDS2 or is it required to install/deploy it seperately? Thanks, Sanjay --- In flexcoders@yahoogroups.com, Stembert Olivier \(BIL\) [EMAIL PROTECTED] wrote: Sanjay, If you are using Data Management Services, you can specify the paging option on the network node. destination id=accountDSDestination ... properties ... network session-timeout20/session-timeout paging enabled=true pageSize=100 / throttle-inbound policy=ERROR max-frequency=500/ throttle-outbound policy=REPLACE max-frequency=500/ /network /properties /destination From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Thursday, January 11, 2007 10:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Paging with DataGrid?? Hi, Is there any way to put paging on datagrid? Please let me know, if there is something like dis in flex or the way to do it in flex. Regards, Sanjay sharma - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. -
[flexcoders] Re: Filters with DataGrid - Excel
Thanks Phil, :) That's what I was looking for...Now I'll try to convert it into Flex2.0. Wish me luck ;) Thanks, Sanjay --- In flexcoders@yahoogroups.com, phipzkillah [EMAIL PROTECTED] wrote: I am also looking for this functionality. About a month ago I came across this page http://www.cflex.net/showFileDetails.cfm? ObjectID=299Object=FileChann\ elID=1 . It is a sample of a datagrid whose headers have a drop down list to filter each field/column on. Unfortuneately it was developed in Flex 1.5. Has anyone converted it to Flex 2.0? If so, this is the answer we all are looking for. If someone can copy that source code and eliminate the compiler errors you will be doing several of us a huge favor! Thanks Phil --- In flexcoders@yahoogroups.com, sanjaypmg sanjaypmg@ wrote: Hi There, Is there any way to put filters feature on Datagrid as available in Excel? Or Anything Similar to that feature? Please let me know if there is something or any possible solution for the same. Thanks Sanjay sharma
[flexcoders] Replacement of headerRenderer of Datagrid??
Hi All, Does anyone now What is the replacement of headerRenderer of Flex 1.5 in Flex 2.0? headerRenderer was a property of DataGrid in flex 1.5. If anyone knows, please let me know. Thanks, Sanjay Sharma
[flexcoders] Re: Calling javascript with navigateToURL
Hi, you can try : ExternalInterface.call(functionName, parameter); Regards, Sanjay sharma --- In flexcoders@yahoogroups.com, jensen.axel [EMAIL PROTECTED] wrote: I'm trying to do a loop, and call a javascript function in flex for every loop. The loop only seems to call the javascript once the loop is done... and it only calls it for the last iteration of the loop. To reproduce the issue do the following: 1. Create a new project in flex 2. Put a button on the form, and make it's click=test1(); 3. Create a script block like so mx:Script ![CDATA[ private function test1():void{ for (var i:int = 0; i 5; i++){ var u:URLRequest = new URLRequest(javascript:alert( + \'test + i + \');); navigateToURL(u,_self); trace(i); } } ]] /mx:Script the button calls this very simple function, and theoretically you should get 5 alert boxes, but you don't you get 1 I'm curious if these methods can be used like this.
[flexcoders] ComboBox Open State?
Hi, In my application, there is a process which is running in the background. Here I want to know ComboBox's state whether it is open or not so that I can stop the process accordingly. If the combobox is open I dont want to excute that process. So please help and tell me how can i get the combobox state? Thanks in Advance Sanjay
[flexcoders] Customisation of busy cursor
Hi All, I want to customise busy cursor. is there any way to customise it? how can I put my own animation instead of clock animation? or is there other animations available to change that cursor? Please help me thanks. Sanjay
[flexcoders] Combo state???
Hi All, Is there anyway to get the current (open/closed) state of a combo box? Senario: in my application, the screen gets refresh automatically after a specific period, lets say 30 seconds. if i open my dropdown list and screen refreshes at that point of time, it closes the dropdown. What is to be done, it should not call resfreshScreen function while dropdown is open. How can i check that particular state of combo box? Pls help me Thanks in advance Sanjay
[flexcoders] Canvas Label?
Hi All, There is an attribute called Label in Canvas tag, can anyone tell me whts the use of this attribute? Is there any way to show this label in the middle of top border of canvas as label is shown in VB n JAva's canvas? If there is a way to make the canvas or anyother component like VB or java's canvas, pls let me know... Thanks Sanjay
[flexcoders] Re: Flex 2 Compilation problem
Hi Renaun, I have defined it correctly in remote-config.xml because its working fine when I directly open my flex file as: http://localhost:8080/flexnjspproject/flexapplication.mxml. and thereafter I use this compiled SWF, It works fine. Is it not the issue of JBoss version or the java version supported by flex? I am using JBoss 4.0. Pls help me. Thanks. SS --- In flexcoders@yahoogroups.com, Renaun Erickson [EMAIL PROTECTED] wrote: Whats does your services-config.xml file look like? Does it have the SOME_RO destination defined? Is the channel and endpoint used by the destination correct? Renaun --- In flexcoders@yahoogroups.com, sanjaypmg sanjaypmg@ wrote: Hi, I am facing a strange problem while compling flex mxml file. I code and compile my mxml file in flex builder thereafter when I place that SWF in my project's folder and open my JSP file which contains my SWF, It show some RO error, SOME_RO destination not found. If I put mxml in my project folder and put the followin URL in browser: http://localhost:8080/flexnjspproject/flexapplication.mxml It also make SWF in the same folder where MXML lies. thereafter when I call the JSP, It works fine without any error. I couldnt make out wht could be the reason behind it. Can anyone tell me abt this? I am using JBOSS. Thanks, SS
[flexcoders] Re: 3D Charts for Flex 2
Ya, I am interested. --- In flexcoders@yahoogroups.com, graysonpierce [EMAIL PROTECTED] wrote: I'd like to gauge flexcoders' interest in collaborating on an open-source project to build 3D Charts for Flex 2. Of particular interest to me are Multiscapes and 3D Scatterplots. Before going through the trouble of setting up a sourceforge project, I wanted to see if anyone has interest or need in this area and also if there are developers with relevant experience that would be willing to devote some time to benefit the community.
[flexcoders] Re: Spell Checker
Hi Guys, I have developed spell checker functionality in Flex 1.5. I have developed in flex and integrated it with coldfusion. to develop this spellchecker component, I have used Java's Jazzy which i available on net. I have developed the same functionality which provided by MSWord. you can use this Java Jazzy open source dictionary to develop this functionily in flex 2. Thanks Sanjay --- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: I've seen the Component on the Flex Exchange, and it's not going to meet my needs, primarily because my app won't always have an internet connection to use the Google API. Also, I need the custom dictionary to be in my DB so users have access to it regardless of what PC they are using. So, I'm asking for some advice and ideas on creating my own Spell Check feature using PHP and MySQL. I've been thinking about this in theory, and here are my initial questions where I would like feedback. Do I call a remoteObject after every keystroke to compare against a database table of words or do I wait until all the fields are filled out and then have the user click a button to Spell Check the fields? Maybe both? How efficient is this going to be with say 100,000 words in the word list to check against? What about integrating a PHP spell checking function? How do I loop backward until I find a space so I am only checking the last word? How to allow the user to add words not in the standard dictionary to their custom table, from where they are in the application? How do I then set the style of the last word to red underline, change the text color, or some other visual representation to note an incorrect word? If using a Spell Check button, I'd like to change the tab color to a different color, if there are spelling mistakes in fields on that tab. I'd also like to highlight fields where there are spelling mistakes.
[flexcoders] Flex Vs Ajax
Hi All, Can anyone tell me Flex Advantages over Ajax and Vise-Versa. And a comparision table, in which, The different functionality, components available and enviornment supported by them. Pls do let me know. Thanks, SS
[flexcoders] Flex 2 Compilation problem
Hi, I am facing a strange problem while compling flex mxml file. I code and compile my mxml file in flex builder thereafter when I place that SWF in my project's folder and open my JSP file which contains my SWF, It show some RO error, SOME_RO destination not found. If I put mxml in my project folder and put the followin URL in browser: http://localhost:8080/flexnjspproject/flexapplication.mxml It also make SWF in the same folder where MXML lies. thereafter when I call the JSP, It works fine without any error. I couldnt make out wht could be the reason behind it. Can anyone tell me abt this? I am using JBOSS. Thanks, SS
[flexcoders] Re: Flex Vs Ajax
Thank Ian, Thanks Ben Thanks a lot. --- In flexcoders@yahoogroups.com, Ben Lucyk [EMAIL PROTECTED] wrote: Hi SS, This topic has been much talked about: http://ansiguy.blogspot.com/2006/08/flex-vs-ajax-which-one-is- better-and .html http://www.flexsearch.org/index.shtml?cx=017079146949617508304% 3Ama9avcq 0-ngq=flex+vs+ajaxsa=Searchcof=FORID%3A9#1189 http://blogs.flexsearch.org/index.shtml?cx=017079146949617508304% 3A5jhb9 aarm4ccof=FORID%3A9q=flex%20vs%20ajax#994 ;) HTH, Ben Lucyk http://esria.com p 1.877.TRY.ESRIA ext 718 c 1.408.489.3913 f 1.877.828.4436 [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Tuesday, December 19, 2006 12:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Vs Ajax Hi All, Can anyone tell me Flex Advantages over Ajax and Vise-Versa. And a comparision table, in which, The different functionality, components available and enviornment supported by them. Pls do let me know. Thanks, SS
[flexcoders] how to get Piechart Item color??
Hi All, I have created a piechart using some database values. Is there anyway to get piechart's Item color code? because I need the same color codes for various Labels on the same screen. If there is anyway to get it pls let me know Thanks Sanjay
[flexcoders] SEO Compatibility
Hi All, Is Flex SEO Compatible? If yes, How can I my flex application SEC compatible? so that it can be easily available for search engines available. Regards, Sanjay