# Valuelist based on global variables

**URL:** <https://forum.servoy.com/t/valuelist-based-on-global-variables/16895>\
**Category:** Classic Servoy\
**Created:** [January 4, 2013, 1:14am UTC](https://forum.servoy.com/t/valuelist-based-on-global-variables/16895 "2013-01-04T01:14:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maria.kyselova](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@maria.kyselova](https://forum.servoy.com/u/maria.kyselova)\
**Post date:** [January 4, 2013, 1:14am UTC](https://forum.servoy.com/t/valuelist-based-on-global-variables/16895/1 "2013-01-04T01:14:30Z")

</div>

Hi All,

I noticed that I cannot get the real values from a valuelist that is based on global variables.  
The valuelist seems to work all right if attached to a combobox, returns the actual variable value.  
However if I’m trying to execute application.getValueListItems(valueListName); - I get the string ‘%%globals.phoneTypeWork%%’.  
Is it how it’s expected to work?

Cheers,  
Maria

P.S. The valuelist contents:

```auto
i18n:lbl.setup.jobcustomerphonetype.work|%%globals.phoneTypeWork%%
i18n:lbl.setup.jobcustomerphonetype.home|%%globals.phoneTypeHome%%

```

---

<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:** [January 7, 2013, 8:52am UTC](https://forum.servoy.com/t/valuelist-based-on-global-variables/16895/2 "2013-01-07T08:52:44Z")

</div>

maria,

Have a look at utils.stringReplaceTags()

Rob
