cancel
Showing results for 
Search instead for 
Did you mean: 

Table compatibilityMode, checkbox and button click events

former_member540174
Participant
0 Kudos

Hi All!

I'm at NW 7.0 SPS14 - I have a table that shows detail records . The last two columns of the table are a check box and a view button. I've notcied that when compatibilityMode is set to auto there is a server roundtrip for each check box selected - no there is no event on the checkbox - this isn't acceptable for my user as they are selecting zero to many checkboxes (indicates selected employee) and then clicking a button and the worthless wait is painful. I changed the compatibilityMode to nw04Plus and this behavior (roundtrip for each checkbox selected) went away. Here's my problem....I have a view button on each table row....this one I DO want to function. I've found that the button click though it runs the onClick event did not know which table entry was clicked. Any ideas on how I can figure out what row is clicked


Property                                  Value
   Element Properties [Table]
      accessibilityDescription
      compatibilityMode                    auto

      dataSource                           CalculatedValues.CalcEmployeeSettings
      design                               standard
      emptyTableText                       No employees found
      enabled                              true
      firstVisibleRow                      0
      firstVisibleScrollableCol
      fixedTableLayout                     false
      footerVisible                        false
      gridMode                             both
      id                                   Table
      layoutdata                           MatrixHeadData
      legendId
      readOnly                             false
      rowSelectable                        false
      scrollableColCount                   -1
      selectedPopin
      selectionChangeBehaviour             auto
      selectionMode                        none
      tooltip                              <>
      visible                              visible
      visibleRowCount                      -1
      width
   Events
      onFilter
      onLeadSelect
      onSort

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use source mapping for the action associated with the button to acheive this.

Regards

Ayyapparaj

former_member540174
Participant
0 Kudos

Can you give an example of what you mean by source mapping?

Former Member
0 Kudos

Hi Diane Fuller

Please go through http://help.sap.com/SAPHELP_NW70/helpdata/EN/60/1f1f056f057d4d962375efd3c92ed0/content.htm

Ex:

IWDButton button =(IWDButton) view.getElement("<Your Button>");

button.mappingOfOnAction().addSourceMapping("nodeElement", "nodeElement");

Create a parameter to the action of type either IWDNodeElement or TypedOne with name as "nodeElement"

Regards

Ayyapparaj

Answers (0)