Hi,
I have the following data scenario:
A main entity with around 60 different fields/attributes.
This attributes were divided into sub-groups of information.
In the end all of them must be related to the main entity,.
For a matter of clarity and design, instead of having one table with 60 columns, they have been divided into several different tables that have groups of information of certain kind, always related to the main entity.
For example suppose the main entity is a car; the car has 60 features, some from the engine, some from the cabin, some for security, and so on.
To make it a little worse, some of the security features are mutually exclusive depending on the cabin type (if the cabin is of type A, then the security attributes will be the ones related to type A cabin, and so for B and C cabin types). That means that there are 3 security tables, one with the specific features of each cabin.
All of these tables are related by a one to one relationship. If I query the main entity I should be able to retrieve the information of all the related tables, via their relationships through the main entity id.
My intention was to have a single form divided into tabs, each tab with a given sub-set of the information, basically the information of one of the "sub-tables".
The problem I find and over which I will greatly appreciate any advice is the following:
In order to relate the information of each sub-table to the main entity/taable, I need the unique id of the record, for which I must have that record already saved in the database so the id is generated.
So, first question, is that possible, using Form states, or some other Form property, before changing to the sub-tabs?
If this is impossible at this time, or simply a bad approach, what would you recommend in order to achieve such a thing?
I think that alternatively a cascading of lists, forms, lists .... could be another possibility, however at first sight it seems much more confusing and cumbersome for data input, than having the tab layout.
Well, this is the scenario. I hope I was able to explain it clearly enough. Otherwise please do no hesitate in asking for clarification. If you find any catastrophic design flaw please feel free to express it. I'm open to ideas. (although a bit constrained by the data model that was kind of given to me)
Thank you very much!!!
Warm regards