on 06-15-2006 8:35 AM
Hi Guys
Kindly help me out.
I am using a tableView Iterator for my application in which I am making one column as input field, in which data should be visible when the .htm page is called. If the user see that the data on that cell is correct he can leave otherwise he can change the data on the very cell.
Here is the code.
method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.
CASE p_column_key.
WHEN 'CURRENT_STATE'.
DATA: if_input TYPE REF TO CL_HTMLB_INPUTFIELD,
if_text TYPE REF TO CL_HTMLB_TEXTVIEW.
CURRENT_STATE = m_row_ref->CURRENT_STATE.
*p_replacement_bee = CL_HTMLB_TEXTVIEW=>FACTORY(
id = p_cell_id
TEXT = CURRENT_STATE ).
*
if_input = CL_HTMLB_INPUTFIELD=>FACTORY( id = p_cell_id
id_postfix = '_input'
type = 'STRING' ).
if_text = CL_HTMLB_TEXTVIEW=>FACTORY( id = p_cell_id
id_postfix = '_text'
text = CURRENT_STATE ).
DATA: whole_cell TYPE REF TO CL_BSP_BEE_TABLE.
CREATE OBJECT whole_cell.
whole_cell->ADD( if_input ).
whole_cell->ADD( if_text ).
p_replacement_bee = whole_cell.
Now after coding like this the column comes as input field (which I want) but the data is not visible.
Kindly help.
Also one of the column I have made clickable using an icon
and by giving an ONCLICK but I dont know how to catch this event in ONINPUT PROCESSING.
Kidly reply
Thanx
Hi Dhanajay,
AS per I understand your query you have added a button in the tableview and you want to catch the event of that button in tableview.
To catch the event of that button that is in tableview in onInputProcessing.You can do this in that way.Each time id of that button is attached and its index that is clicked with the id of the tableview
eq tablename[2].buttonname.
In onInputProcessing you can use this with CP(conatins pattern)
if event CP '[]*buttonname'
execute ur codehere
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dhananjay,
What you r trying to do is not possible in page with flow logic that is in MVC.
I think following code will solve your problem
DATA: EVENT1 TYPE REF TO CL_HTMLB_EVENT.
data: event2 type string.
CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
EVENT1 = CL_HTMLB_MANAGER=>GET_EVENT( RUNTIME->SERVER->REQUEST ).
event2 = EVENT1->IF_HTMLB_DATA~EVENT_ID.
if you even have problem you can mail me on my id garg.aashish@gmail.com bcoz there is problem in opening sdn here
regards
Aashish Garg
Hi,
Why did you use a bee table here ?
It would be much simpler with a mere :
p_replacement_bee = CL_HTMLB_INPUTFIELD=>FACTORY( id = p_cell_id
id_postfix = '_input'
type = 'STRING'
value = CURRENT_STATE ).
As per your icon click problem, try to visualize the content of variable <i>'event'</i> in OnInputProcessing event handler and see what it tells you (event_server_name, event_type...).
It will help you building the condition to capture the precise click on the icon.
Hope it helps!
Best regards,
Guillaume
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.