We help IT Professionals succeed at work.
Get Started

Converting CFGRID from Flash to HTML in Coldfusion

323 Views
Last Modified: 2015-10-08
Order History in Flash and HTMLHi,
  I have CFGird using Flash format, but IE and Chrome browsers fail to display it. Firefox used to be the only browser to display it, but even the most recent version of Firefox fails to display it.
 So I had no choice but to change it to HTML format.
 However  My new code generates an error.
 Can you help?

Thanks.

*** OLD CODE ***
<cfform name="frmtest" skin="HaloBlue" timeout="120">
    <cfgrid name="gridtest"
        height="400" width="700"
        selectMode="row"
            sort = "yes"
        format="flash"
        rowHeaders="no"
            query = "GetOrderHistory"
        onChange = "getURL('OrderHistoryDetails.cfm?cfgridkey='+gridtest.selectedItem.ID)">

        <cfgridcolumn name="OrderDate" header="Order Date">
        <cfgridcolumn name="ID" header="Order No" width="60">
               <CFGRIDCOLUMN NAME="CustomerNo" DATAALIGN="LEFT"  HEADER="Cust##" width="60">
               <CFGRIDCOLUMN NAME="ShipTo1" DATAALIGN="LEFT"  HEADER="Ship To" width="150">
        <cfgridcolumn name="PONo" header="PONo">
        <cfgridcolumn name="Processor" header="Processor">
     </cfgrid>
</cfform>

**** NEW CODE ****
<cfform action = "#CGI.SCRIPT_NAME#">
    <cfgrid name = "FirstGrid" width = "800"
            query = "GetOrderHistory" colheaderbold="Yes"
            font = "Tahoma" rowHeaders = "No"
            selectColor = "Red" selectMode = "Edit" Format = "HTML">

        <cfgridcolumn name = "ID" header="ID" Select="No" display = "Yes" width=5>
        <cfgridcolumn name = "CustomerNo" header = "Customer No" Select="No" width="75" textcolor="blue"
                      bold="Yes" href="OrderHistoryDetails.cfm" hrefkey="ID">
               <CFGRIDCOLUMN NAME="OrderDate" DATAALIGN="LEFT"  HEADER="Order Date" mask="m-d-y" width="100">
        <cfgridcolumn name="ShipTo1" header="ShipTo1" width=70>
        <cfgridcolumn name="PONo" header="PONo" width=30>
        <cfgridcolumn name="Processor" header="Processor">          
    </cfgrid>
    <br>
    <cfinput type="submit" name="gridEntered">
</cfform>
Comment
Watch Question
CERTIFIED EXPERT
Most Valuable Expert 2015
Commented:
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE