> That syntax didn't change anything.. My query is returning results,
> just not setting form scope..
Oh, I see what you mean. My apologies, that was my own misunderstanding.
I don't know if I've ever tried this personally, but perhaps you need to
initialize the form scope first. IE:
form = StructNew();
form = application.foo.getBar(id=event.getvalue('id'));
In fact, the adobe livedocs use a similar scenario to what you're doing
in their example of StructNew()
http://livedocs.adobe.com/coldfusion/6.1/htmldocs/funca103.htm
Worth a shot anyway before writing a loop...
HTH
Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Open BlueDragon Steering Committee
Adobe Solution Provider
Bill Berzinskas wrote:
> That syntax didn't change anything.. My query is returning results,
> just not setting form scope..
>
> So, that being the case, would the recommended approach be to use
> fuseboxes attributes scope? The data from teh form submit should be
> available there (via the new event scope). In which case, I've got
> to change my "form = " to some sort of loop to populate the
> attributes.. ya?
>
>
> On Feb 3, 3:01 pm, Jordan Michaels <[email protected]> wrote:
>> This seems like one of those cases where slightly incorrect syntax (it's
>> something pretty much all of us do from time to time) was accepted by
>> traditional CF and no code exists to accept this sort of thing in OpenBD.
>>
>> What does replacing this:
>> form = application.foo.getBar(id=event.getvalue('id'));
>>
>> with this:
>> form = application.foo.getBar(event.getvalue('id'));
>>
>> do for you?
>>
>> Warm regards,
>> Jordan Michaels
>> Vivio Technologieshttp://www.viviotech.net/
>> Open BlueDragon Steering Committee
>> Adobe Solution Provider
>>
>> Bill Berzinskas wrote:
>>> Hello,
>>> I'm in the process of attempting to port a fusebox 5.5 noxml
>>> application to bluedragon. I've had a few snags, nothing major.. But
>>> I am having one problem I can't quite figure out.. so here goes:
>>> When a form is loaded on my site, i query the db for the ID or ID=0
>>> for a new entry. I take the results of this and set it to the form
>>> scope. something to the effect of:
>>> form = application.foo.getBar(id=event.getvalue('id'));
>>> This works great in traditional CF, but in openBD, I don't seem to be
>>> able to do this. The form scope remains empty.. Thoughts?
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
http://groups.google.com/group/openbd?hl=en
official site @ http://www.openbluedragon.org/
!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---