Hoping that @boston85719 will stumble across this thread and sort me out
This is long overdue, but I just started looking at relational database structure today (oddly haven’t had a need for it before). I’ve read dozens of threads on the forum about it and watched several videos. And I’m still at a loss.
Creating the “link” is done by creating a “Datatype B” with a type of “Datatype A”. Now “Datatype B” has access to what’s stored in “Datatype A”, supposedly.
In my idea of linking, that means I can simply call for information that is stored in “Datatype A” through a repeatingGroup displaying “Datatype B”. so the following search should yield the same result;
Search for DataTypeAs’s Points
and
Search for DataTypeBs’s PointsLinked’s Points
(PointsLinked is of Type DataTypeA)
This of course does not yield the same result, because there is no “Link” to the existing entries in DataTypeA. And The second search will of course return nothing, since the PointsLinked field is empty in the Database.
To remedy this, I found one, out of all the videos I watched and threads I read that actually populated the linked datatype, in this case “DataTypeB’s PointsLinked”. In that video, the person simply creates the entry for DataTypeB at the same time as he’s creating it for DataTypeA.
Workflow
Step 1. Create a new thing > DataTypeA > Points > Input’s value
Step 2. Create a new thing > DataTypeB > PointsLinked > Result of Step 1
I suppose at this stage there could be some behind the scene pseudo linking going on.
As from here on, I can not add points to PointsLinked, but I can delete value, which I then assume is simple breaking this “link”? I am also able to make changes to DataTypeA’s points and that will be reflected in DataTypeB’s PointsLInked without a second step needed in the workflow to alter
DataTypeB (as I had to do when creating the first entry, what I assume is creating the link)
So where does this leave me?
- From what I gather, a “linked” datatype. a data type of a data type, a so called inception datatype if you will, does not go and look for what already exists inside a secondary/linked data type.
I.e. Hey Bubble, I want you to find what’s inside the Points field of DataType A, through the eyes of DataType B’s PointsLinked
-
The relation/linking between the two datatypes is not created when you create a datatype of a second datatype in the Bubble Data tab. Instead the Linking of the two happens in the workflow when you create a Thing? So each thing you create that you want to be linked will require a second workflow step (or multiple if you have several links) to create the link between two entries?
-
From what I can tell, the two entries has to be created at the same time? So if you are well into development and then need to link a new type of data to a pre-existing type, you’re SOL?
(I’m going to assume I’m just misunderstanding this)
So, @boston85719, or anyone else with a great understanding of bubble’s relational data structure, please, please, tell me what it is I can’t see,