Newbies zilly Posted October 23, 2008 Newbies Posted October 23, 2008 Hi How would I go about sending data inputted in a form to two independate tables?
Fitch Posted October 23, 2008 Posted October 23, 2008 A typical "form" would have a "submit" button. Does yours? If so, this could be easily scripted.
Newbies zilly Posted October 24, 2008 Author Newbies Posted October 24, 2008 yes it does. How would you go about scripting this?
Vaughan Posted October 24, 2008 Posted October 24, 2008 From a data design perspective, the data should not need to go to two different tables. The whole idea behind relational databases is to remove duplication of data...
comment Posted October 24, 2008 Posted October 24, 2008 The question can be interpreted in so many ways. Basically, any layout with a portal is a "form" that "sends" user input to two independent tables.
Fitch Posted October 24, 2008 Posted October 24, 2008 Setting aside questions of whether it's a good idea to do this, and with only a vague idea of your database structure... attach a script like this to your button: Set Variable( $name ; name field ) Set Variable( $city ; city field ) Go to layout( "table A" ) Set Field( nameA; $name ) Set Field( cityA; $city ) Go to layout( "table B" ) Set Field( nameB; $name ) Set Field( cityB; $city ) Go to layout( original layout )
Recommended Posts
This topic is 6221 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now