Skip to Content
0
Former Member
Jan 26, 2005 at 02:54 AM

Map R3 Icons to Web Dynpro icons

57 Views

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