Selecting one record in multi-select

Hi,

If I have three records highlighted in table display mode, and click on the light blue button to display the second or third highlighted one in data entry mode, it always displays the first. In the attached illustration, if I click on “Chloris Lechmann”, it will display “Brian Buck”. On the other hand, if I click on “Camille Edwards”, it will display her rather than “Brian Buck”, even though the three lines are still highlighted.

I’m using the following on the click button,

function editSlctdRecord_student_browse(event) {
globals.newRecordFormName = “” // 1.16.2012 replaced earlier Boolean
application.showForm(forms.student_i_tab_0);
}

Does anyone know how to address this issue?

Thank you,
Don

I don’t know if I understand your problem, but you mean that the
selected records you get via scripting is not the same as the highlighted ones ?
can you paste the code where you get the selected records in the scripting ?

Hi Gabi,

I’ve attached another picture that includes a trace in the debugger. I have highlighted records 5, 7, and 9 in the list. I clicked on the arrow button (“->”) associated with the middle highlighted row, for student “Camille” (record 7). But when I run the trace, foundset.getSelectedIndex() always shows the first record (5). If I cannot detect the correct record (the one that the user is clicking on) in multi-select, the user will be mightily confused when they open the wrong student. That is what is happening at present - it opens row 5 (“Brian”).

Moreover, the user’s expectation when clicking on one row when more than one row is selected, is that the other rows will de-select. I think that this is normal behavior for the Windows and Mac desktops, and the other applications that I can think of at the moment.

We’ve corresponded about this in the past and I’m sorry it keeps coming up.

Thank you,
Don

when in multiselect you should use foundset.getSelectedIndexes, to get
all the selelected rows, using foundset.getSelectedIndex will return only the
first from the selection;
what version of Servoy do you use ? as there was an issue with not-deselecting rows
on click, when multiselect mode is on, that was fixed

Hi Gabi,

I’m using 5.2.11, and it is still not de-selecting when the user clicks on a single row. I think that the problem might be due to one of the following:

a. If a row is already highlighted as part of the set of highlighted records, it doesn’t seem to detect the click.

b. Possibly clicking on the button causes that event to fire before the de-select/re-select occurs.

My interest is in displaying only the row that the user clicked on; as it is, if the user clicks on any highlighted row beyond the first, it will still return the first highlighted row, and the user will be looking at the wrong record.

Thank you,
Don

can you please create a case for this in
our support system ? ( http://www.servoy.com/s )
it would be helpful if you also add a sample solution with the issue