Skip to Content
author's profile photo
Former Member

How to stop eventing when we click rows in table

Hi All,

In webdynpro table, whenever we click on any row of a table it creates an event. Everytime you click on different row of that table it creates an event.

eg.

consider 10 rows,

row1

row2

row3

row4

row5

row6

row7

row8

row9

row10

when I click on row2, it creates an event,

again if I create other rows other than row2 it creates event.

once we click on any row, clicking on that same row doesn't create an event.

but clicking on some other row creates an event.

<b>Can anyone suggest how to stop this eventing in table while selecting rows.</b>

Thanks in advance.

Hanif Kukkalli

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • author's profile photo
    Former Member
    Posted on Jun 11, 2007 at 05:33 PM

    If you are using version NW04s, set the value of property "compatibilityMode" to "nw04_plus".

    Armin

    Add comment
    10|10000 characters needed characters exceeded

    • Hallo Armin,

      for me the table property "compatibilityMode" to "nw04Plus" is not working.

      I have the same behaviour for input fields inside a table.

      The same functionality works for me under NW2004, but behaves different under NW2004s/7.0 SP12.

      My Properties:

      fixedTableLayout = false

      footerVisible = false

      gridMode = both

      readOnly = false

      rowSelectable = false

      selectionChangeBehavior = auto*

      selectionMode = none

      visibleRowCount = -1

      I think, nw04Plus eliminates one round trip.

      1) I am using this table without selection column

      2) I use one button with source mapping

      IWDButton btnAdd = (IWDButton) view.getElement("AddToCart");

      btnAdd.mappingOfOnAction().addSourceMapping("nodeElement", "article");

      3) I have one input field "qty" with no "onEnterEvent"

      There is no addtional roundtrip on clicking table row or cell!

      The roundtrip only takes place on the "onFocus" Event of the input field, but there is not such a event in the design time!

      How can i avoid these roundtrip (it works for NW2004), because on large tables it is a huge performance bottleneck.

      Best wishes,

      Holger

  • author's profile photo
    Former Member
    Posted on Jun 11, 2007 at 01:34 PM

    Hi,

    Make the table readonly.Then it will not fire any event as the table is not selectable.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Jun 11, 2007 at 01:27 PM

    Hi Hanif,

    If u want a read only table,make the selection mode property as none in ur table .

    regards

    Sumit

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 11, 2007 at 01:30 PM

    Remove the event that is entered in the onLeadSelect property of the table. That way it won't fire an event.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Sumit,

      its not because of input fields I am using in columns of my tables.

      I hav checked with text view alone

      for every table with readonly property = false, it creates event.

      Please check it.

      Thanks

      Hanif Kukkalli.