on 2007 Oct 22 1:43 PM
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
Try to add selection attribute as follows:
<phtmlb:comboBox id = "comboBox"
behavior = "FREETEXT"
selection = "<%= some_variable %>"
table = "<%= it_tab %>"
nameOfKeyColumn = "CARRID"
nameOfValueColumn = "CARRNAME"
nameOfValue2Column = "URL" />
<b>*Reward each useful answer</b>
Raja T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raja,
unfortunately the selection attribute doesn't help. So I tried with onSelekt and onClientSelekt.
If I'm using onSelekt the button event comes first-> no chance to get the data...
If I'm using onClientSelekt the client side event comes first, but it would be a dirty hack to pass this value to the controller and not a solution for all phtmlb:comboBoxes..
regards,
Stefan
translations with different meanings are bad...
I meant that it doesn't solve the problem, the freetext value is still not transferred.
And the value of the comboBox is optional so the users could type in nothing and nothing has to be selected. So I can't check if the selection and the value are empty at the same time.
Stefan
I forgot to say that we updated 620 SP61 to SP62 but couldn't find some hints for this situation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.