cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

inputfield and iterator

Former Member
0 Likes
640

Hi group!!

I'm using a table view with iterator. In this tableview i have a different checkboxes and a inputfield.

With the checkboxes i don't have problems becuase i can use de event on click and save the modified data, but with the inputfield i have a big problem.

The inputfield only appears in some cases (this is correct) but i don't know how to save the data introduced in the inputfield .

I created the inputfield like this:

p_replacement_bee = cl_htmlb_inputfield=>factory(

id = p_cell_id

disabled = lv_disable

MAXLENGTH = '12'

size = '12'

WIDTH = '80'

value = m_row_ref->reference

type = 'STRING'

TOOLTIP = 'IReference' ).

And when I press some of the other checkboxes the data disappear and i don't know what to do to save the data,

Thanks in advance!

View Entire Topic
Former Member
0 Likes

Sorry and thanks Patrick!!!

I had the <htmlb:form> defined in my layout, but it's certainly taht if i create a object inside the iterator like:

Data: form type ref to cl_htmlb_form.

create object form.

the iterator doen't crash but the values are not stored...

snif... I only want to save the values that the user puts in an inputfield but i don't know how to do... aixxx!!!

any other suggestion, please?

Former Member
0 Likes

Hi Miquel,

you don't need to instantiate cl_htmlb_form in iterator - you have to you BSP-element <HTMLB:form> in your page with flow logic or in your view if you're using MVC.

e.g.


<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
  <htmlb:page title="Test" >
    <htmlb:form id           = "TEST"
                method       = "POST"
                autoComplete = "TRUE" >
      <htmlb:tableView id = "..."/>
    </htmlb:form>
  </htmlb:page>
</htmlb:content>

The data will be available after changing an input in your table in onInputProcessing of your flow logic page - look at the link in Tatvagnas first reply.

Regards,

Sebastian

Message was edited by:

Sebastian Behne