Designers > K2 Studio > Access > Understanding SmartObjects and Service Objects > SmartObject Relationships | Send feedback |
Relationships are configured between SmartObjects using the SmartObject Association Wizard. Running the wizard creates the foreign keys between the SmartObject tables enabling the association between SmartObjects. Data is returned from the SmartObject tables when reports are created and run. The available relationships are as follows:
In a One to One relationship the Foreign key is created in the parent SmartObject as shown below.
In a One to Many relationship the Foreign key is created in the Parent SmartObject as shown below:
In a Many to One relationship the Foreign key is created in the Child SmartObject as shown below:
In a Many to many relationship a new SmartObject is created and contain a Foreign key from each of the linking SmartObjects as shown below:
In K2 blackpearl extra SmartObject properties can be added to the new SmartObject as shown below with the Teacher ID: