Howard,
Check out qForms:
http://www.pengoworks.com/qforms/docs/examples/setfields.htm
I also did a WDDX Form example I used to have online a while ok, but I've
taken it offline as it was extremely outdated.
Using the method in the qForms example above, you'd just need to do
something like this.
1) When data is submitted to the server, save the FORM scope/structure as a
WDDX packet (in this example, I'll call it "wddxPacket".)
2) On the edit page, invoke the following command somewhere within your
<head></head> tags:
<script>
<cfwddx
action="WDDX2JS"
input="#wddxPacket#"
toplevelvariable="oSavedData">
</script>
3) Now in the example, change the code "objForm.setFields(stcForm);" to:
objForm.setFields(oSavedData);
Obviously, you'll want to change the example around to match your exact
needs (i.e., you'll probably want to invoke the setFields() method during
the onLoad event of the document.)
-Dan
> -----Original Message-----
> From: Owens, Howard [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 06, 2003 9:17 PM
> To: CF-Talk
> Subject: Building Dynamic Forms with WDDX -- Examples Needed
>
> I want to build a form where I load the query data into a WDDX2JS packet,
> then have a select box of "company name" and when a new company is
> selected
> the rest of the "edit" form is populated with the matching data, which it
> can then be edited, and then submitted for updating the database.
>
> I know I've seen this done. I found a tutorial one time, but now that I
> really want to do it, I can't find the tutorial.
>
> Could you guys send me links, examples of how this is done.
>
> H.
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Howard Owens
> Internet Operations Coordinator
> InsideVC.com/Ventura County Star
> [EMAIL PROTECTED]
> AIM: GoCatGo1956
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4