2008 Jul 22 5:26 PM
Hi,
I am creating a BSP application using HTMLB.
I have a drop down list box.
I have created the listbox as follows:
<htmlb:dropdownListBox id="entries"/>
Now I see the list box on my screen.
I need to populate this list box with some 6 values(A1,A2,A3,A4,A5,A6).
How do I do this?
Could someone please help me with this?
Thanks,
Sudha.
2008 Jul 22 5:32 PM
Populate all the values into a table and use it
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title=" " >
<htmlb:form>
<htmlb:dropdownListBox id = "d1"
nameOfKeyColumn = "CURRENCY"
nameOfValueColumn = "CURRENCY"
table = "<%= it_data %> " />
</htmlb:form>
</htmlb:page>
</htmlb:content>if you have only one column , you can use key column and value column both same.
Hi,
I am creating a BSP application using HTMLB.
I have a drop down list box.
I have created the listbox as follows:
<htmlb:dropdownListBox id="entries"/>
Now I see the list box on my screen.
I need to populate this list box with some 6 values(A1,A2,A3,A4,A5,A6).
How do I do this?
Could someone please help me with this?
Thanks,
Sudha.
2008 Jul 22 5:32 PM
Populate all the values into a table and use it
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title=" " >
<htmlb:form>
<htmlb:dropdownListBox id = "d1"
nameOfKeyColumn = "CURRENCY"
nameOfValueColumn = "CURRENCY"
table = "<%= it_data %> " />
</htmlb:form>
</htmlb:page>
</htmlb:content>if you have only one column , you can use key column and value column both same.
2008 Jul 22 6:04 PM
Hi,
Thanks for your answer.
I have one more question.
Where do I create the table(it_data)?
Do I need to create it in the controller class?
Could you please help with this?
Thanks,
Sudha.
Edited by: S A on Jul 22, 2008 7:14 PM
2008 Jul 22 6:15 PM
I understood where to create the table.
In <% %>.
Correct?
Thanks,
Sudha.
2008 Jul 22 7:32 PM
you can do that, But it is not advisable.
<% data: it_data type standard table of mara. %>
You can define that in the controller if it is MVC and pass it to View
or
You can Define in the View as Page Attribute and use it.
Regards
Vijay
Please close your Threads..
2008 Jul 22 8:53 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |