Skip to main content
July 23, 2008
Question

Populating a CFGRID

  • July 23, 2008
  • 1 reply
  • 649 views
I want to populate a cfgrid contained inside a flash form, depending on a serch criteria. Is there anyway to do it without using flash remoting controls? I have tried to follow the "Real Estate" example but I can't see the application working fine locally.

This topic has been closed for replies.

1 reply

Inspiring
August 6, 2008
Ayuso_15,

Hope this is what you are looking for. Here is an example of how a CFGrid would be if you want the result from a query. This does not need flash remote to get the result. You will need to have the hidden UniqueID coming from the Search Page.


<cfform name="FormName" format="flash" action="Form.cfm" method="post" width="1000" height="440" timeout="700" style="marginTop: 0; background-color:##99CCFF;">
<cfinput type="hidden" name="UniqueID"
bind="{GridName.dataProvider[GridName.selectedIndex]['UniqueID']}"
onChange="GridName.dataProvider.editField(GridName.selectedIndex, 'UniqueID', UniqueID.text);"/>
<cfformgroup type="panel" label="Search Result" style="indicatorGap:0; verticalGap:5; headerColors: ##277DC6, ##50ABF7; background-color:##99CCFF">

<cfgrid name="GridName" query="QueryName" height="325" autoWidth="yes" align="center" colheaderfont="verdana" colheaderfontsize="10" colheaderbold="yes" font="verdana" fontsize="10" rowheaders="no">
<cfgridColumn name="UniqueID" display="no" width="200">
<cfgridColumn name="Field1" header="Field1Title" width="200">
<cfgridColumn name="Field2" header="Field2Title" width="200">
</cfgrid>
</cfformgroup>
</cfform>


If you need any further help, I'll be glad to help you.