cancel
Showing results for 
Search instead for 
Did you mean: 

TableView-Iterator: get field value

Former Member
0 Kudos

Hello,

we use in our MVC-Application the htmlb-iterator to render table fields with checkboxes. Within the iterator-class renderer_cell_start we have to know  if the current checkbox is ticked or not to enable/disable other checkboxes.

How can we retrieve the value of the name-field given in p_cell_binding?

We set the value like this:

..

      CREATE OBJECT lo_checkbox.

      lo_checkbox->id = p_cell_id.

...

      lo_checkbox->_checked = p_cell_binding.

..

      p_replacement_bee = lo_checkbox.

Regards, Bernd

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

p_row_data_ref gives you a pointer to the row of the internal table you are currently processing.  You can moving this into a workable structure by assigning this reference to a field symbol and moving that to a variable that matches the structure of your internal table.

field-symbols: to tempchar.

    move tempchar to column_value.

  endif.

  condense column_value.

Former Member
0 Kudos

Hi Thomas,

this is the coding I used so far.

But with data binding I was told to use the p_cell_binding - import parameter and the '_' attributes like '_value' or '_checked'.

So, maybe I have to combine these two technologies. Let's go for another debugging session...

Thanks, Bernd