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

inputfield and iterator

Former Member
0 Likes
646

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

Thanks Sebastian!!!

In my bsp the class htmlb_events doesn't exist exist one called cl_htmlb_event but this doesn't have a method called inputfield_submitted.

Furthermore, in the bsp_element i can't put a reference of inputfield becuase the doesn't admit this type. If you see the constructor of this class is:

APPEND 'htmlb:breadCrumb:click' TO events_dictionary.

APPEND 'htmlb:button:click' TO events_dictionary.

APPEND 'htmlb:checkbox:click' TO events_dictionary.

APPEND 'htmlb:image:click' TO events_dictionary.

APPEND 'htmlb:link:click' TO events_dictionary.

APPEND 'htmlb:radioButton:click' TO events_dictionary.

APPEND 'htmlb:tabStrip:click' TO events_dictionary.

APPEND 'htmlb:tree:click' TO events_dictionary.

APPEND 'htmlb:dateNavigator:navigate' TO events_dictionary.

APPEND 'htmlb:dateNavigator:monthclick' TO events_dictionary.

APPEND 'htmlb:dateNavigator:weekclick' TO events_dictionary.

APPEND 'htmlb:dateNavigator:dayclick' TO events_dictionary.

APPEND 'htmlb:dropdownListBox:select' TO events_dictionary.

APPEND 'htmlb:tableView:headerClick' TO events_dictionary.

APPEND 'htmlb:tableView:rowSelection' TO events_dictionary.

APPEND 'htmlb:tableView:cellClick' TO events_dictionary.

APPEND 'htmlb:tableView:navigate' TO events_dictionary.

APPEND 'htmlb:tableView:buttonItemClick' TO events_dictionary.

APPEND 'htmlb:tableView:linkItemClick' TO events_dictionary.

APPEND 'htmlb:tableView:filter' TO events_dictionary.

APPEND 'htmlb:tray:edit' TO events_dictionary.

APPEND 'htmlb:tray:expand' TO events_dictionary.

APPEND 'htmlb:tray:collapse' TO events_dictionary.

APPEND 'htmlb:tray:remove' TO events_dictionary.

......

no htmlb:inputfield is admitted!!!!

I don't know what to do....

thanks again to all

Former Member
0 Likes

Hi again,

if you double click to static method cl_htmlb_manager=>render_event_call you see that it expects for input parameter "event_type" a string - htmlb_events=>inputfield_submitted is a constant (no method) with value 'click'. So you also can use event_type = 'click' (be aware of small case).

CL_HTMLB_EVENTS is not relevant at this point.

In method cl_htmlb_manager=>render_event_call you also can see that it expects for import parameter an instance type ref to if_bsp_element. Well, cl_htmlb_inputfield implements this interface and every instance of cl_htmlb_inputfield is just a more specific instance of if_bsp_element. The compiler in my Release accepts the coding. But if your compiler has a problem you need to cast a bit.

Instead of


lrf_ip TYPE REF TO cl_htmlb_inputfield,

type lrf_ip as follows


lrf_ip TYPE REF TO if_bsp_element,

and use ?= when build the instance for type-cast


lrf_ip ?= cl_htmlb_inputfield=>factory(... )

What i do not understand in your post, where do you need to call a constructor and of which class?

Message was edited by:

Sebastian Behne