yeh.. so it's like this.. instead of <cfparam name="form.foo" value="bar"> x the number of form fields,
I query the data for a valid ID or ID=0 (no results).. Set "FORM" to the resultset. (i only run this query if there are is no form struct data from a previous submit).. Then in the form field, I use: value="#form.foo#" This drastically reduces teh complexity of the form file and lets me (via fusebox) include the form again if theres a validation error, while maintaing the state of the form.. It's all in the sake of reducing code and simplifying the Add/ Edit & submission / validation functionalities.. I can provide an example if it's still not clear.. The bottom line is, I can't seem to operate on the form scope, as if it's read only or something.. Works a charm in CF8 and 9.. but not so much in openBD.. The temporary solution I've found is to take the query results, convert to struct, append to attributes scope.. I'd love to not have to change all my forms tho.. This particular setup had been really doing it for me.. :-( On Feb 3, 3:37 pm, Matthew Woodward <[email protected]> wrote: > Bill Berzinskas wrote: > > form = application.foo.getBar(id=event.getvalue('id')); > > I may be misunderstanding what you're trying to accomplish here, but are > you trying to take a returned struct from a CFC method and set that to > the name form? Just making sure I'm getting it. > > -- > Matt Woodward > [email protected]http://www.mattwoodward.com/blog > > Please do not send me proprietary file formats such as Word, PowerPoint, etc. > as attachments.http://www.gnu.org/philosophy/no-word-attachments.html > > smime.p7s > 4KViewDownload --~--~---------~--~----~------------~-------~--~----~ 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 !! -~----------~----~----~----~------~----~------~--~---
