# Change valuelist that is filled by a relation

**URL:** <https://forum.servoy.com/t/change-valuelist-that-is-filled-by-a-relation/17370>\
**Category:** Classic Servoy\
**Created:** [July 30, 2013, 1:36pm UTC](https://forum.servoy.com/t/change-valuelist-that-is-filled-by-a-relation/17370 "2013-07-30T13:36:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deezzub](https://avatars.discourse-cdn.com/v4/letter/d/dec6dc/32.png) [@deezzub](https://forum.servoy.com/u/deezzub)\
**Post date:** [July 30, 2013, 1:36pm UTC](https://forum.servoy.com/t/change-valuelist-that-is-filled-by-a-relation/17370/1 "2013-07-30T13:36:41Z")

</div>

Is it possible to change a valuelist, that is filled by a relation, which is created with Servoy developer, programmatically with values from another relation? If yes, how? I tried with the following 2 functions, but the values aren’t set to the valuelist:

```auto
application.setValueListItems( 'val_schiffname', customersVessels );
elements.tf_vessel.setValueListItems( customersVessels );

```

The dataset / array _customersVessels_ is not empty.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [August 1, 2013, 8:23am UTC](https://forum.servoy.com/t/change-valuelist-that-is-filled-by-a-relation/17370/2 "2013-08-01T08:23:15Z")

</div>

no setting values only work on custom valluelist  
You can’t just set data in a valuelist that is controlled by a relation
