Unwanted onRecordSelection

Hi, just wondering if application.setValueListItems(), called from a global scope, is supposed to call onRecordSelection in the current window, because it does.

Could someone, please, explain why setting valuelist items calls onRecordSelection?
I need to know how to avoid it or, if it’s a Servoy bug, it needs to be fixed.

Never seen this behaviour.
As no one else responded to this thread, there’s probably no issue.

Is it possible to reveal more of the code you’re running around this ‘setValueListItems’?
Also which version of Servoy are you on?

it should not really result in a onrecordselection, but i guess some refresh happens because you change a valuelist that is used on that form?

If you have a sample solution demonstrating this (in the latest servoy version) please make a case.

jcompagner:
it should not really result in a onrecordselection, but i guess some refresh happens because you change a valuelist that is used on that form?

If you have a sample solution demonstrating this (in the latest servoy version) please make a case.

Can’t reproduce it in a sample :(