on 01-26-2005 2:54 AM
I try to map R3 icons to Web Dynpro icons. Please review the following code:
public static String getSAPIconURL(String iconValue) {
String iconURL = "";
try {
iconURL = WDURLGenerator.getAbsoluteWebResourceURL("sap.com/tcwddispwda/global/sapIcons");
if (iconValue.equals("@0A@")) {
iconURL += "//s_s_ledr.gif"; //redlight
} else if (iconValue.equals("@08@")) {
iconURL += "//s_s_ledg.gif"; //greenlight
} else if (iconValue.equals("@09@")) {
iconURL += "//s_s_ledy.gif"; //yellowlight
}
} catch (WDURLException urlEx) {
//to do
}
return iconURL;
}
Questions:
1. Is this the correct way to get SAP icons? We tried to use WDURLGenerator.getSAPIconsResourcePath(),but did not turn out right.
2. Also, in HTMLB time, there were APIs mapping R3 icons to HTMLB icon library directly. Is this also planned in Web Dynpro? What is the best way to map R3 icons to Web Dynpro icons?
3. The above code shows static one-to-one mapping, how to support dynamic mapping?
Thanks,
Nancy
To use the R/3 icons, you simply have to use "~sapicons/<iconfilename>.gif" as the source of Image etc.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you use icons as listed on http://www.sapdesignguild.org/resources/icons_sap/index.htm you have to use the following:
~sapicons/<b>s_</b><bitmapname lowe case>.gif
e.g. ~sapicons/s_s_ledg.gif
User | Count |
---|---|
84 | |
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.