A Flex "form" is just a layout container.  There is no built-in "submit"
functionality.  There is no "submit button".

 

You will need to use one of the RPC data services to send your data to
the server.

 

Also be aware that two-way binding is not automatic.  Modifying a form
field does not automatically update the dataProvider.  You will need to
set this up if you want it.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of nasawebguy
Sent: Sunday, March 04, 2007 12:19 PM
To: [email protected]
Subject: [flexcoders] Simple form submit example

 

I need basic example code for a simple form submit. 
I'm using a flex form 
and have a ColdFusion CFC to do the insert. 

What I need is what gets the two talking?

I'm not using FDS at this point. Just ColdFusion MX7.02.

I assume I should use a remoteobject, but I don't know how to pass 
the flex form data to it when the user click submit.

What goes in the onclick on the submit button?
What AS do I need to pass the form data to the remoteobject?
What should the remoteobject look like to pass the data to the CFC?

I'm just learning flex, but I'm used to ColdFusion flash forms using 
cfinvoke arguments. I assume it is done using remoteobject instead 
of cfinvoke. But I'm open to the easiest way to do it.

Thanks,
Don

 

Reply via email to