Avatar of sglee
sglee
 asked on

Converting CFGRID from Flash to HTML in Coldfusion

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>
HTMLAdobe FlashColdFusion Language

Avatar of undefined
Last Comment
_agx_

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
_agx_

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck