on 01-28-2008 1:59 PM
Hi@all,
I'm almost new to BSP and got following problem:
I need a dropdownlistbox within a tableview.
I fill an internal table (with a key field and a value field) in a page fragment for using it in the dropdownlistbox.
In the method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START I set the following code:
CASE p_column_key.
...
WHEN 'ROW5'.
CALL METHOD CL_htmlb_dropdownlistbox=>factory
EXPORTING
id = 'ddlb1'
nameofkeycolumn = 'field1'
nameofvaluecolumn = 'field2'
table = 'internal table'
selection = 'xyz'
RECEIVING
element = l_r_element.
...
ENDCASE.
I get an error that the internal table wasn't found. How can I make the internal table from the page fragment available in the method cl_htmlb_dropdownListBox=>factory?
Thanks for answers...
Regards
Benjamin
You have to define a reference to a internal table of the type TIHTTPNVP.
data M_SOLUTION_DDL type TIHTTPNVP .
data M_SOLUTION_DDL_REF type ref to DATA .
fill the table, set the reference
GET REFERENCE OF m_solution_ddl into me->m_solution_ddl_ref.
and pass the reference to the factory method
GET REFERENCE OF m_solution_ddl into me->m_solution_ddl_ref.
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 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.