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 a comment
10|10000 characters needed characters exceeded

Related questions

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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.