Re: [flexcoders] How to pass value selected from combo box to my Java class method

2005-09-16 Thread Oscar . Cortes
Assuming that you already have a RemoteObject to call your Java Class. This is what I would do: cc: Sent by: Subject: [flexcoders] How to pass value selected from combo box

Re: [flexcoders] How to pass value selected from combo box to my Java class method

2005-09-16 Thread Oscar . Cortes
Thx Oscar, For your response. I know this. But along with this value selected from combo box i also want to pass whatever values User enter in text box. Here what I all want it is, Suppse I

Re: [flexcoders] populating combo box

2005-09-26 Thread Oscar . Cortes
Are you calling listCities.send() in some place?

Re: [flexcoders] Populating values in datagrid from arrays

2005-10-03 Thread Oscar . Cortes
Try casting the result to an Array ... myArray= mx.utils.ArrayUtil.toArray(event.result); It worked for me in a similar case ...

[flexcoders] Reading the displayed value in a DataGrid - How to

2005-10-10 Thread Oscar . Cortes
I am using labelFunction for a column in a datagrid. How can I read the displayed value and not the real value directly from the dataGrid? I am also wondering how to get values from the DataGrid in general. I need to render the DataGrid to a HTML table, I mean, read columns and rows from the dataG

Re: [flexcoders] Reading the displayed value in a DataGrid - How to

2005-10-10 Thread Oscar . Cortes
Let me reformulate my question. Usually you can use selectedItem. columnName to read the value of a row/column of a datagrid. This seems to work fine as shown in the Flex Sample Explorer ( example below). But how can you read the value of a computed column that was added in addition to the colu

Re: [flexcoders] Reading the displayed value in a DataGrid - How to

2005-10-11 Thread Oscar . Cortes
Thanks Ramu, but the columnName is fixed in this case, not binding is involved. As a matter of fact, I am not sure if you can use binding for a column name.

[flexcoders] Using an extended DataGrid Class - Don't know how to parse element "http://www.macromedia.com/2003/mxml:columns"

2005-10-12 Thread Oscar . Cortes
Now that I am able to read the DataGrid displayed values, I am facing another problem. When I try to use my new class, the one that extended the DataGrid ( GridHTML.as), I am getting this error message: Don't know how to parse element "http://www.macromedia.com/2003/mxml:columns";. It is not a kn

RE: [flexcoders] Reading the displayed value in a DataGrid - How to

2005-10-12 Thread Oscar . Cortes
I just noticed that this post never made it to the list .. - Forwarded by Oscar Cortes/ServiceCenter/US/SunLife on 10/12/2005 02:01 PM

RE: [flexcoders] Reading the displayed value in a DataGrid - How to

2005-10-12 Thread Oscar . Cortes
I just noticed that this post never made it to the list .. - Forwarded by Oscar Cortes/ServiceCenter/US/SunLife on 10/12/2005 02:01 PM

Re: [flexcoders] Java VO.

2005-10-13 Thread Oscar . Cortes
Omar, Are you using ColdFusion with Flex? Check out the "gateway-config.xml" file and check the "serialization" section. I had the same problem, and you actually have different options. Classic truecc:

Re: [flexcoders] Java VO.

