Question:
Hi All,
I am new to BSP so I would like to know how do I create a dropdown listbox and fill it with values at runtime. The values I want to fill into the box are printernames (users preffered selection of printers)
Best regards
Michael
Answer:
<SELECT>
<%Loop at itab%>
<OPTION VALUE=<%=printerid%>><%printername%>
<%endloop%>
</SELECT>
Please excuse for my ABAP syntax....
more help can be found at http://help.sap.com
Thanks.
Answer:
You can also use"
<htmlb:dropdownListBox id = "plaats"
table = "<%=ta_places%>"
nameOfKeyColumn = "LOCID"
selection = "<%=chose_place%>"
nameOfValueColumn = "LOCTX" />
And in your ccs-file put in class: sapDdlWhl. This way the dropdown looks like you want.
Greetings,
Frank
Answer:
Hi Frank,
What is this line " And in your ccs-file put in class: sapDdlWhl. This way the dropdown looks like you want. ". Where is this sapDdlWhl located.. Can you please give some idea.
Thanks,
Ram
Answer:
The problem with this htmlb-element is that you cant define the layout by putting code around it. In stead you need to define a cascade style sheet (css) with a class sapDdlWhl in it .
Create a textfile named style.css and put in:
.sapDdlWhl
{
BORDER-RIGHT: #d6ab00 1px solid;
BORDER-TOP: #d6ab00 1px solid;
FONT-SIZE: 11px;
BORDER-LEFT: #d6ab00 1px solid;
WIDTH: 150px;
BORDER-BOTTOM: #d6ab00 1px solid;
FONT-FAMILY: verdana, arial, helvetica, sans-serif;
HEIGHT: 16px
}
Put in your html-file between <HEAD> and </HEAD> the following entry:
<LINK href="<%= runtime->application_url %>/images/style.css" type=text/css rel=stylesheet>
Know the dropdown has a layout as described in the style.css
Good luck,
Frank
Answer:
Hi Frank,
That worked.. Thanks,.. what is this particular class(.sapDdlWhl ).. There are plenty of classes under the default stylesheet of HTMLB.
Thanks,
Ram