on 11-13-2007 5:27 AM
Sir
I want to attach a image into a button in the view.
Plz send me the procedure.
Hi
Try doing this,
Paste an image button.gif in src->mimes->components->your component package
Create a context attribute IconURL and set the property of <b>imageSource</b> to this attribute.
in onInit() method add this code
wdContext.currentExcelElement().setIconURL(
WDURLGenerator.getWebResourceURL(wdComponentAPI.getDeployableObjectPart(), "button.gif"));
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
specify the <b>imageSource</b> property of the button to the name of the image file.
You can access images from
1) src\mimes\Components\<package name> in your project folder structure.
2) SapIcons
Ex: ~sapicons/s_b_abca.gif
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
For this you can set the imageSource property of the button to the name of the image file like "lookup.gif". Place the image in src\mimes\Components\<package name> in your project folder structure.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.