Jump to content
  • 0

Modify tables in view


profphillips2000
 Share

Question

I created a View which joins two tables (inner).

table one is a member table which contains information about each member (key = "member_id").

table two is an order table which contains information about each order placed (key = "order_id").

I am interested in creating a submission form which IDEALLY simultaneously places an order AND creates a new member. to the best of my understanding, this would require updating both tables in the View, which seems to be prohibited.

Any thoughts on how to do this?

Thank you!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Best way is to have users register first so you have the member info in your member table. Then create an authenticated submission page based on order table. This way you can get the member ID from authentication table and save it in order table. To get a report of all of the orders of that user then you can use the view as the source of the report page.

Here is the tutorial about authentication: http://howto.caspio.com/authentication/ ... ntication/

Let me know if it helps.

Cheers!!

Link to comment
Share on other sites

  • 0

Hi,

We cannot modify table through views, but, if you want to create a record in two different tables at once, you may use triggered actions. Through that, you may check if a member already exists, and if not, the trigger will create one.

 

More information about Triggered Actions can be found through this HowTo Article Link: https://howto.caspio.com/tables-and-views/triggered-actions/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...