macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Data Bind in html

Subject: Data Bind in html
From: "Gene Godsey"
Date: Fri, 17 Aug 2007 19:02:34 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion
Is it possible in CF8 to bind data to a form grom a CFGrind in html format?



 <!--- This is the Purchase Order Template --->

 <!--- Data Calls --->
        <cfinvoke component="components.data" method="getSuppliers" 
returnvariable="sMethodVar"/>
        <cfinvoke component="components.data" method="getPOs" 
returnvariable="poVar"/>
 <!--- End of Data Calls --->

 <cfform action="#cgi.script_name#?postback=2" method="post">
 <table align="left">
        <tr>
                <td><font size="-2">PO ID:</font></td>
                <td><cfinput type="Text" name="pid" required="No" visible="Yes" 
enabled="Yes" size="10"></td>
                <td></td>
                <td><font size="-2">Order Date:</font></td>
                <td class="df1" style="position:relative;z-index:2;"><cfinput 
type="datefield" name="oDate" size="15" class="df1"></td>
        </tr>
        
        <tr>
                <td><font size="-2">PO Number:</font></td>
                <td><cfinput type="Text" name="pon" required="No" visible="Yes" 
enabled="Yes" size="10"></td>
                <td></td>
                <td><font size="-2">Shipping Method:</font></td>
                <td><cfselect name="shipping" query="sMethodVar" 
display="ShippingMethod" 
value="ShippingMethod" width="15"/></td>
        </tr>
        
        <tr>
                <td><font size="-2">Supplier:</font></td>
                <td><cfinput type="Text" name="supplier" required="No" 
visible="Yes" 
enabled="Yes" size="20">&nbsp;
                        <font size="-3">Add</font>
                </td>
                <td></td>
                <td><font size="-2">Ship Date:</font></td>
                <td class="df2" style="position:relative;z-index:1;"><cfinput 
type="datefield" name="sDate" size="15"></td>
        </tr>
        
        <tr>
                <td><font size="-2">Employee:</font></td>
                <td><cfinput type="Text" name="employee" required="No" 
visible="Yes" 
enabled="Yes" size="20">&nbsp;
                        <font size="-3">Add</font>
                </td>
                <td></td>
                <td><font size="-2">Date Required:</font></td>
                <td class="df3" style="position:relative;z-index:0;"><cfinput 
type="datefield" name="rDate" size="15"></td>
        </tr>
        
        <tr>
                <td><font size="-2">Description:</font></td>
                <td><textarea name="description" cols="30" 
rows="2"></textarea></td>
                <td></td>
                <td><font size="-2">Date Promised:</font></td>
                <td><cfinput type="datefield" name="pDate" size="15"></td>
        </tr>
        <tr><td colspan="5"><hr size="3" style="color:black"></td></tr>
        
        <tr>
                <td colspan="5">
                        <cfgrid name="getData" format="html" query="poVar" 
autowidth="true" 
textcolor="blue" fontsize="10">
                                <cfgridcolumn name="poid" header="Product ID" 
select="true" display="true">
                                <cfgridcolumn name="OrderDate" header="Order 
Date">
                                <cfgridcolumn name="Product" header="Product">
                                <cfgridcolumn name="UnitsOrdered" header="Units 
Ordered">
                                <cfgridcolumn name="UnitPrice" header="Unit 
Price">
                                <cfgridcolumn name="SubTotal" header="SubTotal">
                        </cfgrid>
                </td>
        </tr>
 </table>
 </cfform>


<Prev in Thread] Current Thread [Next in Thread>