I have a cfgrid with SelectMode="Edit" and when I submit it the action page
does not seem have the 3 arrays that its supposed to have.
One of the arrays are "form.gridname.rowstatus" I test for it and it is not
defined.
I recently upgraded to CF5, this code used to work in CF4.5.
Anyone know why im not getting the arrays like im supposed to?
A bit of test code is below
Thanks,
Jeff
-------------------------------------------- code
-----------------------------------------------------
<cfif IsDefined("Action")>
<cfif IsDefined("Form.Products.rowstatus.action")>
Form.Products.RowStatus.Action is defined<br>
<cfelse>
Form.Products.RowStatus.Action is NOT defined<br>
</cfif>
</cfif>
<cfform action="#ThisPage#" method="POST" enablecab="Yes">
<cfgrid name="Products" selectmode="EDIT" insert="Yes" delete="Yes"
width="620" height="226" colheaderfontsize="15" rowheaderfontsize="15" >
<cfgridcolumn name="SKU" header="SKU" headeralign="CENTER"
width="120">
<cfgridcolumn name="ProductName" header="Product Name
(description)" headeralign="CENTER" width="300">
<cfgridcolumn name="Quantity" header="Qty"
headeralign="CENTER" dataalign="CENTER" width="50">
<cfgridcolumn name="Price" headeralign="CENTER"
dataalign="CENTER" width="60">
<cfgridcolumn name="ProdSort" header="Sort"
headeralign="CENTER" dataalign="CENTER" width="55">
<cfset ProdSort = 10 >
<cfloop from="1" to="10" index="PreRow">
<cfgridrow data="sku123,Test Product,0,10,10">
<cfset ProdSort = ProdSort + 10 >
</cfloop>
</cfgrid>
<br>
<input type="submit" name="Action" value="Add Products">
</cfform>
-------------------------------------------- code
-----------------------------------------------------
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists