Skip to Content
avatar image
Former Member

multiselection and initial selection


can I deactivate the initial selection behaviour on tables?

My problem is, I want to iterate multiselection indexes but it wont return any elements until you really click into the table and select the (already selected) first line.

btw this forum has a sense of humor:

No search results for "getmultiselection". You should try a less restrictive search.

Did you mean: gremlins ...


.. I dont really want to build a workaround and just call getElementAt(0), this would be kinda ugly.

thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jun 15, 2010 at 03:37 PM


    First using the following code do the initial lead selection to none



    change the property of the node which is binding to the table Node - Property - Selection - 0..n.

    From the implementation you can get the selected rows and their values.

    ITableElement tableEle = null;
    for(int i=0;i<wdContext.nodeTable().size();i++){
    boolean aa = wdContext.nodeTable().isMultiSelected(i);
    wdComponentAPI.getMessageManager().reportSuccess(" Selected "+i);
    tableEle = (ITableElement)wdContext.nodeTable().getElementAt(i+1);


    Satish Kumar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 14, 2010 at 10:40 AM

    nevermind: initialize lead selection (in context) is the way to do it.

    however, is there another method that would supply getMultiSelection automatically?

    Add comment
    10|10000 characters needed characters exceeded