# relation based dataProvider for a field in a Portal

**URL:** <https://forum.servoy.com/t/relation-based-dataprovider-for-a-field-in-a-portal/14556>\
**Category:** Classic Servoy\
**Created:** [August 31, 2011, 8:53am UTC](https://forum.servoy.com/t/relation-based-dataprovider-for-a-field-in-a-portal/14556 "2011-08-31T08:53:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GabrielWyss](https://avatars.discourse-cdn.com/v4/letter/g/ed8c4c/32.png) [@GabrielWyss](https://forum.servoy.com/u/GabrielWyss)\
**Post date:** [August 31, 2011, 8:53am UTC](https://forum.servoy.com/t/relation-based-dataprovider-for-a-field-in-a-portal/14556/1 "2011-08-31T08:53:21Z")

</div>

Is it not possible to set the dataProvider of a field in a Portal to a relation?  
There is no possibility in the dialog ‘Select Data Provider’

---

<div class="post-metadata">

**Author:** ![Joas](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/joas/32/5095_2.png) [@Joas](https://forum.servoy.com/u/Joas)\
**Post date:** [August 31, 2011, 9:56am UTC](https://forum.servoy.com/t/relation-based-dataprovider-for-a-field-in-a-portal/14556/2 "2011-08-31T09:56:16Z")

</div>

You are right, please create a case about this in the support system: [http://www.servoy.com/s](http://www.servoy.com/s)

For now you can just recreate the portal and select the related fields you want.

---

<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:** [September 2, 2011, 3:31pm UTC](https://forum.servoy.com/t/relation-based-dataprovider-for-a-field-in-a-portal/14556/3 "2011-09-02T15:31:33Z")

</div>

Gabriel,

You can change the relation on the portal itself, select the portal and change the property relationName.  
Note that all fields in a portal must be from the same relation, so the relation is set at portal level, not a field level.

Rob

---

<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:** [September 7, 2011, 9:08am UTC](https://forum.servoy.com/t/relation-based-dataprovider-for-a-field-in-a-portal/14556/4 "2011-09-07T09:08:01Z")

</div>

Gabriel,

In Servoy 6.0.1 you will be able to select a related dataprovider for a portal field, but only of relations that start from the target table of the portal relation.

Note that this is already possible when you add a new dataprovider using the add-field-wizard while the portal is selected.

Rob
