Skip to main content
April 5, 2006
Question

Extremely simple Flash CFGrid not populating

  • April 5, 2006
  • 5 replies
  • 5410 views
Hello,

I am just beginning to work with CFGrid and CFForm and I have an extremely simple flash CFGrid that is not populating. The headers load fine from my query, but the data does not. I am sure the query returns data, because I output it on the screen directly before I display the grid, and everything is fine.

Here is the code:

<CFQUERY name="getCommunities" datasource="#datasource#">
SELECT *
FROM VG_Community
</CFQUERY>

<CFOUTPUT query="getCommunities">
#intCommunityID# - #strCommunity#<br />
</CFOUTPUT>

<CFFORM name="communityForm" width="80%" format="flash">

<CFGRID name="communityGrid" format="flash" height="425" width="600" query="getCommunities">

<CFGRIDCOLUMN name="intCommunityID">
<CFGRIDCOLUMN name="strCommunity">

</CFGRID>

</CFFORM>

I do not know if this is relevant, but due to my installation, I do not have direct access to the webroot/CFIDE/scripts folder. However, I have copied the folder to a location I can access and changed the default location in administrator, which made my other CFForms work normally.

Thanks,
J
    This topic has been closed for replies.

    5 replies

    Fabiano Magno Pechibella
    Inspiring
    July 29, 2016

    Hi ZeroBarrier,

    Follows a simple example of a code of cfgrid.

    <cfquery name="qCenters" datasource="cfdocexamples" maxrows="10">
    SELECT Name,City,Country FROM Centers
    </cfquery>

    <cfform method="post" name="GridExampleForm">
    <cfgrid
       name="Centers"
       query="qCenters"
       format="flash"
       width="400"
       height="275"
      >

    </cfgrid>
    </cfform>

    Best,

    Fabiano Magno Pechibella

    Participant
    May 1, 2010

    While I understand this is an older post, I actaully had this same problem with Coldfusion 9 running on Apache on CentOS 5.4.  I posted the solution on http://aliencgi.com/coldfusion/59/.

    The resolution was that I needed to modify the Apache config file to include an alias to CFIDE since we had removed it from the websites.

    Hope this helps some other poor soul out there!

    Inspiring
    April 17, 2006
    Try this.

    <CFFORM name="communityForm" width="80%" format="flash">
    <CFGRID name="communityGrid" format="flash" height="425" width="200" query="gridVision">
    <cfgridcolumn name="intCommunityID" header="Community ID" display="yes" width="100">
    <cfgridcolumn name="strCommunity" header="Community" display="yes" width="100">
    </CFGRID>
    </CFFORM>

    This error means that you don't have the right syntax "coldfusion.applets.CFGridApplet notinited" for the cfform flash.
    April 17, 2006
    Thanks for your help, but it still doesn't work. I tried your code and have the exact same error as before.
    Inspiring
    April 17, 2006
    What is the error, because it should work?
    April 6, 2006
    I have tried that, but the applet does not load and I get a message that says "coldfusion.applets.CFGridApplet notinited".

    It doesn't matter anyway, we can't use a java solution here, although flash is acceptable.
    April 6, 2006
    Take out ----- format="flash"----- from the cfgrid tag