cancel
Showing results for 
Search instead for 
Did you mean: 

Setting the tooltip of CL_HTMLB_DROPDOWNLISTBOX in an iterator?

Former Member
0 Kudos

Hello,

I'm new to the forum and quite new to BSP, so please bear with me if I'm asking simple questions

I tried to set the tooltip property of a CL_HTMLB_DROPDOWNLISTBOX instance in an iterator like this:


DATA:    col_dropdown       TYPE REF TO cl_htmlb_dropdownlistbox.

      CREATE OBJECT col_dropdown.
...
      col_dropdown->tooltip = 'Test'.

The dropdown list works ok and all is fine, but the tooltip is not displayed. However, when I use the tooltip property on a BSP page, it works fine:


                                   <htmlb:dropdownListBox id                = "SalesOrg"
                                           table             = "</= controller->CuCo->DD_SALESORG />"
                                           nameOfKeyColumn   = "TKEY"
                                           nameOfValueColumn = "DESCRIPTION"
                                           selection         = "</= sarea />"
                                           disabled          = "</= SalesAreaDisabled />"
                                           tooltip             = "Test"
                                           width="200" />

I'm using Design2002 as the display style. Could anybody please tell me what I have to do to make it work?

Thanks,

Leo

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

did u try like this in th Iterator.

method if_htmlb_tableview_iterator~render_cell_start .
  DATA: lo_text     TYPE REF TO cl_htmlb_textview,
        lo_ddlb     TYPE REF TO cl_htmlb_dropdownlistbox,

  FIELD-SYMBOLS: <dat> TYPE ANY.

  row_ref = p_row_data_ref.

  CASE p_column_key.

    WHEN 'SORT_NUM'.
      create object lo_ddlb.
      get reference  of lt_seq_no into lo_ddlb->table.
      lo_ddlb->id = p_cell_id.
      lo_ddlb->nameofkeycolumn   = 'ENTRY_KEY'.
      lo_ddlb->nameofvaluecolumn = 'ENTRY_VALUE'.
      lo_ddlb->tooltip                     = 'My Tool tip'.
      lo_ddlb->selection = get_column_value( p_column_key ).
      p_replacement_bee = lo_ddlb.

    WHEN OTHERS.
      CREATE OBJECT lo_text.
      lo_text->id       = p_cell_id.
      lo_text->wrapping = 'FALSE'.
      lo_text->text     = get_column_value( p_column_key ).
      lo_text->design   =  'STANDARD'.
      p_replacement_bee = lo_text.
  ENDCASE.

ENDMETHOD.

former_member689397
Active Participant
0 Kudos

Hi Leo,

tooltip: Use this attribute to determine the quick info text that is displayed when the cursor is moved over the dropdown list box.

Note that this attribute is not available in Microsoft Internet Explorer.

Please try with some other Explorer

Thnx

Suriya.

Former Member
0 Kudos

Hi Suriya,

thanks for the reply. Please note that your answer is not quite correct. The tooltip works in Internet Explorer when I specify it in the BSP page. But it does <b>not</b> work when I set it in the iterator. That is what I need to find out.

Also, could you clarify what you mean with "other Explorer"?

Thanks, Leo

former_member689397
Active Participant
0 Kudos

Hi Leo,

Other Explorer means Netscape and etc..

Please check the BSP Application BSP_MODEL in SE80 and execute the application there you can see the Dropdown tool tip.

Thnx

Suriya