two selected records in list view

Hello,

I am doing a “double search” like this in a list view:

controller.find();
ebene = 1;
controller.search();

controller.find();
sortierung = globals.navigationModul + '%';
controller.search(false, false);

controller.sort('sortierung asc');

After all relevant records are found, I have two “selected” records. You can even see the black current record mark twice.

Once I click somewhere in the background, only one record is selected like it should be. I have tried to use requestFocus to simulate the “clicking somewhere”, but that was unsuccessful.

Thanks
Patrick

i am not able to reproduce that double selection problem. What version of servoy are you using?

But besides that why are you doing it that way? This will trigger in 3! queries. And you can do it in one:

controller.find(); 
ebene = 1; 
controller.newRecord();
sortierung = globals.navigationModul + '%'; 
controller.sort('sortierung asc');
controller.search(false, false);

I am using 2.1.2.

I was doing the query that way because I did some things between the two terms.

I was trying to build a sample solution but cannot get it to go wrong, although the setup is very simple. The behaviour in my solution is very consistent, though. Anyway, I will check with the next version and if not, send over the solution that has the problem.

Thanks!
Patrick