# setting foreign type

**URL:** <https://forum.servoy.com/t/setting-foreign-type/14849>\
**Category:** Classic Servoy\
**Created:** [October 12, 2011, 6:56am UTC](https://forum.servoy.com/t/setting-foreign-type/14849 "2011-10-12T06:56:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rogel](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@rogel](https://forum.servoy.com/u/rogel)\
**Post date:** [October 12, 2011, 6:56am UTC](https://forum.servoy.com/t/setting-foreign-type/14849/1 "2011-10-12T06:56:25Z")

</div>

hi! how do you use the foreign type? should you put it in the parent column that will be used as foreign key to other table or on the other table fields that has the foreign key?

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [October 12, 2011, 8:17pm UTC](https://forum.servoy.com/t/setting-foreign-type/14849/2 "2011-10-12T20:17:00Z")

</div>

Rogel,

It is described in the wiki: [https://wiki.servoy.com:8443/display/pu … oreignType](https://wiki.servoy.com:8443/display/public/DOCS/Defining+a+Data+Model#DefiningaDataModel-ForeignType)

Rob
