Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BSP and HTMLB...

Former Member
0 Likes
811

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
792

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.

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.

5 REPLIES 5
Read only

Former Member
0 Likes
793

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.

Read only

0 Likes
792

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

Read only

0 Likes
792

I understood where to create the table.

In <% %>.

Correct?

Thanks,

Sudha.

Read only

0 Likes
792

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..

Read only

0 Likes
792

Thanks, Vijay...

I will do that.

Thanks,

Sudha.