cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

I have an issue with a tableView. The attribute of selectionMode is "LINEEDIT". The problem is that when I select a line, then I edit some column value, after that I navigate to the next page and the to the previous page, here I am loosing all the values of the entire line. The problem is that in the OnInputProcessing Event I'm updating all the values. For this, I use the methods GET_CELL_ID, GET_FORM_FIELD, I also tried with GET_CELL_VALUE. This methods always return a value, except when I navigate a page forward and then a page backward, in this moment I don't get a value. All this happen when I have a line selected (edition mode). The state of the BSP is statefull. The problem I think that is when the event of the tableView is not 'rowSelection', when the event is 'navigate' then the methods of GET... sometimes do not return anything. I need to get that data in the navigate event so I can change between pages preserving the changes.

Someone know why is this happening?

Regards,

Isaac Meléndez

0 Likes
View Entire Topic
raja_thangamani
Active Contributor
0 Likes

The simplest solution is use Databinding:


<htmlb:tableView id       = "tbv
                     table    = "//model/your_itab"
                     selectionMode = "SINGLESELECT"
                     keyColumn = "Key_field"
                     selectedRowIndex = "<%= selected_row%>"
                    iterator = "<%= I_ITERATOR %>"

Raja

Former Member
0 Likes

Hi Raja,

I had my tableView like the code you suggest. The problem is when I navigate between pages and I have one record selected. What I have done is when the user navigate I deselect the record using selected_row = 0. Thanks anyway.

Regards,

Isaac Meléndez