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
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
Are you calling listCities.send() in some place?
Try casting the result to an Array ...
myArray= mx.utils.ArrayUtil.toArray(event.result);
It worked for me in a similar case ...
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
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
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.
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
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
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
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:
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
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?
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
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,
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
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)
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
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
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
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
, 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
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?
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
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.
|
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
";>
All of the Comboboxes are empty. I actually need to show the list at
the FunctionType level.
Function 1
Function 2
Any advice?
Than
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
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;
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
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.
I think your are missing the parenthesis...
var test:myV0 = new myV0();
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
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,
-
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
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";>
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
I am not sure but what about selectedChild
"Philippe Mae
Thanks, this worked. I will read more about EventListener and Delegate
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
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]>
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
I changed the function to :
private function lblFunc(oItem:Object):String
{
if (oItem.hasChildNodes()){
return oItem.getProperty("deptDesc");
}
else
{ return oItem.getProperty("empName");
}
}
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
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
.
45 matches
Mail list logo