Skip to Content
0
Former Member
Oct 22, 2007 at 12:43 PM

phtmlb comboBox as freetext

23 Views

Hi,

I've got a problem when I am using the comboBox as FREETEXT.

<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@extension name="bsp" prefix="bsp" %>
<%@extension name="phtmlb" prefix="phtmlb" %>
<%
  data: it_tab type table of scarr,
  dummy type string.
  select * from scarr into table it_tab.
%>
<htmlb:content design="design2003" >
  <htmlb:page title="test" >
    <htmlb:form id="f_test" >
      <phtmlb:comboBox id                 = "comboBox"
                       behavior           = "FREETEXT"
                       table              = "<%= it_tab %>"
                       nameOfKeyColumn    = "CARRID"
                       nameOfValueColumn  = "CARRNAME"
                       nameOfValue2Column = "URL" />
      <htmlb:button id      = "button"
                    onKlick = "doSomething"
                    text    = "text" />
      <htmlb:inputField id    = "inputField"
                        value = "<%= dummy %>" />
    </htmlb:form>
  </htmlb:page>
</htmlb:content>

When I write something into the comboBox and press then directly the button I wont get the value in the do_handle_data of my controller. But if I click the inputfield after writing in the combobox and press the button afterwards the value is transfered.

I'm using the IE6 sp2, but if I test the same situation with the Firefox2 there is no problem and it already worked fine with the IE...

Has anybody an idea why the values are not transfered ?

The onKlick event is originally written with an C but than I could not post the thread.

regards,

Stefan