cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop eventing when we click rows in table

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Armin

Former Member
0 Kudos

I am using NW04 only, not NW04s

Thanks,

Hanif

Former Member
0 Kudos

It's also in NW04 since SP13.

Armin

Former Member
0 Kudos

Hello Everyone,

Can any of you provide me these library files?

1. import com.sap.tc.webdynpro.clientserver.uielib.standard.api.WDTableCompatibilityMode;

2. import com.sap.tut.wd.tutwd_table.tablecomp.wdp.IMessageTableComp;

3. import com.sap.tut.wd.tutwd_table.tablecomp.wdp.IPrivateTableCompatibilityModeView;

This might help me to solve my problem.

Thanks,

Hanif Kukkalli

hschaefer123
Participant
0 Kudos

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

Former Member
0 Kudos

Hi,

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

Greg_Austin
Active Participant
0 Kudos

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

Former Member
0 Kudos

I have not selected any event for OnLeadSelect.

I cant use read only as I have input fields for that.

I have used selection mode property as <b>none</b> in my table

Any idea how to stop eventing now?

Thanks for your replies,

Hanif Kukkalli

Former Member
0 Kudos

Hi Hanif,

R u sure that after making the selection mode property as none also its not working??Once u make it none,the very first column ,from where u select the row,itself become invisible :-).I just tried that & its working.

regards

Sumit

Former Member
0 Kudos

Ya, the column of squares to select becomes invisible.

but, clicking on other columns creates event.

please check it.

it creates an event for any column in that table for different rows.

check it and reply.

Thanks,

Hanif kukkalli.

Greg_Austin
Active Participant
0 Kudos

Hanif,

What event is firing and what are you trying to do that isn't working?

Former Member
0 Kudos

Hi Hanif,

Thats bcos of ur UI element ,what u have used as table column.In ur case its bcos of input field.

Do u want to set the values in input field without selecting that cell???

regards

Sumit

Former Member
0 Kudos

Hi Greg,

Its not firing any specified event.

Its creates a blank event, and refreshes the page.

every row you select to enter values, it creates a blank event to activate that row.

the one solution is end users instead on clicking on it need to use tab key from keyboard to avoid that eventing.

click any one row first.

you can check it by placing your cursor on each row without clicking it.

on selected row it shows normal arrow,

where as on other rows ithe cursor comes out as a hand to click.

check the internet progress bar, it shows eventing.

Any more questions to solve my problem, you can ask me.

Thanks

Hanif Kukkalli.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Hanif,

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

regards

Sumit

Former Member
0 Kudos

I cant use readonly because I am using input fields for that.

its a table with multiple rows and some input columns.

Former Member
0 Kudos

Hi Hanif,

In that case make selection mode property as none in ur table .

regards

Sumit