cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the image to linkToAction UI Element Dynamically frm MIME Folder

Former Member
0 Kudos

Dear Experts

I have created IWDLinkToAction element dynamically

i need to set a image to this linkToAction UI

Image is in Mime folder

How to set the image to this linkToAction UI Element

Thanks

Jay.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

If this image does not need to change during the lifetime of this LinkToAction, you can use setImageSource(filename) after creation as already described, or you can assign the image to the action itself. In that case the link gets the image from the action automatically. This is useful if several elements (buttons, menu items) are attached to the same action.

Armin

Former Member
0 Kudos

Hi Jay,

Try this:

IWDLinkToAction action = (IWDLinkToAction)view.createElement(IWDLinkToAction.class,"action");

action.setImageSource(<image URL or filename>);

Thanks n Regards,

Jhansi Miryala