[flexcoders] sortCompareFunction - First the number's then the null's
Hi all, In my App I need a custom sortCompareFunction to resove my problem. My problem is, if I have a column with 1, 2, 1, 3, null, 2, null', by default flex sort like this null, null, 1, 1, 2, 2, 3 or 3, 2, 2, 1, 1, null, null. It means, first cames the null then the values. I need 1, 1, 2, 2, 3, null, null How can I have the reverse, first the values ASC, then the nulls. Thank you so much. Core Reagards
[flexcoders] htmlText to Text
Hi guys, Does somebody have an idea to convert htmlText to text, it means remove the Angle Brackets. Example: FONT ...Lorem Ipsum/FONT to Lorem Ipsum I don't know, RegExp, some String Method ? :S Thanks, Core
[flexcoders] Re: htmlText to Text
Nevermind, i resolved it. Create a RichTextEditor pass the htmlText to it, then accessing to is Text proproety it's tag free :D Example: mx:RichTextEditor x=20 y=10 title=Title id=richText mx:htmlText ![CDATA[ TEXTFORMAT LEADING=2P ALIGN=LEFTFONT FACE=Verdana SIZE=10 COLOR=#0B333C LETTERSPACING=0 KERNING=0Ola tudo bem?/FONT/P/TEXTFORMAT ]] /mx:htmlText /mx:RichTextEditor mx:TextArea x=491 y=10 width=260 height=300 backgroundColor=#0E0E0E color=#FF text={richText.text}/ The text in the TextArea are not formated was i wanted :) Thanks, anyway --- In flexcoders@yahoogroups.com, hugocorept [EMAIL PROTECTED] wrote: Hi guys, Does somebody have an idea to convert htmlText to text, it means remove the Angle Brackets. Example: FONT ...Lorem Ipsum/FONT to Lorem Ipsum I don't know, RegExp, some String Method ? :S Thanks, Core
[flexcoders] Dates and Months Problem
Hello all, how you doing ^^ I want to get the month we are by number. Can some one explain me why is flex saying the Month we are is 9 (Setpember) day 1 ? trace(dataHoje.toDateString()) trace(dataHoje.month) trace(dataHoje.monthUTC) trace(dataHoje.day) Mon Oct 1 2007 9 9 1 Thanks for all, Core
[flexcoders] BUG? On WebServices \ become nothing...
hell you flexers! How u doing..? Hey guys, do you notice that if you send blabla\loremipsum the slash vanish !? 0_o It just me .. ? Example : webservice.operation(CORE\SQLEXPRESS); The tracetarget says me: ns0:strCORESQLEXPRESS/ns0:str Am I doing something , wrong ? ... Solutions in flex-side ? Thanks you Advance ;) Core, regards
[flexcoders] Re: WebService in AS
Oh i get it, the error has in : public function readyHelloWorld():void{ // call web service function Is Ready webService.HelloWorld(myInput.text); } correct to : public function readyHelloWorld(ready:LoadEvent):void{ // call web service function Is Ready webService.HelloWorld(myInput.text); } Seems going every just fine.. Thanks...
[flexcoders] Re: WebService in AS
Here's the complete code if anyone is interest, if anyone disagree with anything reply me ;) [Bindable] public var webService:WebService; public function wsHelloWorld():void{ // initialization that only needs to be called once webService = new WebService(); webService.wsdl = myWsdl.text; webService.loadWSDL(); webService.addEventListener(LoadEvent.LOAD, readyHelloWorld); webService.addEventListener(ResultEvent.RESULT, resultListener); } public function readyHelloWorld(ready:LoadEvent):void{ // call web service function Is Ready webService.HelloWorld(myInput.text); } public function resultListener(event:ResultEvent):void { // handle result of webservice trace(event.result); } --- In flexcoders@yahoogroups.com, hugocorept [EMAIL PROTECTED] wrote: Hey thanks for the Help, that really light me! So, i write something like this.. [Bindable] public var webService:WebService; public function wsHelloWorld():void{ // initialization that only needs to be called once if (!webService) { webService = new WebService(); webService.wsdl = myWsdl.text; webService.loadWSDL(); webService.addEventListener(LoadEvent.LOAD, readyHelloWorld); webService.addEventListener(ResultEvent.RESULT, resultListener); } } public function readyHelloWorld():void{ // call web service function Is Ready webService.HelloWorld(myInput.text); } public function resultListener(event:ResultEvent):void { // handle result of webservice trace(event.result); } This is giving me: Argument count mismatch on main/readyHelloWorld(). Expected 0, got 1. :s hum... Grate for the help, Core --- In flexcoders@yahoogroups.com, Daniel Freiman FreimanCQ@ wrote: Actually, I may have screwed this up because loadWSDL is also asynchronous. Remove the first line of wsHelloWorld (initHelloWorld()) and just make sure to call initHelloWorld well before you call wsHelloWorld. Really you should add an eventListener to webService for LoadEvent.LOAD and not call helloworld until that LOAD has been received once. Unfortunately, I have to go do something right now so I can't write that up. Sorry for the confusion Dan Freiman nondocs http://nondocs.blogspot.com On 5/18/07, Daniel Freiman freimancq@ wrote: Hello world is an asynchronous call so the trace function will be called before HelloWorld is completed. Instead try this: [Bindable] public var webService:WebService; public function wsHelloWorld():void{ initHelloWorld(); webService.HelloWorld(myInput.text); // call web service function } public function initHelloWorld():void{ // initialization that only needs to be called once if (!webService) { webService = new WebService(); webService.wsdl = myWsdl.text; webService.loadWSDL(); webService.addEventListener(ResultEvent.RESULT, resultListener); } } public function resultListener(event:ResultEvent):void { // handle result of webservice trace(event.result ); } Dan Freiman nondocs http://nondocs.blogspot.com On 5/18/07, hugocorept hugocore@ wrote: Hello you flexers Well, i have created an WebService in AS, because in the mxml tag way, the WSDL derived from an TextInput does NOT WORK.. :( sad... so i create this simple AS but i cant get the lastResult successful, Always give me null in the beginning, click again, and then the result, and for last [Object Object], can you light me :P ? [Bindable] public var webService:WebService = new WebService; public function wsHelloWorld():void
[flexcoders] Re: WebService in AS
Hey thanks for the Help, that really light me! So, i write something like this.. [Bindable] public var webService:WebService; public function wsHelloWorld():void{ // initialization that only needs to be called once if (!webService) { webService = new WebService(); webService.wsdl = myWsdl.text; webService.loadWSDL(); webService.addEventListener(LoadEvent.LOAD, readyHelloWorld); webService.addEventListener(ResultEvent.RESULT, resultListener); } } public function readyHelloWorld():void{ // call web service function Is Ready webService.HelloWorld(myInput.text); } public function resultListener(event:ResultEvent):void { // handle result of webservice trace(event.result); } This is giving me: Argument count mismatch on main/readyHelloWorld(). Expected 0, got 1. :s hum... Grate for the help, Core --- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: Actually, I may have screwed this up because loadWSDL is also asynchronous. Remove the first line of wsHelloWorld (initHelloWorld()) and just make sure to call initHelloWorld well before you call wsHelloWorld. Really you should add an eventListener to webService for LoadEvent.LOAD and not call helloworld until that LOAD has been received once. Unfortunately, I have to go do something right now so I can't write that up. Sorry for the confusion Dan Freiman nondocs http://nondocs.blogspot.com On 5/18/07, Daniel Freiman [EMAIL PROTECTED] wrote: Hello world is an asynchronous call so the trace function will be called before HelloWorld is completed. Instead try this: [Bindable] public var webService:WebService; public function wsHelloWorld():void{ initHelloWorld(); webService.HelloWorld(myInput.text); // call web service function } public function initHelloWorld():void{ // initialization that only needs to be called once if (!webService) { webService = new WebService(); webService.wsdl = myWsdl.text; webService.loadWSDL(); webService.addEventListener(ResultEvent.RESULT, resultListener); } } public function resultListener(event:ResultEvent):void { // handle result of webservice trace(event.result ); } Dan Freiman nondocs http://nondocs.blogspot.com On 5/18/07, hugocorept [EMAIL PROTECTED] wrote: Hello you flexers Well, i have created an WebService in AS, because in the mxml tag way, the WSDL derived from an TextInput does NOT WORK.. :( sad... so i create this simple AS but i cant get the lastResult successful, Always give me null in the beginning, click again, and then the result, and for last [Object Object], can you light me :P ? [Bindable] public var webService:WebService = new WebService; public function wsHelloWorld():void{ webService.wsdl = myWsdl.text; webService.loadWSDL(); webService.HelloWorld(myInput.text); trace(webService.HelloWorld.lastResult); } null Hello, testee (-- This is the THING!!) [object Object] (-- This enter in HelloWorldResponse Object, ??) Hope you can help on this, Grate for all the help!
[flexcoders] WebService in AS
Hello you flexers Well, i have created an WebService in AS, because in the mxml tag way, the WSDL derived from an TextInput does NOT WORK.. :( sad... so i create this simple AS but i cant get the lastResult successful, Always give me null in the beginning, click again, and then the result, and for last [Object Object], can you light me :P ? [Bindable] public var webService:WebService = new WebService; public function wsHelloWorld():void{ webService.wsdl = myWsdl.text; webService.loadWSDL(); webService.HelloWorld(myInput.text); trace(webService.HelloWorld.lastResult); } null Hello, testee (-- This is the THING!!) [object Object] (-- This enter in HelloWorldResponse Object, ??) Hope you can help on this, Grate for all the help!
[flexcoders] Re: Connect and Retrieve from MS SQL Server 2005
Tkz i will check on Lynda ;) Bottom Line, you in general advise .NET to fill out the blank between flex and MSSQL. Okidoki , i think too.. Ps: I have tried ColdF. mx7 and i have to say that's was really simple connect to the server , run querys and that on Builder, i just cant understand how to parse the data to Flex, its by the RemoteObject right ? oh well.. but the fact i cant have a login form by CF, only in the administration (i think:P) was disappointing, make things insecure.. GENERAL: FLEX .NET -- MSSQL (WEBSERVICE or NOT) --- In flexcoders@yahoogroups.com, hugocorept [EMAIL PROTECTED] wrote: Hello all, In your opnion, witch is the simple/best way to connect a MSSQLServer 2005. I prefer java-less.. Thank you , Very Much!
[flexcoders] Re: Connect and Retrieve from MS SQL Server 2005
Why i don´t choose ASP.NET ? Because i havent any experecience with it :P But i promisse i will give it a chance . Just a quick doubt, can you give a quick knowlodge about CLR, What you all mean with you use any CLR compatible language ? Whats the benifts ? Tkz for all --- In flexcoders@yahoogroups.com, Shaun [EMAIL PROTECTED] wrote: Yes, Fluorine uses ASP.NET. So you can use any CLR compatible language. (Fluorine itself is written in C#) It also has an installer that creates a web site template project and comes with samples. I highly recommend it. Shaun --- In flexcoders@yahoogroups.com, hugocorept hugocore@ wrote: Hey many thanks Point 1. So, you in general point the new feutures of SQL Server Web Services. Is that suported by either Express and Full Version? Can someone support me with some tutorials of any kind ? Point 2. I have tried by : PHP (with result in a difficul process because the DSN requirements) and ColdFusion 7 ( still in research but seams pretty good) Point 3 Fluorine project use witch languague ? Asp.NET? Thanks For All --- In flexcoders@yahoogroups.com, hugocorept hugocore@ wrote: Hello all, In your opnion, witch is the simple/best way to connect a MSSQLServer 2005. I prefer java-less.. Thank you , Very Much! --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote: If you are using the full version of SQL 2005 (meaning not Express) you may be able to use the built-in Web Services Endpoints ... Have not tried it myself, but I think in theory that should work. -Iko --- In flexcoders@yahoogroups.com, Clint Tredway grumpee@ wrote: you can use just about any server side language (ColdFusion, PHP, ASP, .NET, etc) to connect to SQL Server On 3/28/07, hugocorept hugocore@ wrote: Hello all, In your opnion, witch is the simple/best way to connect a MSSQLServer 2005. I prefer java-less.. Thank you , Very Much! -- http://indeegrumpee.spaces.live.com/
[flexcoders] Re: Connect and Retrieve from MS SQL Server 2005
Hey many thanks Point 1. So, you in general point the new feutures of SQL Server Web Services. Is that suported by either Express and Full Version? Can someone support me with some tutorials of any kind ? Point 2. I have tried by : PHP (with result in a difficul process because the DSN requirements) and ColdFusion 7 ( still in research but seams pretty good) Point 3 Fluorine project use witch languague ? Asp.NET? Thanks For All --- In flexcoders@yahoogroups.com, hugocorept [EMAIL PROTECTED] wrote: Hello all, In your opnion, witch is the simple/best way to connect a MSSQLServer 2005. I prefer java-less.. Thank you , Very Much! --- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED] wrote: If you are using the full version of SQL 2005 (meaning not Express) you may be able to use the built-in Web Services Endpoints ... Have not tried it myself, but I think in theory that should work. -Iko --- In flexcoders@yahoogroups.com, Clint Tredway grumpee@ wrote: you can use just about any server side language (ColdFusion, PHP, ASP, .NET, etc) to connect to SQL Server On 3/28/07, hugocorept hugocore@ wrote: Hello all, In your opnion, witch is the simple/best way to connect a MSSQLServer 2005. I prefer java-less.. Thank you , Very Much! -- http://indeegrumpee.spaces.live.com/
[flexcoders] Connect and Retrieve from MS SQL Server 2005
Hello all, In your opnion, witch is the simple/best way to connect a MSSQLServer 2005. I prefer java-less.. Thank you , Very Much!
[flexcoders] Re: Flex Post with Special Characters
I GOT IT! Solution: Define the PHP script with headers like this: header('Content-Type: text/html; charset=UTF-8;'); or in the Mail Script mail($mailto, $subject, $messageproper, From: From The\n . MIME-Version: 1.0\n . Content-Type: text/html; charset=UTF-8;); --- In flexcoders@yahoogroups.com, Yiðit Boyar [EMAIL PROTECTED] wrote: i dont know any idea how you can solve this problem in client side but you may try php preg_replace to replace § with ç etc... exm: $patterns[0] = '/§/'; $patterns[1] = '/á/'; $replacements[0] = 'ç'; $replacements[1] = 'A'; $text=preg_replace($patterns, $replacements, $text); see http://tr2.php.net/preg_replace for more info about preg_replace - Original Message From: hugocorept [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, December 26, 2006 9:00:55 PM Subject: [flexcoders] Re: Flex Post with Special Characters --- In [EMAIL PROTECTED] ups.com, hugocorept hugocore@ . wrote: Here is the thing, i have a Flex Application that POST into a PHP Script. Real Simple, the script send a Email with the data from the Flex. My Problem is: What i have to do , in Flex our in PHP Script, so that charters like ç , á , ~ can be send in the Email correctly. At the moment, if the e-mail have characters like ç i receve char like this §. Thanks in Advance, Core Any one ? :( good x-mas.. !-- #ygrp-mlmsg {font-size:13px;font-family:arial,helvetica,clean,sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0; } #ygrp-tpmsgs{ font-family:Arial; clear:both; } #ygrp-vitnav{ padding-top:10px; font-family:Verdana; font-size:77%; margin:0; } #ygrp-vitnav a{ padding:0 1px; } #ygrp-actbar{ clear:both; margin:25px 0; white-space:nowrap; color:#666; text-align:right; } #ygrp-actbar .left{ float:left; white-space:nowrap; } .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana; font-size:77%; padding:15px 0; } #ygrp-ft{ font-family:verdana; font-size:77%; border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px; } #ygrp-vital{ background-color:#e0ecee; margin-bottom:20px; padding:2px 0 8px 8px; } #ygrp-vital #vithd{ font-size:77%; font-family:Verdana; font-weight:bold; color:#333; text-transform:uppercase; } #ygrp-vital ul{ padding:0; margin:2px 0; } #ygrp-vital ul li{ list-style-type:none; clear:both; border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold; color:#ff7900; float:right; width:2em; text-align:right; padding-right:.5em; } #ygrp-vital ul li .cat{ font-weight:bold; } #ygrp-vital a { text-decoration:none; } #ygrp-vital a:hover{ text-decoration:underline; } #ygrp-sponsor #hd{ color:#999; font-size:77%; } #ygrp-sponsor #ov{ padding:6px 13px; background-color:#e0ecee; margin-bottom:20px; } #ygrp-sponsor #ov ul{ padding:0 0 0 8px; margin:0; } #ygrp-sponsor #ov li{ list-style-type:square; padding:6px 0; font-size:77%; } #ygrp-sponsor #ov li a{ text-decoration:none; font-size:130%; } #ygrp-sponsor #nc { background-color:#eee; margin-bottom:20px; padding:0 8px; } #ygrp-sponsor .ad{ padding:8px 0; } #ygrp-sponsor .ad #hd1{ font-family:Arial; font-weight:bold; color:#628c2a; font-size:100%; line-height:122%; } #ygrp-sponsor .ad a{ text-decoration:none; } #ygrp-sponsor .ad a:hover{ text-decoration:underline; } #ygrp-sponsor .ad p{ margin:0; } o {font-size:0;} .MsoNormal { margin:0 0 0 0; } #ygrp-text tt{ font-size:120%; } blockquote{margin:0 0 0 4px;} .replbq {margin:4;} -- __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[flexcoders] Save DataGrid
Hi every flex addicted:P Does anybody knows a way to save the changes realized to a dataGrid? DataGrid have editable=true , the goal is to save to a MySql, but all ideias are welcome to find a way... My ideias are, use a PHP script to receve the data..but how?
[flexcoders] Re: Flex Post with Special Characters
--- In flexcoders@yahoogroups.com, hugocorept [EMAIL PROTECTED] wrote: Here is the thing, i have a Flex Application that POST into a PHP Script. Real Simple, the script send a Email with the data from the Flex. My Problem is: What i have to do , in Flex our in PHP Script, so that charters like ç , á , ~ can be send in the Email correctly. At the moment, if the e-mail have characters like ç i receve char like this §. Thanks in Advance, Core Any one ? :( good x-mas..
[flexcoders] Flex Post with Special Characters
Here is the thing, i have a Flex Application that POST into a PHP Script. Real Simple, the script send a Email with the data from the Flex. My Problem is: What i have to do , in Flex our in PHP Script, so that charters like ç , á , ~ can be send in the Email correctly. At the moment, if the e-mail have characters like ç i receve char like this §. Thanks in Advance, Core