all groups > coldfusion flash integration > november 2005 >
You're in the

coldfusion flash integration

group:

Flash form doesn't work, please help!


Flash form doesn't work, please help! Stranger_Sliver
11/25/2005 6:40:15 PM
coldfusion flash integration:
I made cfform many times, but this is the real first time with Flash
integration.
The form never pass information to saveorder.cfm file invoked in the action of
the form definition

This the code:


<cfquery name="loadstatus" datasource="#application.DSN#">
select * from status
</cfquery>

<cfquery name="commands" datasource="#application.DSN#">
select depcode, DivDescription
from departments
order by DivDescription
</cfquery>

<cfsavecontent variable="requiresum">
tot.text = Number(Quantity.text) * Number(Costbyunit.text);
</cfsavecontent>

<cfform action="saveorder.cfm" method="post" name="formL" format="flash"
width="771" height="450" skin="haloblue">
<cfformgroup type="panel" label="New Order Process">
<cfformgroup type="hbox">
<cfinput type="text" name="Ordernumber" label="Order
Number" width="100"/>
<cfinput type="text" name="vendornumber" label="Vendor
Order Number" width="100"/>
</cfformgroup>

<cfformgroup type="horizontal">
<cfinput type="datefield" name="DataOrd" width = "100"
label="Order Date" validate="date"/>
<cfselect name="Status" width = "150" label="Status"
maxlength="19" query="loadstatus"
display="Status"></cfselect>

</cfformgroup>

<cfformgroup type="horizontal">
<cfinput type="text" name="Customer" label="Customer"
width="200"/>
<cfinput type="text" name="Email" label="Email"
validate="email" width="300"/>
</cfformgroup>


<!--- <cfinput type="text" name="Rate" width = "100"
label="Rate" maxlength="6" validate="float"/> --->

<cfformgroup type="tile" style="background-color:##999999;
border-bottom-color:##666666; text-align: left;">

<cfformgroup type="VBox" >

<cftree
format="flash"
Name="tree1"
Width="250"
Height="80"
HScroll="yes"
VScroll="yes"
Border="yes"
AppendKey="yes">

<cftreeitem value="depcode, DivDescription"
display="depcode, DivDescription"
query="commands"
queryasroot="no"
img="COMPUTER,cd"
expand="no,no">
</cftree>
</cfformgroup>



<cfformgroup type="VBox" width="250" style="left:auto">
<cfinput type="text" name="display" label="Department"
bind="{tree1.selectedNode.getProperty('data').display}">
<!--- <cfinput type="text" name="value" label="value"
bind="{tree1.selectedNode.getProperty('data').value}"> --->
<cfinput type="text" name="path" label="Command"
bind="{tree1.selectedNode.getProperty('data').path}">
</cfformgroup>

</cfformgroup>

<cfinput type="text" name="Product" label="Product" width="250"/>
<cfformgroup type="horizontal">
<cfinput type="text" name="Costbyunit" label="Cost
by Unit" validate="float" width="90"/>
<cfinput type="text" name="Quantity"
label="Quantity" width="40" validate="integer" onchange="#requiresum#"/>
<cfinput type="text" name="tot" label="Tot"
width="70"/>
</cfformgroup>
<cftextarea name="ProductDesc" label="Product Description" width="350"
height="50" maxlength="200"/>
<cfformgroup type="horizontal">
<cfinput type="button" name="Submit" value="Submit Order">
</cfformgroup>
</cfformgroup>
</cfform>
Re: Flash form doesn't work, please help! XMXMXMX
12/2/2005 10:20:21 PM
If you sorted yours could you have a look at mine its driving me nuts and my times running out. This is the title...

Java error when calling actionscript with cfdocument output

AddThis Social Bookmark Button