i want to basically grab the results from a query and populate a heap of
form fields. Which i then want to update the record with after they have
made mods.. A basic edit form scenario.

I seem to be stuck.. in getting the query which is returned from a cfc into
flash in such a way to do soemthing usefull with it. I catch the result set
from the cfc, which is query result set with a single row in it.. I need to
set the values as local vars so i can then preselect the combo boxes etc..
You still with me ??

What would you do in this scenario ?
TIA

JB


"Scott Barnes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>
> Not sure on what your trying to achieve?
>
> You could simply set the yourTextfield.text = items[0].field?
>
> Personally when possible, i'd advise leveraging the dataprovider in v1,
> as its basically a simplified way of accessing Arrays much like CFMX (ie
> arrayInsertAt etc).
>
> Scott
>
>
> Jason Bayly wrote:
>
> > Thanks Scott,
> >
> > Any ideas on the best way to handle a sinlge row result set from a query
> > that i want to use to populate a form in flash so a user can update the
> > information etc.. I dont want to bind it to anything, but simply assign
the
> > values to text fields in my MC.
> >
> > Cheers
> > Jason
> >
> >
> >
> > "Scott Barnes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> >
> >>yourListbox.getSelectedIndex()
> >>
> >>If you want specifics or know where / how listbox handles its data, take
> >>a look at the dataprovider class (v1, v2), it will show you the way.
> >>
> >>If you are after v2 components "how to",
> >>then its:
> >>
> >>yourItem = myComboBox.selectedItem;
> >>trace("You selected the item " + yourItem );
> >>
> >>Regards
> >>Scott Barnes
> >>http://macrofun.pvpers.com
> >>
> >>
> >>
> >>Jason Bayly wrote:
> >>
> >>
> >>>Ok i think im on the right track with
> >>>
> >>>menuMain.setSelectedIndex(3);
> >>>
> >>>:))
> >>>
> >>>"Jason Bayly" <[EMAIL PROTECTED]> wrote in message
> >
> > news:[EMAIL PROTECTED]
> >
> >>>>Hi All
> >>>>
> >>>>Making headway on my flash forms using CFC's etc. One quick question
is,
> >>>>when doing an edit/update form how does one go about selecting (or
> >>>>defaulting to) an item in a dynamically populated combo box ? In cfml
we
> >>>>evalauate the value when generating the select list and select the
item
> >>>
> >>>with
> >>>
> >>>
> >>>>the correct value etc..
> >>>>
> >>>>How is this achieved in actionscript ??
> >>>>
> >>>>Cheers
> >>>>Jason
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>-- 
> >>Scott Barnes
> >>http://macrofun.pvpers.com
> >>
> >>
> >>
> >
> >
> >
> >
> >
>
>
> -- 
> Scott Barnes
> http://macrofun.pvpers.com
>
>
>



---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to