on ‎2011 Feb 09 1:07 PM
Hi,
How can i set icon file path in MII v12.1 custom action.
Below is sample code needs icon file path to be set.
public class exptonormalnumber {
private static final String PARAM_OUTPUT = "Output";
@Action(name = "exptonormalnumber")
@Outputs(names = {PARAM_OUTPUT}, types = {VariantDataTypes.STRING})
public static void exptonormalnumber(IActionInstance instance,
@Input(name = "Input1") String s1,
@Input(name = "Input2") String s2,
@Input(name = "islem") String s3) {
try {
......Thanks.
Request clarification before answering.
Hi,
ActionReflectionBase provides a method that loads an icon. Below is the code for the same:
public String GetIconPath()
{
return "/com/icons/Logo.png";
}
Here, Logo.png is an icon that resides in the root of the jar file.
Hope this helps.
Best Regards,
Kedar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can place this function any where in the filename class that extends ActionReflectionBase.
No need to give any @ input parameter as your icon will be at a fixed position in .jar file.
For more information, please browse through the below link:
[http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0407ed8-7f81-2a10-d49e-ea99d6b744cb]
Hope it helps.
Best Regards,
Kedar
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.