set a column value

If I want to copy a value to a column of a (related) table I do so by stepping through all rows.

However I would like a function like ```
table_to_related_table.setDataProviderValue(‘name’, ‘value’);


Would that be possible. And, with that question I also would like an explanation of **controller.setDataProviderValue** because I don't understand what this does for us...

you ask for a setDataProviderValue on a relation (so you know what that should do) but you ask what controller.setDataProviderValue does?

what it does is set the given value for the dataprovider in the selected row. This way you can dynamic, dataprovider name is extracted from somewhere, set a value in the selected row.

What do you want exactly with the relation.setDataProviderValue.. i think you want to set the complete column to that value?
This would make the behaviour different then the controllers.. so i wouldn’t call it that way, but more: setColumnValue or something like that.

Yes, I asked for it since I expected a behaviour like I thought of but got something else. That’s why… Thanks for the explantion Johan.

Yes, I want to set the value of a column in a foundset. If that would be possible I would be very happy!

see the jsfoundsetupdater…
http://forum.servoy.com/viewtopic.php?t … et+updater

Thanks Johan, missed that one… Exactly what I want :D