Valuelist not updating

I’m not sure it’s a bug or something wrong with my method: :)
If I add a value to a table that provides items for a valuelist, the item doesn’t show in the valuelist until i quit the solution (or switch to Designer Mode, in Developer).
I tried to add a controller.SaveData, but it doesn’t help (the value, in fact, IS trasferred to the record, but the valuelist doesn’t update accordingly).
The problem doesn’t occur if a add the record manually. Here is my method:

var answer = plugins.dialogs.showQuestionDialog( "Liste valori",  "Do you want to add value " + globals.gAggiungiLV + " to valuelist " + globals.gCampoLV + "?",  "OK",  "Cancel")
if ( answer == "OK" )
{
controller.loadAllRecords()
controller.newRecord()
controller.omitRecord()
controller.loadOmittedRecords()
//isolate the foundset, it's ugly, I know that ;-)

var fsUpdater = databaseManager.getFoundSetUpdater(foundset)
fsUpdater.setColumn(globals.gCampoLV,globals.gAggiungiLV)
fsUpdater.performUpdate();
controller.saveData();
Get_ValuelistItems();

}

Servoy 2.0.3, OSX.3.4

what kind of valuelist is it?
Is it a related/table or custom which you filll youreself?
(i see a call get_valuelistitems())

jcompagner:
what kind of valuelist is it?
Is it a related/table or custom which you filll youreself?
(i see a call get_valuelistitems())

It’s a list based on a field value (not accessed using a relationship: it shows all the values contained in a certain field).

Riccardino:
It’s a list based on a field value

You are saying there is a problem with db valueslist, when a new value is added via newRecord JavaScript call icw FoundSetUpdater?

Jan Blok:

Riccardino:
It’s a list based on a field value

You are saying there is a problem with db valueslist, when a new value is added via newRecord JavaScript call icw FoundSetUpdater?

Yes: the record is added correctly in the table “valuelist”, but the value list doesn’t update.
But if I add manually a field in that table, the valuelist is updated.

fixed in 2.1b5