Skip to main content
Nov 8, 2018 3:40 PM UTC
Solved

Association between two things from different templates

Hi Team,

 

Need assistance on accomplishing association between things of different templates(that doesnot have inheritance between them) may be primary and foreign key relation or must use a dataTable to achieve this? 

 

Can any one pls suggest

PaiChungAnswer
Nov 8, 2018 4:13 PM UTC

Thing1 would have a property that helps it to 'maintain' what other Thing(s) it 'relates' to

so I could do something like

Things[me.myRelatedThing].someValue to access a property value in that related Thing.

4 replies

Nov 8, 2018 3:51 PM UTC

Often times we use a Network for this.

Not sure if there is an actual hierarchical relationship

else you can use a property in either Thing to 'point' to the other Thing

vijay5Author
Nov 8, 2018 3:57 PM UTC

Thanks for the reply

 

Can you pls brief on 

 

you can use a property in either Thing to 'point' to the other Thing

PaiChungAnswer
Nov 8, 2018 4:13 PM UTC

Thing1 would have a property that helps it to 'maintain' what other Thing(s) it 'relates' to

so I could do something like

Things[me.myRelatedThing].someValue to access a property value in that related Thing.