cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

icon file path for MII version 12.1 custom action

Former Member
0 Likes
191

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

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

Former Member
0 Likes

Hi,

thanks for your reply.

Where can i call that function in my code?

May be it needs @xxx parameter for path.

Former Member
0 Likes

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

Former Member
0 Likes

Hi,

This for version 11.5

I need for versiın 12.1