2005-10-13 Thread Oscar . Cortes
Hi Oscar, I am using Flex with JRUN and Java classes. Does this applies too? And what did you do to fix the problem. Thanks Omar Ramos System Developer On 10/13/05, [EMAIL PROTECTED] <[EMAIL PROTECT

Re: [flexcoders] Any explanation as to why this would happen( Question about accordions)

2005-10-13 Thread Oscar . Cortes
If the second panel has not been open yet then it has not been created thus the first panel would not have a way to reach it. Is this the case?

Re: [flexcoders] Any explanation as to why this would happen( Question about ...

2005-10-13 Thread Oscar . Cortes
I think you can use some binding here. However, I am not sure if you are using the button in the first panel for testing, or for calling some more logic. In any case you can trying binding a control in the first panel with the second. For example: If you have Panel1 --- txt_TextI

RE: [flexcoders] Reading the displayed value in a DataGrid - How to

2005-10-13 Thread Oscar . Cortes
makes sense. It reads what it is in the cell and not what it is in the dataprovider for the same position. However, it is not documented I believe. I found something similar in the Macromedia forums. Any comments? Thanks,

[flexcoders] Mapping java.sql.Timestamp to ActionScript

2005-11-04 Thread Oscar . Cortes
ActionScript VO back to Java we get an error message about a data type that is not recognized. Any ideas? -Oscar. --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to

[flexcoders] Comparing two Tree nodes.

2005-11-08 Thread Oscar . Cortes
I am doing some Drag&Drop between trees and I need to validate that an existing node does not exist more than once in a Tree branch. I am able to loop in the branch where I am dropping the node and then compare with the dropped node. However the statement if ( NodeinBranch == receiveNode)

[flexcoders] AddTreeNode sometimes does not add but instead replaces the top node.

2005-11-15 Thread Oscar . Cortes
I created a Tree using something like treeDP= new TreeNode(), and adding branches and items. I have some functionality that inserts new nodes to an existent branch. Sometimes, the AddTreeNode works fine and sometimes it doesn't add a node but instead replaces the top one. I am using this synta

RE: [flexcoders] AddTreeNode sometimes does not add but instead replaces the top node.

2005-11-16 Thread Oscar . Cortes
I actually found out what was happening. I assigned the selectedNode to two different local variables, then delete the child nodes from one of them thinking that it would be independent from the other one. This was actually not true since although I assigned the node to two different variables both

[flexcoders] How to hide the line in a Drag and Drop Operation

2005-11-16 Thread Oscar . Cortes
How can I hide the line that shows when doing Drag and Drop ? My drop target is a Tree, but we don't want to show the line. Thanks --- This e-mail message (including attachments, if any) is intended for the use of the indivi

[flexcoders] Unresolved symbol, 'NameSymbol', required by __Packages.com.myComponent

2005-11-17 Thread Oscar . Cortes
I have the SimpleSquare.as, I am trying to embed a symbol it is there in a component. I get this error message: Unresolved symbol, SimpleSquare, required by __Packages.commoncomp.Tree2 The thing is that it works in one Flex environment and it does not a different one. [Emb

RE: [flexcoders] Unresolved symbol, 'NameSymbol', required by __Packages.com.myComponent

2005-11-17 Thread Oscar . Cortes
, which is sitting at the same level as the component that is trying to use it. One Flex environment is my local PC with Windows and I am deploying to a Unix server, which is where it does not work .. Than

[flexcoders] flashgateway.GatewayException: Error occurred while attempting to convert an input arguments type.

2005-11-21 Thread Oscar . Cortes
I am sending back a AS VO to Java. Originally, I got the AS VO populated from Java. I made some changes and now I want to send it back, but I am getting this error message. flashgateway.GatewayException: Error occurred while attempting to convert an input arguments type. What does it mean?

RE: [flexcoders] Mapping Java HashMap to Flex Actionscript

2005-11-30 Thread Oscar . Cortes
You can read it like this: for (var key in myObjmap){ var myItem=myObjmap[key]; Do something myItem.property } One question on this topic how do we send them back to Java?Let's say you added a new key to the HashMap in Flex and want to send it bac

Re: [flexcoders] addTreeNode Parameters question

2005-11-30 Thread Oscar . Cortes
You can do something like var node:Object = new Object(); node.label = "LABELTEST"; node.data = "DATATEST"; node.url = "url" node.index =1; node.state ="VI"; var root = treeDP.addTreeNode(node); You can later access the values using the getProperty method. |

[flexcoders] Binding remoteobject.method.result to a ComboBox or Tree

2005-07-13 Thread Oscar . Cortes
I call a remote object successfully. I can check that because I can dump the result (XML) in a TextArea control: However, I want to show the results in a ComboBox or a tree: This is an example of functions.getTypesListAll.result

RE: [flexcoders] Binding remoteobject.method.result to a ComboBox or Tree

2005-07-13 Thread Oscar . Cortes
";> All of the Comboboxes are empty. I actually need to show the list at the FunctionType level. Function 1 Function 2 Any advice? Than

[flexcoders] XML as dataprovider : Changes to unknown property, childNodes, will not be detected.

2005-08-02 Thread Oscar . Cortes
I am using a Remote object that returns a string in a XML format, and converting this string to XML by using XMLStr = new XML(Str) I then use XMLStr as dataProvider in a Tree. . The results are displaying OK, but I get a warning message: Changes to unknown property, childNo

RE: [flexcoders] XML as dataprovider : Changes to unknown property, childNodes, will not be detected.

2005-08-03 Thread Oscar . Cortes
Thanks Matt, I kept trying last night and this also works: // Import the TreeNode. import mx.controls.treeclasses.TreeNode; // Create a data provider variable. var treeDP; function resultHandler(result) { var XMLStr:XML;

[flexcoders] How to handle a returned Java Collection in Flex - RemoteObject call

2005-08-03 Thread Oscar . Cortes
hanks, -Oscar. --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidentia

RE  : [flexcoders] startDrag() not working

2005-08-03 Thread Oscar . Cortes
Hi Philippe, You can probably try using a HorizontalList with a cellrenderer. You can then use implement Action Scripts functions for the drag and drop events. The Flex store that comes with the examples shows how to do that.

Re: [flexcoders] Array of VOs class loading issue

2005-08-03 Thread Oscar . Cortes
I think your are missing the parenthesis... var test:myV0 = new myV0();

RE: [flexcoders] How to handle a returned Java Collection in Flex - RemoteObject call

2005-08-04 Thread Oscar . Cortes
of VOs. I declared a RemoteObject in Flex, and tried to assign the event.result to an Array variable, but it actually didn't work. I want to use this data as the DataProvider of ComboBoxes, or List, etc. How can I read this dat

RE: [flexcoders] How to handle a returned Java Collection in Flex - RemoteObject call

2005-08-05 Thread Oscar . Cortes
Thanks Matt, that makes sense. However, it still doesn't work. It might be coming with a different name. Is there any way to display the object and the name of its attributes? Thanks, -

RE: [flexcoders] How to handle a returned Java Collection in Flex - RemoteObject call

2005-08-08 Thread Oscar . Cortes
handle a returned Java Collection in Flex - RemoteObject call Thanks Matt, that makes sense. However, it still doesn't work. It might be coming with a different name. Is there any way to display the object and the name of its attributes? Thanks, -Oscar. "Matt Chotin&q

[flexcoders] Calling RemoteObject declared in a mxml component in an application-The property being referenced does not ...

2005-08-16 Thread Oscar . Cortes
I want to have all my RemoteObject declarations in a mxml component that I can later use in another application. I created a services.mxml file where I have something like this: http://www.macromedia.com/2003/mxml";>

[flexcoders] Cannot assign selected value from a radiobutton that was created dynamically.

2005-08-16 Thread Oscar . Cortes
I am creating radioButtons dynamically using an array. When I try to assign the selected value into a Text or TextArea it doesn't work. It seems that I am using addEventListener correctly since I am able to see the event.target.data in an Alert. This application shows what I mean: 1. The ra

Re: [flexcoders] horizontalList

2005-08-17 Thread Oscar . Cortes
I am not sure but what about selectedChild "Philippe Mae

RE: [flexcoders] Cannot assign selected value from a radiobutton that was created dynamically.

2005-08-18 Thread Oscar . Cortes
Thanks, this worked. I will read more about EventListener and Delegate

RE: [flexcoders] Calling RemoteObject declared in a mxml component in an application-The property being referenced does not ...

2005-08-19 Thread Oscar . Cortes
It is working but now the Handler is not being called when getMyList() is called in the initialize of a ComboBox. If I call getMyList() from a button for example it works. I didn't have this problem when including the RemoteObject in the same mxml. Any ideas? // Remote call to getMyData in

RE: [flexcoders] How to handle a returned Java Collection in Flex - RemoteObject call

2005-08-19 Thread Oscar . Cortes
it still doesn't work. It might be coming with a different name. Is there any way to display the object and the name of its attributes? Thanks, -Oscar. "Matt Chotin" To: flexcoders@yahoogroups.com <[EMAIL PROTECTED]>

[flexcoders] How to use the label Function in a Tree that has different labels in the parents and the children.

2005-09-02 Thread Oscar . Cortes
I am trying to populate a Tree with a result that has hierarchical data. It actually populates correctly but the parent and the children don't have the same label description, and the children are displaying as [object][object]. I am using a label function to get the parent label name, and that's w

Re: [flexcoders] How to use the label Function in a Tree that has different labels in the parents and the children - Solved

2005-09-02 Thread Oscar . Cortes
I changed the function to : private function lblFunc(oItem:Object):String { if (oItem.hasChildNodes()){ return oItem.getProperty("deptDesc"); } else { return oItem.getProperty("empName"); } }

[flexcoders] I have an overloaded Java method, How can I call an specific method using RemoteObject?

2005-09-08 Thread Oscar . Cortes
I have a overloaded method in Java which I am calling using RemoteObject. One version of the methods requires X parameters while the other requires Y. I am trying to call the one with Y but it Flex tries to call the one with X by the default. How can I tell Flex which to call? Thanks

Re: [flexcoders] Re: I have an overloaded Java method, How can I call an specific method using Re

2005-09-09 Thread Oscar . Cortes
I am not sure if I am following this idea. I declared the RemoteObject with a method name, and then the arguments. Something like this: .. Remote Object ... idNumber idName .