cancel
Showing results for 
Search instead for 
Did you mean: 

dropdownListBox in tableView

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks for the information...

The Problem is solved.

Answers (0)