Jump to content
  • 0

Views when all tables are not mandatory


pse_cs
 Share

Question

I have 4 related tables which are fed from several forms. Only the forms feeding into the first table are mandatory for all applicants. For the remaining 3 tables, it depends on the type of applicant as to whether they need to complete the related forms or not.

BUT, I need to be able to print one summary report showing all of the data, regardless of whether the applicant has posted data to all 4 tables or just 2 or 3.

I created a view of all 4 tables. In the view I indicated the key field that connects each of the 4 tables. However it seems that if that key field isn't present for all 4 tables (i.e. because the applicant didn't need to complete that table's form), then no record is returned.

Help! Please tell me there is a way to retrieve all of the data from multiple tables when only some of the tables are required!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi,

What I can think of is to create new records in all tables upon inserting the new record in the first table. This way the second, third, and forth tables will have the record with the same unique ID but other fields would be blank till user fill them out. So even if they don't fill them out, the view can join the tables and display the record.

This would be a database trigger in the backend, please contact Caspio Support http://www.caspio.com/support/ to get more information.

Best,

Bahar M.

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...