[flexcoders] Remote Objects and Exceptions
Title: Mercury Email Signature Hi We are working with Remote Objects with Spring (through the SpringBeanAdapter). as i understand a GatewayException is thrown at the server and somehow translated to the client. the problem is i could not find any public member at the Fault object that could give me some details. only when i referred to private members like __detail , __code etc. i have put a breakpoint at the debugger and so there aren't any public members that i could query . another thing is that the fault object is not compatible between WebServices and RemoteObjects. - isn't that break the concept of "work seamlessly with any method you like " for example the Remote Object Fault does not have the member "faultActor" while the WS version has it. any thoughts ? Shlomi _______ Shlomi Cohen, CCMRD, [EMAIL PROTECTED]direct 972.3.5399151mobile 972.52.5697015fax 972.3.5331617 __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Difference between WebService and Remote Object
what do you mean that removing the functions will solve it ? i don't see a difference other than the removed functions. Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint ModienSent: Thursday, February 09, 2006 16:16To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Difference between WebService and Remote Object The format of these classes should work for ya... at least they have for me in the past.class com.mercury.onyx.client.services.vo.UserVO extends com.mercury.onyx.client.services.vo.BasicUserVO { public static var regClass = Object.registerClass("com.mercury.onyx.client.services.vo.UserVO",com.mercury.onyx.client.services.vo.UserVO); public function UserVO(){} public var customerId : String; public var email : String; public var password : String; public var userPermissions : Array = new Array(); public var userRoles : Array = new Array(); public var userSettingsVO : com.mercury.onyx.client.services.vo.UserSettingsVO ; public var userViews : Array = new Array();}class com.mercury.onyx.client.services.vo.UserSettingsVO extends Object { public static var regClass = Object.registerClass("com.mercury.onyx.client.services.vo.UserSettingsVO ",com.mercury.onyx.client.services.vo.UserSettingsVO); public function UserSettingsVO(){} public var changesPageSize : Number; public var landingPage : String; public var userLocale : String; public var userTZ : String;} On 2/9/06, Shlomi Cohen [EMAIL PROTECTED] wrote: Hi i manage to find the problem to at least one of the cases that we had trouble with. 1. RO result that was sentright back to the server and failed - this problem was solved , it caused by a Public Static final variable in the Java class therefore Flex thought it is a different object. 2. RO result that was set as the dataProvider to a datagrid and then pulled out from the grid and sent back to server - i didn't managed to find the problem here . only creating the object from scratch - does the dataProvider changes the objects it gets ?? thanks Shlomi From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Shlomi CohenSent: Thursday, February 09, 2006 11:26To: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Difference between WebService and Remote Object I've already tried this and even Object Copy. I think you don't understand the problem ,the returned object is good , BUT when sending the same returned object to server i get convertion error. Attached are the two VOs that participate in this. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint ModienSent: Wednesday, February 08, 2006 20:50To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Difference between WebService and Remote Object I'm not sure that I understand the problem. Is there anyway you can post the value object definitions?The public static final member "may" be causing a problem.I noticed this line of code may also be the problem. var userVO:UserVO = event.result;try this insteadvar userVO:UserVO = UserVO(event.result);if(userVO == null) trace("Error: the cast failed"); On 2/8/06, Shlomi Cohen [EMAIL PROTECTED] wrote: How , i create the VO using Ant task (code generation) except for 1 public static final member - could that be the diff ? Shlomi From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Clint ModienSent: Wednesday, February 08, 2006 20:07To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Difference between WebService and Remote Object More than likely the definitions for your java UserVO and your ActionScript UserVO are different. On 2/8/06, Shlomi Cohen [EMAIL PROTECTED] wrote: Hi while testing the performance of our application , i changed the way we work with the server from WS to RemoteObjects i found that there is a difference in the way data is being received / transmitted although we use theregisterClass (as the POJO2AS does foryou). for example a method that was saving user info toDB did not work with RO - saying it could not convert ASObject to typed object. what is wrong here ? here is a short snapshot mx:RemoteObject id="service" mx:method result="getUser(event) mx:method result="saveUser /mx:RemoteObject function sendRequest(){ service.getUser(111); } function getUser(event){ var userVO:UserVO = event.result;
RE: [flexcoders] Difference between WebService and Remote Object
I've already tried this and even Object Copy. I think you don't understand the problem ,the returned object is good , BUT when sending the same returned object to server i get convertion error. Attached are the two VOs that participate in this. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint ModienSent: Wednesday, February 08, 2006 20:50To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Difference between WebService and Remote Object I'm not sure that I understand the problem. Is there anyway you can post the value object definitions?The public static final member "may" be causing a problem.I noticed this line of code may also be the problem. var userVO:UserVO = event.result;try this insteadvar userVO:UserVO = UserVO(event.result);if(userVO == null) trace("Error: the cast failed"); On 2/8/06, Shlomi Cohen [EMAIL PROTECTED] wrote: How , i create the VO using Ant task (code generation) except for 1 public static final member - could that be the diff ? Shlomi From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint ModienSent: Wednesday, February 08, 2006 20:07To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Difference between WebService and Remote Object More than likely the definitions for your java UserVO and your ActionScript UserVO are different. On 2/8/06, Shlomi Cohen [EMAIL PROTECTED] wrote: Hi while testing the performance of our application , i changed the way we work with the server from WS to RemoteObjects i found that there is a difference in the way data is being received / transmitted although we use theregisterClass (as the POJO2AS does foryou). for example a method that was saving user info toDB did not work with RO - saying it could not convert ASObject to typed object. what is wrong here ? here is a short snapshot mx:RemoteObject id="service" mx:method result="getUser(event) mx:method result="saveUser /mx:RemoteObject function sendRequest(){ service.getUser(111); } function getUser(event){ var userVO:UserVO = event.result; // we save with the save object we got. saveUser(userVO); } function saveUser(userVO){ service.saveUser(userVO); ///fails to convert ASobject to typed object } Shlomi__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . __This email has been scanned by the MessageLabs Email Security System.For mor
RE: [flexcoders] Difference between WebService and Remote Object
Hi i manage to find the problem to at least one of the cases that we had trouble with. 1. RO result that was sentright back to the server and failed - this problem was solved , it caused by a Public Static final variable in the Java class therefore Flex thought it is a different object. 2. RO result that was set as the dataProvider to a datagrid and then pulled out from the grid and sent back to server - i didn't managed to find the problem here . only creating the object from scratch - does the dataProvider changes the objects it gets ?? thanks Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shlomi CohenSent: Thursday, February 09, 2006 11:26To: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Difference between WebService and Remote Object I've already tried this and even Object Copy. I think you don't understand the problem ,the returned object is good , BUT when sending the same returned object to server i get convertion error. Attached are the two VOs that participate in this. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint ModienSent: Wednesday, February 08, 2006 20:50To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Difference between WebService and Remote Object I'm not sure that I understand the problem. Is there anyway you can post the value object definitions?The public static final member "may" be causing a problem.I noticed this line of code may also be the problem. var userVO:UserVO = event.result;try this insteadvar userVO:UserVO = UserVO(event.result);if(userVO == null) trace("Error: the cast failed"); On 2/8/06, Shlomi Cohen [EMAIL PROTECTED] wrote: How , i create the VO using Ant task (code generation) except for 1 public static final member - could that be the diff ? Shlomi From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint ModienSent: Wednesday, February 08, 2006 20:07To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Difference between WebService and Remote Object More than likely the definitions for your java UserVO and your ActionScript UserVO are different. On 2/8/06, Shlomi Cohen [EMAIL PROTECTED] wrote: Hi while testing the performance of our application , i changed the way we work with the server from WS to RemoteObjects i found that there is a difference in the way data is being received / transmitted although we use theregisterClass (as the POJO2AS does foryou). for example a method that was saving user info toDB did not work with RO - saying it could not convert ASObject to typed object. what is wrong here ? here is a short snapshot mx:RemoteObject id="service" mx:method result="getUser(event) mx:method result="saveUser /mx:RemoteObject function sendRequest(){ service.getUser(111); } function getUser(event){ var userVO:UserVO = event.result; // we save with the save object we got. saveUser(userVO); } function saveUser(userVO){ service.saveUser(userVO); ///fails to convert ASobject to typed object } Shlomi__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email _
[flexcoders] Difference between WebService and Remote Object
Title: Mercury Email Signature Hi while testing the performance of our application , i changed the way we work with the server from WS to RemoteObjects i found that there is a difference in the way data is being received / transmitted although we use theregisterClass (as the POJO2AS does foryou). for example a method that was saving user info toDB did not work with RO - saying it could not convert ASObject to typed object. what is wrong here ? here is a short snapshot mx:RemoteObject id="service" mx:method result="getUser(event) mx:method result="saveUser /mx:RemoteObject function sendRequest(){ service.getUser(111); } function getUser(event){ var userVO:UserVO = event.result; // we save with the save object we got. saveUser(userVO); } function saveUser(userVO){ service.saveUser(userVO); ///fails to convert ASobject to typed object } Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Difference between WebService and Remote Object
How , i create the VO using Ant task (code generation) except for 1 public static final member - could that be the diff ? Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint ModienSent: Wednesday, February 08, 2006 20:07To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Difference between WebService and Remote Object More than likely the definitions for your java UserVO and your ActionScript UserVO are different. On 2/8/06, Shlomi Cohen [EMAIL PROTECTED] wrote: Hi while testing the performance of our application , i changed the way we work with the server from WS to RemoteObjects i found that there is a difference in the way data is being received / transmitted although we use theregisterClass (as the POJO2AS does foryou). for example a method that was saving user info toDB did not work with RO - saying it could not convert ASObject to typed object. what is wrong here ? here is a short snapshot mx:RemoteObject id="service" mx:method result="getUser(event) mx:method result="saveUser /mx:RemoteObject function sendRequest(){ service.getUser(111); } function getUser(event){ var userVO:UserVO = event.result; // we save with the save object we got. saveUser(userVO); } function saveUser(userVO){ service.saveUser(userVO); ///fails to convert ASobject to typed object } Shlomi__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Difference between WebService and Remote Object
it seems that if i create a new Instance of the UserVO everything is working . for example referring the example below function getUser(event){ //var userVO:UserVO = event.result; // does not work var userVO:UserVO = new UserVO(); // works fine. // we save with the save object we got. saveUser(userVO); } why the type is changing when the data comes from the event.result ? is there a copy constructor utility available out there ? shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shlomi CohenSent: Wednesday, February 08, 2006 20:19To: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Difference between WebService and Remote Object How , i create the VO using Ant task (code generation) except for 1 public static final member - could that be the diff ? Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint ModienSent: Wednesday, February 08, 2006 20:07To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Difference between WebService and Remote Object More than likely the definitions for your java UserVO and your ActionScript UserVO are different. On 2/8/06, Shlomi Cohen [EMAIL PROTECTED] wrote: Hi while testing the performance of our application , i changed the way we work with the server from WS to RemoteObjects i found that there is a difference in the way data is being received / transmitted although we use theregisterClass (as the POJO2AS does foryou). for example a method that was saving user info toDB did not work with RO - saying it could not convert ASObject to typed object. what is wrong here ? here is a short snapshot mx:RemoteObject id="service" mx:method result="getUser(event) mx:method result="saveUser /mx:RemoteObject function sendRequest(){ service.getUser(111); } function getUser(event){ var userVO:UserVO = event.result; // we save with the save object we got. saveUser(userVO); } function saveUser(userVO){ service.saveUser(userVO); ///fails to convert ASobject to typed object } Shlomi__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development S
[flexcoders] cairngorm - is it possible to have two Result Handlers for one ca ll.
Title: Mercury Email Signature Hi i'm trying to build a simple cache mechanism at the client side. now since services are async in Flex i need to notify the client who ask for data that the data is available at first time this will take time for service to return but the second will be immediately The problem i face is that : I managed to delegate the service result to local method which delegates to the calling client method. but when the data is already in the cache (no service call is made) the client method works but not able to send any event to itsUI (the client is a view helper). so according to trace everything is working but the dispatchEvent method does not take effect in this second attempt to get the data. can someone help ? Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Need to highlight entire row in column chart
Title: Mercury Email Signature Hi i've looked into an example that shows how to create a BarSeries renderer so selected bars will be highlighted. this example enhance the shadowboxrenderer and create HighlightBoxrenderer so columns can be highlighted when mouse is over. i could not find a way to highlight the entire row which contain the column/bar , so i could have the effect that a datagrid has for example. is it possible ? Shlomi ___ Shlomi Cohen, CCMRD, [EMAIL PROTECTED]direct 972.3.5399151mobile 972.52.5697015fax 972.3.5331617 __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] HTTPService: how to dynamically add params.
Title: Mercury Email Signature Thanks Matt and Tracy , works like a charm BUT - why the hell the documentation does not talk about this. Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy SprattSent: Tuesday, November 29, 2005 20:50To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] HTTPService: how to dynamically add params. Use bracket notation. Try: var oRequest:Object = new Object() oRequest[paramName] = value; Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shlomi CohenSent: Tuesday, November 29, 2005 12:23 PMTo: 'flexcoders@yahoogroups.com'Subject: [flexcoders] HTTPService: how to dynamically add params. Hi I have an application that gets a callback URL and a callback Parameter name. now after user do something i need to send the info to that URL and use the given external Parameter name - remember i don't know its name so an object cannot be constructed to pass to the http service. for example var paramName:String = "result"; // this one changes upon request var oRequest:Object = new Object({paramName ???: value}) - what do i put there ? it takes the paramName as a string not as its value. srv.send(oRequest) even tried using eval to evaluate a dynamic _expression_ on oRequest - didn't help. even tried using the oRequest.addProperty(paramName); then evaluate and assign - didn't help . any ideas ? Shlomi __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] HTTPService: how to dynamically add params.
Title: Mercury Email Signature Hi I have an application that gets a callback URL and a callback Parameter name. now after user do something i need to send the info to that URL and use the given external Parameter name - remember i don't know its name so an object cannot be constructed to pass to the http service. for example var paramName:String = "result"; // this one changes upon request var oRequest:Object = new Object({paramName ???: value}) - what do i put there ? it takes the paramName as a string not as its value. srv.send(oRequest) even tried using eval to evaluate a dynamic _expression_ on oRequest - didn't help. even tried using the oRequest.addProperty(paramName); then evaluate and assign - didn't help . any ideas ? Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Validation of Custom component
Title: Mercury Email Signature Hi We have a custom component that is composed of several UI controls. this custom component is placed in a more complex form. we need to validate the input entered for this custom component , and draw a red square around it (the canvas the wraps everything) do you have any idea how to accomplish that ? i tried a lot of things , among them : have a method that check the input and set an errorcode at the label property of the canvas then thevalidatorchecks this value and shows an error if the label property equals "error" forexample. the idea was that the validator needs to be binded to a field name and the only thing i could think of it the whole canvas. any help will be appreciated. Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] SplitPane in Flex
Hi thanks Manish , i consideredthis idea ,but didn't know if its possible to replace the icon and control the click position , i mean that i wanted it to go both up or down , so i can benefit from enlargingthe upper display area or the lower one . i will look through it again , Can you please answer the question about the ScrollPane.as class from framework 2. is it possible to use it in Flex ? why it wasn't shipped with Flex ? thanks Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish JethaniSent: Wednesday, August 31, 2005 15:20To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] SplitPane in Flex On 8/31/05, Shlomi Cohen [EMAIL PROTECTED] wrote:\ i'm reposting this , since i still haven't found a suitable solution . can you give it few minutes ? In case you want to write one on your own, start overriding theDividedBox class.http://livedocs.macromedia.com/flex/15/asdocs_en/mx/containers/DividedBox.htmlListen to mouseDown, etc., on the individual dividers (seegetDividerAt), then when the mouse is clicked you snap them to theirnew positions using moveDivider.Manish__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Some questions about Bar Chart in Flex
Title: Mercury Email Signature Hi first of all i think that this Chart explorer by Macromedia is wonderful quick start for making charts, specially how to handle styles in series. http://flexapps.macromedia.com/flex15/chartexplorer/explorer.mxml i was wondering how is it possible to highlight a specific line/bar on the chart. for example i want to create a drill down view where you select a line from a line/bar chart located at the top of the view and then you see a table in the lower part of the view , describing more about the selected line series. i though implementing a renderer for a series but, first i don't know how to tie with the click event. second this interface it too generic only beginDraw - draw and endDraw methods. did anyone has any idea ? thanks Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] SplitPane in Flex
Title: Mercury Email Signature Hi Ineed a splitpane control in Flex, something with the ability to be closed immediately not just dragged to the end. (like the one we have in Flex Builder) i've looked into a SplitPane written by Joan Garnet (http://www.joangarnet.com) and i think this component is only for Flash applications. Did anyone wrote something similar in Flex ? extended the DividedBox class for example ? thanks Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] How to programmatically scroll a grid to desired row ?
Title: Mercury Email Signature Hi is there a way to scroll a datagrid object to a selected Index row ? i saw there is a property named focusedCell that do this if you focus on a cell but i don't have the Cell object to assign to it. only the row index number. how can i obtain a reference to a Cell object if i have the x,y (row and column) numbers ? thanks Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Axis server exceptions and Flex.
Title: Mercury Email Signature well ? was it too long or you didn't see it ? :-) please take a moment guys thanks Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shlomi CohenSent: Sunday, July 17, 2005 17:52To: 'flexcoders@yahoogroups.com'Subject: [flexcoders] Axis server exceptions and Flex. Hi i know this is a question more suitable for Axis forum but we are all working with the same tools so maybe someone knows. The problem: when there is a server method exception Axis sends a faultcode of "Server.userException" in the SOAP response to the flex client and the actual class and stack trace in the faultstring. According to Axis docs if you throw an Exception which inherit from RemoteException than Axis will put the class name in the fault code field , see http://ws.apache.org/axis/java/user-guide.html#Exceptions. but unfortunately this did not work for me , i triedthrowing RemoteException and throwing a child of RemoteException but no luck. The need to distinguish between exceptions isobvious , we need to format a nice message according to the real exception happened on the server. we are about to build our own result object that will have an error code in it , but wanted to check if thereis a nicer formal way of changing the faultcode in the SOAP response. do you have any idea ? thanks Shlomi __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Axis server exceptions and Flex.
Title: Mercury Email Signature Hi i know this is a question more suitable for Axis forum but we are all working with the same tools so maybe someone knows. The problem: when there is a server method exception Axis sends a faultcode of "Server.userException" in the SOAP response to the flex client and the actual class and stack trace in the faultstring. According to Axis docs if you throw an Exception which inherit from RemoteException than Axis will put the class name in the fault code field , see http://ws.apache.org/axis/java/user-guide.html#Exceptions. but unfortunately this did not work for me , i triedthrowing RemoteException and throwing a child of RemoteException but no luck. The need to distinguish between exceptions isobvious , we need to format a nice message according to the real exception happened on the server. we are about to build our own result object that will have an error code in it , but wanted to check if thereis a nicer formal way of changing the faultcode in the SOAP response. do you have any idea ? thanks Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Sort arrows in DataGrid
Title: RE: [flexcoders] Sort arrows in DataGrid Hi sorry , i though there is a general problem that i missed here is the code.. ChangesGrid.mxml mx:Vbox initialize="helper.initGrid()" mx:DataGrid id="RFCViewer" change="changesGridViewHelper.RFCSelected(event)" fontSize="9" width="100%" height="100%" mx:columnsmx:Array mx:DataGridColumn sortable="false" resizable="false" width="24" columnName="impact_level" cellRenderer="{SeverityCellRenderer}" headerText=""/ mx:DataGridColumn sortOnHeaderRelease="false" width="120" columnName="createdTimeStamp" headerText="Created" labelFunction="changeCreatedFormatter"//mx:Array/mx:columns/mx:DataGrid ChangesGridViewHelper.as - it does not matter where i placed the following code , i tried putting it ingrid initialize /helper constructor/ WS populating method. . function initGrid(){ view.RFCViewer.sortArrow._visible = true; view.RFCViewer.sortDirection = "ASC"; view.RFCViewer.sortItemsBy("createdTimeStamp", "ASC") view.RFCViewer.placeSortArrow(); } thanks Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul QabizSent: Tuesday, July 05, 2005 22:52To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Sort arrows in DataGrid Can you please post your sample code? I am interested to see how you are using it. We might suggest some changes to your code. It is hard to predict what is going wrong in your code, without looking at it. Kindly, make a simple sample code example which represents your case and post here.. Thanks -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shlomi CohenSent: Wednesday, July 06, 2005 12:22 AMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Sort arrows in DataGrid Guys i also tried the suggested code - and guess what its not working . any updates on this one ? Shlomi From: Dirk Eismann [mailto:[EMAIL PROTECTED] On Behalf Of Dirk EismannSent: Monday, July 04, 2005 14:06To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Sort arrows in DataGrid Actually, the sortDirection thing was mentioned by Nigel Pegg (aka Component Guru) in the "Flash MX 2004 ActionScript - Training from the Source" book. I tried it in Flex a while back and it worked - so I never worried or even verified if it's documented or not. Sorry if this caused confusion. Dirk. Von: flexcoders@yahoogroups.com im Auftrag von Abdul QabizGesendet: Mo 04.07.2005 12:50An: flexcoders@yahoogroups.comBetreff: RE: [flexcoders] Sort arrows in DataGrid sortDirection was already discussed in flexcoders and I searchedarchives and pasted the same code :)I don't even look at docs, I read Dirk suggestions couple of days back.Agreed, it is not documented.Now I also search archives before answering, if I find an answer there Irefer the same...:)-abdul-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Manish JethaniSent: Monday, July 04, 2005 4:17 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Sort arrows in DataGridOn 7/4/05, Sean McKibben [EMAIL PROTECTED] wrote: Maybe these things belong in the documentation? Maybe in the FAQ?Huh, what are those? :)Okay, I think he forgot to mention that some of the properties he wasrecommending are indeed "undocumented" (they are private to thoseclasses). Note: a search for "sortArrow" at the site you provided yielded noresults (then again if I knew there was a property called sortArrow, Iwouldn't have needed to ask the question).It's there in the API docs. [1][1]:http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/DataGrid.html#sortArrowsortDirection is an internal variable the DataGrid uses to keep trackof which way to sort. It's not a part of the public API.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:
RE: [flexcoders] Is it possible to pass parameters to mxml and ge t them somehow in the client ?
thanks guys works like a charm From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt HornSent: Wednesday, July 06, 2005 17:47To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Is it possible to pass parameters to mxml and get them somehow in the client ? Or more specifically, any query string parameters are accessible if youdeclare a global variable of the same name. If the request is: http://domain/app/main.mxml?showAll=true Then you could use it like this:mx:Script var showAll:Boolean; if (showAll) { ... } else { ... }/mx:Script From: flexcoders@yahoogroups.com[mailto:[EMAIL PROTECTED] On Behalf Of Scott Barnes Sent: Wednesday, July 06, 2005 9:53 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Is it possible to pass parameters tomxml and get them somehow in the client ? Yes, what ever parameter you pass in, will be accessible by mx.core.Application.application.param eg: trace(mx.core.Application.application.showAll) // would havethe result "true" On 7/6/05, Shlomi Cohen [EMAIL PROTECTED] wrote: Hi i want to create a dynamic view that is displayed according toparameters from external system , to do something like http://domain/app/main.mxml?showAll=true is it possible ? thanks Shlomi __ This email has been scanned by the MessageLabs Email SecuritySystem. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms ofService. -- Regards, Scott Barnes http://www.mossyblog.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 * Visit your group "flexcodershttp://groups.yahoo.com/group/flexcoders " on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo!Terms of Service http://docs.yahoo.com/info/terms/ . --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Sort arrows in DataGrid
Title: RE: [flexcoders] Sort arrows in DataGrid Guys i also tried the suggested code - and guess what its not working . any updates on this one ? Shlomi From: Dirk Eismann [mailto:[EMAIL PROTECTED] On Behalf Of Dirk EismannSent: Monday, July 04, 2005 14:06To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Sort arrows in DataGrid Actually, the sortDirection thing was mentioned by Nigel Pegg (aka Component Guru) in the "Flash MX 2004 ActionScript - Training from the Source" book. I tried it in Flex a while back and it worked - so I never worried or even verified if it's documented or not. Sorry if this caused confusion. Dirk. Von: flexcoders@yahoogroups.com im Auftrag von Abdul QabizGesendet: Mo 04.07.2005 12:50An: flexcoders@yahoogroups.comBetreff: RE: [flexcoders] Sort arrows in DataGrid sortDirection was already discussed in flexcoders and I searchedarchives and pasted the same code :)I don't even look at docs, I read Dirk suggestions couple of days back.Agreed, it is not documented.Now I also search archives before answering, if I find an answer there Irefer the same...:)-abdul-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Manish JethaniSent: Monday, July 04, 2005 4:17 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Sort arrows in DataGridOn 7/4/05, Sean McKibben [EMAIL PROTECTED] wrote: Maybe these things belong in the documentation? Maybe in the FAQ?Huh, what are those? :)Okay, I think he forgot to mention that some of the properties he wasrecommending are indeed "undocumented" (they are private to thoseclasses). Note: a search for "sortArrow" at the site you provided yielded noresults (then again if I knew there was a property called sortArrow, Iwouldn't have needed to ask the question).It's there in the API docs. [1][1]:http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/DataGrid.html#sortArrowsortDirection is an internal variable the DataGrid uses to keep trackof which way to sort. It's not a part of the public API.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] parseDateString bug ???
Hi thanks for the reply , yes i know it static , i just tried to change the format it uses to parse , ( thats whyi wrote the formatString line) in your example how can you tell if the month is July or May ? thanks Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff TapperSent: Monday, July 04, 2005 00:32To: 'flexcoders@yahoogroups.com'Subject: Re: [flexcoders] parseDateString bug ??? parseDateString is a static method. Try this instead:Dumper.info("PARSING DATE-" + mx.formatters.DateFormatter.parseDateString("07/05/2005 11:00 AM"));At 01:32 PM 7/3/2005, Shlomi Cohen wrote:Hii have the following code ,mx:DateFormatter id="df" formatString="MM/DD/" /Dumper.info("PARSING DATE-" + df.parseDateString("07/05/2005 11:00 AM"));the result on Dumper screen is [INFO]: PARSING DATE-undefined instead of a valid date object.it seems like what ever i do i always get the undefined .i also saw http://livedocs.macromedia.com/flex/1/asdocs/mx/formatters/DateFormatter.htmlhttp://livedocs.macromedia.com/flex/1/asdocs/mx/formatters/DateFormatter.html is this related ? cause i managed to get the format from df .any ideas how to solve this ?thanksShlomi__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email__--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com ? LSpots keywords ? ? HM ADS ?--YAHOO! GROUPS LINKS * Visit your group "http://groups.yahoo.com/group/flexcodersflexcoders" on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] parseDateString bug ???
Title: Mercury Email Signature Hi i have the following code , mx:DateFormatter id="df" formatString="MM/DD/" / Dumper.info("PARSING DATE-" + df.parseDateString("07/05/2005 11:00 AM")); the result on Dumper screen is [INFO]: PARSING DATE-undefined instead of a valid date object. it seems like what ever i do i always get the undefined . i also sawhttp://livedocs.macromedia.com/flex/1/asdocs/mx/formatters/DateFormatter.htmlis this related ? cause i managed to get the format from df . any ideashow to solve this? thanks Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. email_signature.gif Description: GIF image
[flexcoders] Is there a datetime control out there ?
Title: Mercury Email Signature thanks Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Is there a datetime control out there ?
i need something that allow to type the time and choose the date from calendar , i know it is simple to build with DateField and another text field but i thought someone already did this Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaydSent: Thursday, June 30, 2005 20:32To: flexcoders@yahoogroups.comSubject: [flexcoders] Re: Is there a datetime control out there ? try this:mx:DateFormatter id="df_conv" formatString="MM/DD/" /--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Problem with Call Service in WebService
Title: Mercury Email Signature Hi consider the following code , if i use the ws as in line 1 - the message in line 4 is empty , if i use remote object instead line 4 works just fine any ideas? public function loadEnums():Void{1//var callService = enumWS.getEnumValues(EnumLocator.STATE_ENUM,this.language,this.country).send();2var callService = service.getEnumValues(EnumLocator.STATE_ENUM,this.language,this.country);callService.marker = "marker";4Dumper.info("callService.marker=" + callService.marker); } thanks Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Cairngorm and popup window design question
Hi This is a design questionusing the cairngorm framework . How is it best to implement the design pattern (MVC) proposed by the framework , regardingobject passed from a window to a popup window, considering that this object needs to be accessed both in the View and ViewHelper for example: you have the CreateUser.mxml and the CreateUserViewHelper.as --here is CreateUser.mxml . public var userVO:UserVO; // this is set by the calling window view:CreateUserViewHelper id="helper"/ mx:FormItem label="User Name" direction="horizontal" mx:TextInput id="txtUserName" text="{userVO.userName}" width="200"/ /mx:FormItem mx:FormItem label="Login name" required="true" direction="horizontal" mx:TextInput id="txtLoginName" text="{userVO.loginName}" width="200"/ /mx:FormItem mx:button click="helper.saveUser()"/ --- here is CreateUserViewHelper.as class CreateUserViewHelper.as{ function saveUser(){ service.saveUser(view.userVO); // is this the best way or for this class to hold it ??? } } Thanks Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Cairngorm and popup window design question
Hi yes you are right, and i shorten the calls for simplicity. the question is how the the userVO object is shared among all those View--Helper--Control--Delegate i understand that the helper pass it on but where is it best to define it , on the helper ? or the view ?? thanks Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of charged2885Sent: Tuesday, June 14, 2005 10:34 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: Cairngorm and popup window design question disclaimer: i'm new to actionscript and caingorm so i could be mistaken.From what I understand, you should not be accessing any services from the viewhelper. Broadcast a FrontController.SAVE_USER event with the UserVO as data inside the viewhelper instead. this should invoke the SaveUserCommand which calls your AccountDelegate's saveUser method which calls the service's saveUser.Todd BolandCharged Software--- In flexcoders@yahoogroups.com, Shlomi Cohen [EMAIL PROTECTED] wrote: Hi This is a design question using the cairngorm framework . How is it best to implement the design pattern (MVC) proposed by the framework , regarding object passed from a window to a popup window , considering that this object needs to be accessed both in the View and ViewHelper for example: you have the CreateUser.mxml and the CreateUserViewHelper.as --here is CreateUser.mxml . public var userVO:UserVO; // this is set by the calling window view:CreateUserViewHelper id="helper"/ mx:FormItem label="User Name" direction="horizontal" mx:TextInput id="txtUserName" text="{userVO.userName}" width="200"/ /mx:FormItem mx:FormItem label="Login name" required="true" direction="horizontal" mx:TextInput id="txtLoginName" text="{userVO.loginName}" width="200"/ /mx:FormItem mx:button click="helper.saveUser()"/ --- here is CreateUserViewHelper.as class CreateUserViewHelper.as{ function saveUser(){ service.saveUser(view.userVO); // is this the best way or for this class to hold it ??? } } Thanks Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] binding to local object - doesn't work
Hi is it possible to bind a control to a local object in both directions ? i did it but the binding only works one way from the object to the control not the other way around - any suggestions ? for example private var myObj:MyObj; mx:Text id="txtID" text="{myObj.someProp}"/ Thanks Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] what is the best practice for dynamic content ch ange.
Title: Mercury Email Signature Hi Thanks for the reply , but the question was if there is a better way to do this than separated apps, i have to use a treecause itsa design requirement. i though that maybe there is a way to replace the content of the right frame with different panel each time. is it possible to do it dynamically ? , for examplethe right is defined like this, and upona click in the tree the right panel should be replaced. mx:VBox id="mainPanel" pv:someModuleView mx:Vbox function switchView(view:String){ if (view=="someOtherModuleName"){ mainPanel.control??? = new someOtherModule(); } } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios GianninasSent: Thursday, June 09, 2005 03:11To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] what is the best practice for dynamic content change. Hi Shlomi, Yes, for each app you want to load using the Loader control, it must be in effect a standalone Flex app to begin with, so its root tag must be the Application tag. I don't know how big all these sub applications are, but perhaps you can use a ViewStack instead and that should server your purpose. If all you want to do is display one sub-app at a time. Hope that helps! Dimitrios "Jimmy" Gianninas RIADeveloper Optimal Payments Inc. From: Shlomi Cohen [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 12:52 PMTo: 'flexcoders@yahoogroups.com'Subject: [flexcoders] what is the best practice for dynamic content change. Hi Ihave windows explorer like application ,the left panel contain a treewitha list of sub applications (modules) and the right panel is the main view .(which suppose to be used by eachsub application) i want to be able to load the right panel with the selected sub application. I know that FlexExplorer sample implemented something similar with the mx:Loader tag. where every application is loaded by theURL sent to the loader object. the only design fault i can see here is that every module have to be in its own mx:Application tag otherwise the loader can't load it. is there a better way ? what is the best practice here ? thanks Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] combobox selectedIndex
Title: Mercury Email Signature Hi Does anyone know how to set an initial selected index on a Combo (for edit dialog for example) i have tried this code and it doesn't work . mx:ComboBox id="intervalCMB"dataProvider="{intervals}" selectedIndex="2" /thanks Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Cairngorm 0.99
Hi great guys , thanks i think you forgot some resources (procust images) at the assets/products of the store sample. and the installation guide needs to be fixed regarding the DB path , the default ..\\db\\ in store.cfg is not working. (and i have tried all combinations -:-) i had to specify a full path to that . Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhlerSent: Tuesday, May 17, 2005 21:20To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm 0.99 The link is for the .95 release. On 5/17/05, Steven Webster [EMAIL PROTECTED] wrote: http://www.iterationtwo.com/open_source_cairngorm.html Any questions, we'll answer them tomorrow ... team iteration::two are off to the bar:-) We shall have a drink at the bar on behalf of the rest of the Cairngorm Project Team as well (in fact, Ilya/Matt/Dirk/Romain/Jimmy, could you let us know where to send our bar bills...?) who also played their ever important roles in pulling this release together. Enjoy :) Steven -- Steven WebsterTechnical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately.Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Gantt chart in flex?
Hi you can take a look at a simple Gantt from http://www.globfx.com/. if you find anything else , subscribe me on that too please. Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nithya karthikSent: Wednesday, May 11, 2005 11:21To: flexcodersSubject: [flexcoders] Gantt chart in flex? hai, I'd like to know if there is any possibility of creating a gantt chart in flex, if yes how? thanks, nithya Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] DatagridColumn binding to a webservice result
Title: Mercury Email Signature Hi Ifound that using a functionLabel can help here , but i thought there is a shortcut way to do this , instead of a dedicated method for each "complex" column. i've tried something like this and it didn't work mx:DataGridColumn columnName="contactInfo.email" headerText="Email" mx:DataGridColumn columnName="name" headerText="Employee Name" Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt ChotinSent: Monday, May 09, 2005 06:08To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] DatagridColumn binding to a webservice result Have you tried setting the columnName property on the DataGridColumn? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Shlomi CohenSent: Sunday, May 08, 2005 7:15 AMTo: 'flexcoders@yahoogroups.com'Subject: [flexcoders] DatagridColumn binding to a webservice result Hi How is it possible to bind a property of a"child object" to a datagrid column. for example lets say a webservice result is an array of Employee which has a member named Contact which has a property "email". how can i make the email be displayed along with the name. ? here are the classes public class ContactInfo{ private Stringemail ; public String getEmail(){ } } public class Employee { Contact contact; } __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] DatagridColumn binding to a webservice result
Title: Mercury Email Signature Hi How is it possible to bind a property of a"child object" to a datagrid column. for example lets say a webservice result is an array of Employee which has a member named Contact which has a property "email". how can i make the email be displayed along with the name. ? here are the classes public class ContactInfo{ private Stringemail ; public String getEmail(){ } } public class Employee { Contact contact; } __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Alert.show method question
Hi Guys I understand the concept of depth , but my question was referring something else. doesn't the control suppose to wait until the first alert was acknowledged ? meaning AFTER i pressed the ok button . here is the code again function f (event){ mx.controls.Alert.show("hello", 'Debugwindow') Abdul - for you ,some code can be here too .. mx.controls.Alert.show("hello1", 'Debugwindow') } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Darron J. SchallSent: Monday, May 02, 2005 21:14To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Alert.show method question Shlomi Cohen wrote: Hi i have a very simple code that suppose to show two alert windows , the thing is that the second one performs before the first one. - how come ?The code for the first one actually does execute first. The problem is all about depth management. Whenever you open an alert, it needs to get placed above all of the content currently on the stage. Usually this is done by specifiying some arbitrarily high number as the depth, or by using the getNextHighestDepth function added in Flash Player 7.So.. you open an alert on the highest depth, and then immediately afterward you open another alert on the highest depth again. It makes sense that the call to the second one appears on top, because the second "highest depth" is going to be above the first "highest depth". A quick simplified example to illustrate the point further.. assume we have something on depth 1 and we want to open an alert. The next highest depth is 2, so we put the alert there. Then we open another alert, but depths 1 and 2 are taken so we open it on the next highest depth, which would be 3. Depth 3 displays "on top" of depth 2, so the second alert appears "first."As an alternative, can you only open one alert at a time.. when the first alert is closed, then open the second one immediately afterward? -d __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Alert.show method question
Title: Mercury Email Signature Hi i have a very simple code that suppose to show two alert windows , the thing is that the second one performs before the first one. - how come ? here is the code. function f (event){ mx.controls.Alert.show("hello", 'Debugwindow') mx.controls.Alert.show("hello1", 'Debugwindow') } if you try this "hello1" is displayed before "hello" thanks Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] How to populate tree control from web service - resolved
At Last - Thank you very much Matt, this is all i was looking for . some feedback - if you'll see the hole thread you see that some people suggested calling this property like this item.filterName i think ActionScript isway too flexible(it doesn't throw an error) - so its easy to make mistakes . besides the flexbuilder IDE should also support some REAL IntelliSensewith AS code. thanks Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt ChotinSent: Thursday, April 21, 2005 07:08To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] How to populate tree control from web service re sult (server side java objects) You should be able to do item.getProperty("filterName") and item.getProperty("categoryName") etc. and not have to use the backingObject directly. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 20, 2005 11:08 AMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] How to populate tree control from web service re sult (server side java objects) Jeff I appreciate the response , but i think i didn't explain myself very well , I know i can implement the API , and i know i can write a method that loads the tree , BUT - there is an easy way to do this by assigning theresult ofthe Web Service as the DataProvider of theTree. the only problem is thati found that you have to access an object called backingObject (macromedia internal) and macromedia guys say there is more formal way doing this , which i failed to do . in short here is the code. you can see the reference to this object if you remove it IT WON'T WORK. mx:script function myLabelFunc(item):String {var type=typeof item;if (item.backingObject.filterName == null){return item.backingObject.categoryName;}else{return item.backingObject.filterName + ", " + item.backingObject.filterGuid ; } } /mx:script mx:WebService id="UserCategoriesWS" result="onResult(event)" wsdl="@ContextRoot()/services/UserCategoriesWS?wsdl"showBusyCursor="true" fault="alert(event.fault.faultstring)" mx:operation name="getUserFilterCategories" mx:request userNameuserName/userName /mx:request/mx:operation /mx:WebService mx:Tree id="filterTree" labelFunction="myLabelFunc" dataProvider="{UserCategoriesWS.getUserFilterCategories.result}" width="100%" height="100%" fontSize="10"/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff KruegerSent: Wednesday, April 20, 2005 21:04To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] How to populate tree control from web service re sult (server side java objects) I think what you want to do is create a object that implements the TreeDataProviderAPI. In this object it will be responsible for calling your webservice and get that data back and put it into AS objects. Then create your tree. At any given node you can have additional information. So in the DATA part of each node stick your AS object. Then when the user clicks on a node , you will have a AS object that represents your java object that you can do something with. That being said I have tried to implement the TreeDataProviderAPI and was frustrated by it and the lack of documentation. I was trying to create a lazy fetch tree control. And trying to figure out the events, and the way everything is linked can be difficult Jeff __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] How to populate tree control from web service re sult (server side java objects)
Hi Manish and Matt Its not simple as you describe . even the documentation does have a bug , i've tried the code from below and the output is [object],[object]. http://livedocs.macromedia.com/flex/15/flex_docs_en/0226.htm let me remind you that my objects are jave objects that come from the server in SOAP and i have no idea what flex does with them , and believe mei tried and read all your documentation . Manish your example is good for Tree that was built on XML and not from objects , cause in my case you would have get [object Object],1,[object Object] my Java objectsare very simple they like this class SystemFile { String fileName; String fileGuid; } class SystemFolder{ String folderName; SystemFolder[] childFolders; SystemFile[] systemFiles; } trying to get to item.folderName didn't work also not item.fileName. i didn't find any way to access my original object members besides backing object , what is wrong here ? thanks Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt ChotinSent: Wednesday, April 20, 2005 00:54To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] How to populate tree control from web service re sult (server side java objects) Also check out the TreeDataProvider API. You should always use the methods specified in that API when working with either XML or Objects in a Tree or Menu. That way you don't have to worry about backingObject which is an implementation detail purposely not documented. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Sent: Tuesday, April 19, 2005 1:10 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] How to populate tree control from web service re sult (server side java objects) On 4/19/05, Shlomi Cohen [EMAIL PROTECTED] wrote: if i have a function that get a node like this function myLabelFunc(item):String { var type=typeof item; // always return {Object} return item._??? } how do i know which properties the variable 'item' has ? If you're writing a labelFunction for a tree, you're expected to knowthe format of the item so you can construct the label string out ofthe data within the item. For example, I have an item with properties'name' and 'phone' (number), and I want the label to be a combinationof both: mx:Tree labelFunction="makeLabel" / function makeLabel(item):String { return item.name + ": " + item.phone; }makeLabel() is called for every node in the tree.-- [EMAIL PROTECTED]http://manish.revise.org/__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] How to populate tree control from web service re sult (server side java objects)
Thanks Erik but i do have a working solution , its just that the macromedia guys say there is a better one without using the backingObject (an object which is attached to a node in the tree) thanks anyway. BTW - the hole issue was about NOT writing a specific method in the client side :-) Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Erik WestraSent: Wednesday, April 20, 2005 13:32To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] How to populate tree control from web service re sult (server side java objects) I think that the problem u describe comes from the fast that (as far as i know) a tree canhave a dataProvider wich is a XML object. The tree dataprovider is used to provider an API to modify the xml more easy. In order to use a combination of arrays and objects to fill your tree u need to use a function wich uses the dataProvider API for u. From the top of my head i wrote the code below. Im not sure if its bugfree, but u should get the idea. Maybe macromedia has a better solution than the one i wrote below. Its also possible to comvert your object to xml 1th but in that case the tree component will have to iterate over data structure again to do what the function below does. I hope this helps :) code public function fillTree(node, dataProvider_array, folderKey_str, nodeKey_str, folderName_str, nodeName_str) { for (var i = 0; i dataProvider_array.length; i++) { var currentItem_obj:Object = dataProvider_array[i]; varnodeName_str:String = currentItem_obj[nodeName_str]; if (nodeName_str) { //its a node, not a folder node.addTreeNode(nodeName_str, currentItem_obj); } else { //its a folder nodeName_str = currentItem_obj[folderName_str]; var newNode:XMLNode = node.addTreeNode(nodeName_str, currentItem_obj); fillTree(newNode, currentItem_obj[folderKey_str], folderKey_str, nodeKey_str, folderName_str, nodeName_str); fillTree(newNode, currentItem_obj[nodeKey_str], folderKey_str, nodeKey_str, folderName_str, nodeName_str); }; }; }; fillTree(myTree.dataProvider, myInfo_array, "childFolders", "systemFiles", "folderName", "fileName"); /code Greetz Erik From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shlomi CohenSent: woensdag 20 april 2005 10:49To: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] How to populate tree control from web service re sult (server side java objects) Hi Manish and Matt Its not simple as you describe . even the documentation does have a bug , i've tried the code from below and the output is [object],[object]. http://livedocs.macromedia.com/flex/15/flex_docs_en/0226.htm let me remind you that my objects are jave objects that come from the server in SOAP and i have no idea what flex does with them , and believe mei tried and read all your documentation . Manish your example is good for Tree that was built on XML and not from objects , cause in my case you would have get [object Object],1,[object Object] my Java objectsare very simple they like this class SystemFile { String fileName; String fileGuid; } class SystemFolder{ String folderName; SystemFolder[] childFolders; SystemFile[] systemFiles; } trying to get to item.folderName didn't work also not item.fileName. i didn't find any way to access my original object members besides backing object , what is wrong here ? thanks Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt ChotinSent: Wednesday, April 20, 2005 00:54To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] How to populate tree control from web service re sult (server side java objects) Also check out the TreeDataProvider API. You should always use the methods specified in that API when working with either XML or Objects in a Tree or Menu. That way you don't have to worry about backingObject which is an implementation detail purposely not documented. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Sent: Tuesday, April 19, 2005 1:10 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] How to populate tree control from web service re sult (server side java objects) On 4/19/05, Shlomi Cohen [EMAIL PROTECTED] wrote: if i have a function that get a node like this function myLabelFunc(item):String { var type=typeof item; // always return {Object} return item._??? } how do i know which properties the variable 'item' has ? If you're writing a labelFunction for a tree, you're expected to knowthe format of the item so you can construct the label string out ofthe data within the item. For example, I have an item with properties'name' and 'phone' (number), and I want the label to be a combinationof both: mx:Tree labelFunction="makeLabel" / function makeLabel(item):String { return item.name + "
RE: [flexcoders] How to populate tree control from web service re sult (server side java objects)
Meaning i have to implement the TreeDataProviderAPI ? - i thought it wasn't a must and that flex automatically convert my objects to AS objects. Even if i will implement this how can i access my original java object members from AS? can you please shade some light here ? thanks Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt ChotinSent: Wednesday, April 20, 2005 00:54To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] How to populate tree control from web service re sult (server side java objects) Also check out the TreeDataProvider API. You should always use the methods specified in that API when working with either XML or Objects in a Tree or Menu. That way you don't have to worry about backingObject which is an implementation detail purposely not documented. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Sent: Tuesday, April 19, 2005 1:10 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] How to populate tree control from web service re sult (server side java objects) On 4/19/05, Shlomi Cohen [EMAIL PROTECTED] wrote: if i have a function that get a node like this function myLabelFunc(item):String { var type=typeof item; // always return {Object} return item._??? } how do i know which properties the variable 'item' has ? If you're writing a labelFunction for a tree, you're expected to knowthe format of the item so you can construct the label string out ofthe data within the item. For example, I have an item with properties'name' and 'phone' (number), and I want the label to be a combinationof both: mx:Tree labelFunction="makeLabel" / function makeLabel(item):String { return item.name + ": " + item.phone; }makeLabel() is called for every node in the tree.-- [EMAIL PROTECTED]http://manish.revise.org/__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] How to populate tree control from web service re sult (server side java objects)
Hi Guys Thanks , but i already saw this one , and frankly its not enough , its only talks about primitive types and say that if you have complex object you need to write AS code for it (which will be discovered automatically). Now this one is important - There is a property of a node item that is called "backingObject" macromedia don't have any documentation on it (Why ??) i found it using the debugger. this object holds all the members of the complex objects , so you can refere them as something like this node.backingObject.java_member_name Have fun with it Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dirk EismannSent: Tuesday, April 19, 2005 16:40To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] How to populate tree control from web service result (server side java objects) Sorry, Check the " Developing Macromedia Flex Applications " documentation i mean :) http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentationfile=0778.htm Dirk. -Original Message-From: Dirk Eismann Sent: Tuesday, April 19, 2005 3:40 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] How to populate tree control from web service result (server side java objects) Check the "" documentation: -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Shlomi CohenSent: Tuesday, April 19, 2005 3:20 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] How to populate tree control from web service result (server side java objects) Hi The label in the tree shows fine , but trying to use the labelFunction was a little bit confusing. how ActionScript map my Java objects to AS objects , ? can someone send a GOOD article about this? if i have a function that get a node like this function myLabelFunc(item):String { var type=typeof item; // always return {Object} return item._???} how do i know which properties the variable 'item' has ? thanks Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish JethaniSent: Monday, April 18, 2005 22:51To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] How to populate tree control from web service result (server side java objects) On 4/18/05, Shlomi Cohen [EMAIL PROTECTED] wrote: do i have to return an xml string from the webservice or there is a better way to map the objects from the result into the tree control. The top-level object in your tree can be assigned directly to theTree's dataProvider property. If every object has a "label" property,then that'll be used to the label; otherwise you can specifya labelField to use another field, or a labelFunction to format thedata the way you want it displayed. Look out for these properties inthe Tree documentation.-- [EMAIL PROTECTED]http://manish.revise.org/__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] How to populate tree control from web service re sult (server side java objects)
Hi The label in the tree shows fine , but trying to use the labelFunction was a little bit confusing. how ActionScript map my Java objects to AS objects , ? can someone send a GOOD article about this? if i have a function that get a node like this function myLabelFunc(item):String { var type=typeof item; // always return {Object} return item._???} how do i know which properties the variable 'item' has ? thanks Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish JethaniSent: Monday, April 18, 2005 22:51To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] How to populate tree control from web service result (server side java objects) On 4/18/05, Shlomi Cohen [EMAIL PROTECTED] wrote: do i have to return an xml string from the webservice or there is a better way to map the objects from the result into the tree control. The top-level object in your tree can be assigned directly to theTree's dataProvider property. If every object has a "label" property,then that'll be used to the label; otherwise you can specifya labelField to use another field, or a labelFunction to format thedata the way you want it displayed. Look out for these properties inthe Tree documentation.-- [EMAIL PROTECTED]http://manish.revise.org/__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] How to populate tree control from web service result (server side java objects)
Title: Mercury Email Signature Hi i have a complex object that holds a tree in server side Java objects , i then expose it to the client via a WebService. my question is what is the best way to populate thetree control with thisserver side object ? do i have to return an xml string from the webservice or there is a better way tomap the objectsfrom the result into the tree control. any help willbe appreciated. thanks Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Generating dynamic datagrid based on dynamic que ry result
Thanks very much ! I'll surly try this first thing on the morning (its 1AM here :-) Shlomi -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Monday, April 18, 2005 10:58 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Generating dynamic datagrid based on dynamic query result On 4/18/05, Dzafer [EMAIL PROTECTED] wrote: For the datagrid I need to retrieve all the column names from the provider to do something like this: If ( ...column[i] == firstname) {} Ah, sorry about that. I see what you're trying to do now, and here's how I'd do it: if (myDataGrid.columns[i].columnName == firstName) { ... } firstName is the name of the field in your data objects your column maps to, and columnName is the property of DataGridColumn that stores that value. http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/gridclasses/Dat aGridColumn.html http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/Tree.html -- [EMAIL PROTECTED] http://manish.revise.org/ Yahoo! Groups Links __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Equivalent to Thread.sleep()
Title: Equivalent to Thread.sleep() Hi Guys i'm new to flex , but it seems that you talk about different things, one talks about async calls of web service and the other about multithreading not supported. as far as i know - async can only be implemented in threads otherwise its synchronous , so what is the limitation exactly ? Shlomi From: Carson Hager [mailto:[EMAIL PROTECTED] Sent: Monday, March 07,2005 10:29 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Equivalent to Thread.sleep() I understand that it's a web application but that's hardly any excuse. Nothing in the Java or .NET world requires you to handle web service calls asynchronously. This is unique to Flash/Flex. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY ext. 89 Mobile: 1.703.489.6466 Take PowerBuilder to the Web with EAF 4.0 http://www.cynergysystems.com/public/products/eaf From: Robert Stuttaford [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 3:21 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Equivalent to Thread.sleep() Carson, Lock down the important bits of your interface, set the cursor to busy, display a processing animation... and revert everything on a result. It is after all a web/network application J Unfortunately, you're asking for a change in the Flash Player, not in Flex as such. Who knows, perhaps Flash Player 8 a.k.a. Maelstrom will fulfill your requirement for multi-threading! I don't know nearly enough to even guess if they possibly might consider toying with the idea some time in the next 3 releases -grin- Good luck! Robert From: Carson Hager [mailto:[EMAIL PROTECTED] Sent: 07 March 2005 10:08 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Equivalentto Thread.sleep() What if I have to interrogate the database or some other server side operation to determine the business rule response? Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY ext. 89 Mobile: 1.703.489.6466 Take PowerBuilder to the Web with EAF 4.0 http://www.cynergysystems.com/public/products/eaf From: Robert Stuttaford [mailto:[EMAIL PROTECTED]] Sent: Monday, March 07, 2005 3:01 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Equivalentto Thread.sleep() Entrust your business logic processing to the client-side; after all, it isn't just HTML and _javascript_ any more J From: Carson Hager [mailto:[EMAIL PROTECTED] Sent: 07 March 2005 09:57 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Equivalentto Thread.sleep() There are plentyof occasions where we are using web services for something other than data feeds. For example, there are plenty of business rule checks that we need to perform during the course of some application logic, the results of which will determine the path within conditional logic. We need to do server processing to get a response to our business rule checks and remoting is not an option due to the proprietary nature of the binary protocol and the need for our app to run outside of the firewall. This would be ridiculous to do inan asynch fashion. Only having asynch capability in Flex is yet again another feather in itsHello World cap. This is a major issue if it is indeed the case. I appreciate your help but I really don't understand how anyone can think this is acceptable. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY ext. 89 Mobile: 1.703.489.6466 Take PowerBuilder to the Web with EAF 4.0 http://www.cynergysystems.com/public/products/eaf From: Tracy Spratt [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 1:47 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Equivalentto Thread.sleep() As far as I know, this can't be done. The flash player is single threaded, so nothing else happens in a timer loop, nothing will "return". It seems like there should be a way to hack this, maybe using doLater() and setInterval(), but I have never heard of one. What is your functional reason for not using the result event? Once I got used to async handling, using the ACT (asynchronous call token) pattern with the "call" object, I go over my irritation with the relative complexity and learned to like the async data calls. Tracy From: Carson Hager [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 1:15 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Equivalentto Thread.sleep() Basically, I'm trying to stop executiong of a function until the result returns. When it returns,I want to get the result and return it as the return value to the function..basically a wrapper around a web service
RE: [flexcoders] Fwd: Drawing Network topology graph in Flex
Hi Any link ? Why the article doesn't have the source , is it copyrighted ? - we are willing to pay for it Thanks Shlomi -Original Message- From: Roger Gonzalez [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 9:22 PM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] Fwd: Drawing Network topology graph in Flex I don't know of an off-the-shelf package, but its not hard to write. My linker/loader article on devnet includes an utility program for which I wrote a force-directed graph layout algorithm as a component that scribbles on a Canvas using the ActionScript graphics API. (The utility is prebuilt, no source, but you might want to tinker with it for inspiration.) -Roger Roger Gonzalez mailto:[EMAIL PROTECTED] -Original Message- From: shlomic_thailand [mailto:[EMAIL PROTECTED] Sent: Thursday, March 03, 2005 6:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Fwd: Drawing Network topology graph in Flex --- In flexcoders@yahoogroups.com, shlomic_thailand [EMAIL PROTECTED] wrote: Hi does anyone know of a package that can draw graphs in flex (like tree but more complex) we'd like to write an application that draws network topology in the UI. thanks Shlomi --- End forwarded message --- Yahoo! Groups Links Yahoo! Groups Links __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __