cancel
Showing results for 
Search instead for 
Did you mean: 

Update table view on screen

Former Member
0 Kudos
47

Dear all,

I have made a bsp application according to the mvc model.

Delta handling is selected in the controller.

I am using a table view control to display an internal table with 5 columns and one of them is an input field which is defined as a checkbox in the iterator.

Above the table view there is a button which must deselect all checkbox-input fields in the table view.

At first, when table view is filled initially all checkboxes are set to 'X'. When selecting the button, all checkboxes are cleared in the 'do handle event' of the controller. Everything ok untill now.

When manually selecting a checkbox and again pushing the button the checkboxes are not cleared on the screen. But in the background the field is cleared.

When deactivating the delta-handling, the problem is solved but I want to use delta-handling.

Does anyone now how to update the table view on the screen so that changes are not only made in the background but also on the screen?

Thanks in advance.

Minda

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Ok thanks I will look for a note.

Will keep you updated.

Former Member
0 Kudos

Hello Minda,

I had a similar problems. I solved this by forcing a server roundtrip.

I did this by using a code some like below using a bee in the table iterator (IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START)

...

case p_column_key.

when 'COLUMN_NAME'.

if_defafp = cl_htmlb_checkbox=>factory(

id = p_cell_id

disabled = l_input_disabled ).

if_defafp->_checked = p_cell_binding.

if_defafp->onclick = 'ANY_EVENT'.

p_replacement_bee = if_defafp.

endcase.

...

Hope this helps, Hans

Former Member
0 Kudos

Hello Hans,

This workaround solves the problem, thanks!

Will also search for a note.

Minda

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

This sounds really familiar - like I have read an OSS note on the subject. Have you searched OSS as this sounds like a bug.