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

inputfield and iterator

Former Member
0 Likes
661

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

Hi Miguel,

Reading value of inputField on a tableView is indeed very simple...

Just check out my reply on

Hope this helps.

<b><i>Do reward each useful answer..!</i></b>

Thanks,

Tatvagna.

Former Member
0 Likes

Tatvagna thanks for the anser but I think it isn't my solution.

I 'm doing this for save the checboxes value beacuse I'm starting an event and I can put the lofgic that I want on the onInputProcessing, but with the inputfield is different beacuse i can't start and event and if the user put some information in one of the rows of the tableview and then click a checkbox in a different row i can not recover the value of the row that has the inputfield with data (the implementation of the iterator makes that i loss the data because the tableview cells are created again.

Tnhanks in adavance.

athavanraja
Active Contributor
0 Likes

for the input fields value attribute use variables.

<htmlb: inputField id = "ip"

value = "<%= comment %>"

(same holds good inside iterator as well)

then in oninputprocessing you should do the following

data: ip type ref to cl_htmlb_inputfield .

ip ?= cl_htmlb_manager=>get_data( request = request

name = 'inputField'

id = 'ip' ).

if not ip is initial .

<variableused in the inputfielddeclaration> = ip->value .

endif .