Skip to Content
author's profile photo Former Member
Former Member

Dropdownlistbox within Table View Iterator

Hallo,

due to Brian McKellar's Weblog "BSP Programming: HTMLB Table View Iterator" I created a BSP-Application. I have problems to fill the dropdownlist.

The reference me->m_currencies_ref is filled but there is no entry in the dropdownlist:

p_replacement_bee = CL_HTMLB_DROPDOWNLISTBOX=>FACTORY(

id = p_cell_id

selection = m_row_ref->CURRENCY

table = me->m_currencies_ref

nameOfKeyColumn = 'NAME'

nameOfValueColumn = 'VALUE' ).

Many thanks for any help

Andreas

Andreas

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Jun 07, 2004 at 03:41 PM

    Andreas,

    Will it help you if I append my example code enblock? Should I do it in future for all weblogs so that you do not have to type it in?

    ++bcm

    Add comment
    10|10000 characters needed characters exceeded

    • <b><u>OnLayout</u></b>

      <%@page language="abap"%>
      <%@extension name="htmlb"  prefix="htmlb"%>
      
      <htmlb:content design="design2002">
        <htmlb:page>
          <htmlb:form>
      
          <htmlb:tableView id              = "tv1"
                           visibleRowCount = "5"
                           selectionMode   = "lineEdit"
                           table           = "<%=flights%>"
                           iterator        = "<%=iterator%>" />
      
          </htmlb:form>
        </htmlb:page>
      </htmlb:content>
      

      <b><u>OnCreate</u></b>

      SELECT * FROM SFLIGHT INTO TABLE flights.
      CREATE OBJECT iterator TYPE CL_BCM_SDN_ITERATOR.
      runtime->keep_context = 1.