on 09-25-2006 2:18 PM
Hi I'm trying to make dropdownbykey/ dropdownbyindex element in webdynpro application. Element should import list of options not from a code of itself but from database (mysql).
Every help/ tutorial and post talk about situation where data is taken from application code.
Do enybady know how to write this element??
Thank for any help.
Michal
Hi
See this help
http://help.sap.com/saphelp_nw04/helpdata/en/74/450e8af57065468e88e4b86de47e4b/frameset.htm
//For Dropdown by index
//Create a node with cardinality 0..n and selection 1..1
IPrivate<ViewName>.I<DropName>Node node = wdContext.node<DropName>();
//Make Database Connection
//rs as result set
while (rs.next) {
IPrivate<ViewName>.I<DropName>Element element = wdContext.create<DropName>Element();
element.set<Param>(rs.getString(1));
node.addElement(element);
}
//You can search the Forums and get more results
Kind regards
Mukesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.