Skip to Content
author's profile photo Former Member
Former Member

TableView-Iterator: get field value

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Feb 10, 2004 at 04:34 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.