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

inputfield and iterator

Former Member
0 Likes
662

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

don't work Patrick!!! thanks again!!!

If you have some other idea don't hesitate to put here!!!

Former Member
0 Likes

Hi again,

let me correct the bugs, I posted In my last post I used input and inputfield - which are the same. Do not give "me" to bsp_element of method cl_htmlb_manager=>render_event_call because "me" is the instance of the iterator class and this will not work.

Your compiler does not know htmlb_events=>inputfield_submitted? The class htmlb_events must be there or the bsp framework won't work.


  DATA: lrf_ip TYPE REF TO cl_htmlb_inputfield,
            event_html TYPE string,
            lrf_table_bee TYPE REF TO cl_bsp_bee_table.

  lrf_ip ?= cl_htmlb_inputfield=>factory(
                                id            = p_cell_id
                                disabled      = 'FALSE'
                                maxlength     = '12'
                                size          = '12'
                                width         = '80'
                                value         = 'XXX'
                                type          = 'STRING'
                                submitonenter = 'TRUE'
                                tooltip       = 'Insertar referencia' ).


  event_html = cl_htmlb_manager=>render_event_call(
                                        bsp_element = lrf_ip
                                        event_type  = htmlb_events=>inputfield_submitted
                                        server_event = 'VALUECHANGED'
                                        return_value = 'FALSE'
                                        client_event = ''
                                        client_event_inlined = '' ).

  CONCATENATE '<script language="JavaScript">'
              'function fire_VALUECHANGED(){'
              event_html
              '}'
              '</script>'
              '<script for="'
              p_cell_id
              '" event="onchange" type="text/javascript">'
              'fire_VALUECHANGED();'
              '</script>'
  INTO event_html.

  CREATE OBJECT lrf_table_bee.
  lrf_table_bee->add( level = 1 element = lrf_ip ).
  lrf_table_bee->add_html( level = 1 html = event_html ).

  p_replacement_bee ?= lrf_table_bee.

Sorry for the confusion! Reward some points for the helpful answers.

Regards,

Sebastian