Skip to Content
author's profile photo Former Member
Former Member

Disabling row in table control

Hi All,

We are developing an application in Webdynpro using java.

Can we disable or enable a row selection on certain condition in Table Control and if yes How?

Thanks & Regards,

Nilesh

Add comment
10|10000 characters needed characters exceeded

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 11:56 AM

    Hi

    See the Thread

    how-to-disable-a-row-in-a-table

    Kind Regards

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 11:57 AM

    Hi,

    Check Armin post to disable the particlular row cell editor based on condition using calculated attribute.

    Dynamic embedding 1 view in several tabs

    Problem with Table?

    Regards,

    Vijayakhanna Raman

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 11:58 AM

    Hi Nilesh

    This has been already discussed. See the forum link. It works fine.

    Accessing Table Lead Selected Row elements

    Hope it helps ;>)

    Rakesh

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 12:04 PM

    Nilesh,

    There is no way to disable <b>selection</b> of particular row(s). It is possible only to disable selection alltogether for whole table. Or to disable cell editors (as other suggesting).

    VS

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Having a look at this code, I recall that NW04s (probably latest NW04 SPs like SP16) has selectionChangeBehavior property on Table control.

      If you are using version that supports this property, you may do the following:

      1. Set selectionChangeBehavior=manual. This way row is not selected automatically.

      2. Add onLeadSelect action to table

      3. Create mapping of "nodeElement" parameter to parameter "row" of type IWDNodeElement

      4. In action handler check row.index(). If index is selectable, then execute wdContext.node<TableSource>().setLeadSelection( row.index() ) otherwise return.

      This way user will be unable to select certain rows. This works only with single selection (not multiple).

      Up to certain extent you may try the same even without selectionChangeBehavior property. Just always save lead selection to controller instance variable and try to restore previous selection in onLeadSelect action handler.

      Valery Silaev

      EPAM Systems

      http://www.NetWeaverTeam.com