on ‎2007 Jun 09 5:33 PM
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!
Request clarification before answering.
don't work Patrick!!! thanks again!!!
If you have some other idea don't hesitate to put here!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.