Scott,
Thank you for your help! I got so used into using cfsavecontent, I
didn't think about other alternatives. I did what you suggested and
everything is working perfectly. Thank you very much for your quick
reply.
-alfie
On Mar 27, 5:42 pm, Scott Talsma <[EMAIL PROTECTED]> wrote:
> There is nothing farcry that would prevent this from working. We use
> flashforms quite a bit on the backend.
>
> Are you doing this in a flashform? If so, you may want to use a script
> form item, and then place your savecontent stuff into a ActionScript
> function, and simply point at the function.
>
> <cfform type="flash">
> <cfformitem type="script">
>
> function populateGrid() {
> if(_global.arrMembers == undefined) _global.arrMembers =
> gridEnhance.dataProvider.slice(0);
>
> var arrMembers = _global.arrMembers;
> var arrDisplay:Array = [ ];
>
> for(var i = 0; i < arrMembers.length; i++)
> {
> if(arrMembers[i].status_id == getCallStatus.value ||
> getCallStatus.value == 'All')
> {
> arrDisplay.push(arrMembers[i]);
> }
> }
> gridEnhance.dataProvider = arrDisplay;
>
> }
>
> </cfformitem>
>
> <cfselect name="getCallStatus" label="Call Status: "
> queryposition="below" width="100" query="statusList" display="name_l"
> value="status_id"
> onChange="populateGrid()">
> <option value="All">All</option>
> </cfselect>
>
> Alfie1109 wrote:
> > Hi everyone,
>
> > I am stuck again with something. I have a cfselect/dropdown menu
> > (which is populated by data from the database). My goal is when I
> > select something from the dropdown menu, It will populate my datagrid
> > with the data selected. I successfully accomplished this in
> > coldfusion and its working fine, but when I transfer the same .cfm
> > file into farcry, my cfselect/dropdown menu is not working anymore.
> > My datagrid is not getting populated by the data selected in the
> > cfselect/dropdown menu. Here is my code: Is there something I am
> > missing that I needed to add into my code in order for me to get this
> > to work in farcry?
>
> > ***************************************************************************
> > ***************************************************************************
> > ****************************
>
> > <cfsavecontent variable="populateGrid">
> > if(_global.arrMembers == undefined) _global.arrMembers =
> > gridEnhance.dataProvider.slice(0);
>
> > var arrMembers = _global.arrMembers;
> > var arrDisplay:Array = [ ];
>
> > for(var i = 0; i < arrMembers.length; i++)
> > {
> > if(arrMembers[i].status_id == getCallStatus.value ||
> > getCallStatus.value == 'All')
> > {
> > arrDisplay.push(arrMembers[i]);
> > }
> > }
> > gridEnhance.dataProvider = arrDisplay;
> > </cfsavecontent>
>
> > ***************************************************************************
> > ***************************************************************************
> > ****************************
>
> > ***************************************************************************
> > ***************************************************************************
> > ****************************
>
> > <cfselect name="getCallStatus" label="Call Status: "
> > queryposition="below" width="100" query="statusList" display="name_l"
> > value="status_id"
> > onChange="#populateGrid#">
> > <option value="All">All</option>
> > </cfselect>
>
> > ***************************************************************************
> > ***************************************************************************
> > ****************************
>
> > ***************************************************************************
> > ***************************************************************************
> > ****************************
>
> > <cfgrid name="gridEnhance" query="getLists"
> > rowheaders="no" ............etc..... >
>
> > ***************************************************************************
> > ***************************************************************************
> > ****************************
>
> > Thanks again for any help!
>
> > -a
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---