Skip to Content

Problems with Selection in Table / Context

Hi there,

the following problem seems to be a bug:

Create a table, selectionMode auto or multi, with a context bound to it with cardinality and selection 0..n.

When the table shows up the first time (and there are some lines filled), the first row seems to be selected (orange, not yellow). If you press a button and ask all elements in the action method if they are multiselected, this is false for all!

If instead you click on the first element (not on the checkbox, but on the content), the element you click on gets focus, and now, clicking the button, you see that this element is selected - even if there is no difference in the visual selection state.

Additional remark: Within the IWDNode API I would expect the methods:

- Iterator getMultiSelectedElements()

- void multiSelectAll()

Thanks in advance


Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 22, 2004 at 12:19 PM

    Hi Detlev,

    The first line has the Lead Selection, because you set the node "initializeLeadSelection = true". The multiple selection is initially empty. Lead Selection overwrites the multiple selection (visually spoken). A click into the table sets Lead and multiple Selection at the same time on the line.

    The solution would be: set "initializeLeadSelection = false" or alternatively you would instead of calling IWDNode.isMultiSelected(i) simply call IWDNode.isSelected(i).

    Hope that helps!


    Add comment
    10|10000 characters needed characters exceeded