Skip to main content
Apr 5, 2006 8:39 PM UTC
Question

Extremely simple Flash CFGrid not populating

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 is closed to new replies. Start a new post to keep the conversation going.

    14 replies

    Fabiano Magno Pechibella
    Inspiring
    Jul 29, 2016 2:48 PM UTC

    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

    Translate
    Participant
    May 1, 2010 2:00 AM UTC

    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!

    Translate
    Inspiring
    Apr 17, 2006 6:21 PM UTC
    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.
    Translate
    Apr 17, 2006 6:58 PM UTC
    Thanks for your help, but it still doesn't work. I tried your code and have the exact same error as before.
    Translate
    Inspiring
    Apr 17, 2006 7:31 PM UTC
    What is the error, because it should work?
    Translate
    Apr 6, 2006 5:58 PM UTC
    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.
    Translate
    Apr 6, 2006 5:51 PM UTC
    Take out ----- format="flash"----- from the cfgrid tag
    Translate