Highlighted
Established Member..
Established Member..
1715 views

New Icon to a new button

HI Guys,

 

I have created a new button in apm.edit.problem do.  Now, for thAT button i have to have a new icon. I have created the icon and placed in obj16 folder. But, it is still not working. 😞

 

Please let me know which step i have missed out...

 

Thanks in advance/Ananth

0 Likes
11 Replies
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

Re: New Icon to a new button

Have you used any condition for displaying the button?
Best Regards,
Tom
0 Likes
Highlighted
Contributor.. Contributor..
Contributor..

Re: New Icon to a new button

Hi,

 

What client are you using ? Web or Windows ?

 

If Web, i'd suggest restarting your web service (apache/tomcat).

 

What's the name of your button ? what's the name of your image ?

 

Fabrice

0 Likes
Highlighted
Established Member..
Established Member..

Re: New Icon to a new button

HI, Thanks for the reply... First I thout of using windows client. And name of the button is "InviteOthers" and name of the image is "tinviteothers.gif".

 

Thanks/Ananth

0 Likes
Highlighted
Established Member..
Established Member..

Re: New Icon to a new button

Hi Tom,

   I can able to see the button. But, not able to attach an icon to that.

 

 

If you have any document/ (handmade), can you please share the same?

 

Thanks/Ananth

0 Likes
Highlighted
Contributor.. Contributor..
Contributor..

Re: New Icon to a new button

Ananth,

 

This an extract from SM9 Training doc

 

If you change an image, Service Manager will replace the original image with the new image on all forms. If you do not want to change the image on all forms, you mustr change the default Label in the Display Application Option Definition for the form you want to change, and create a new image.

 

Windows client : ...\plugins\com.hp.ov.sm.client.common_{SM_version}\src\resources\icons\obj16

Web client on Tomcat : ...\webapps\sm710\images\obj16

 

 

Hope it helps.

 

 

Fabrice

0 Likes
Highlighted
Established Member..
Established Member..

Re: New Icon to a new button

Thanks a lot... I found it working for some english...But, for some english it is still d same...Dont know the reason.... Closing with some doubt... Thanks again/Ananth
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: New Icon to a new button

Hi,

 

When you say the name of your button is "InviteOthers" do you mean the Default Label of your display option?

 

I've had similar challenges with icons for my custom buttons and what I did is keep changing the name of my .gif until it appeared, so if your display option has a Default Label of "InviteOthers", I would start with a .gif name of "tinvi.gif", then if that didn't work I would use "tinvit.gif", then "tinvite.gif", and so on.  You need to make sure the .gif name is unique and long enough that the icon won't attach to another display option that might start with the same letters.  In my case, every time, my new icon eventually appeared.  I'm not sure if I needed to, but I also stopped my tomcat services and deleted my Catalina directory (tomcat\work\Catalina) after every change.

 

Audrey

0 Likes
Highlighted
Contributor.. Contributor..
Contributor..

Re: New Icon to a new button

Hello Ananth,

 

I managed to do it on my test system.

 

For the Windows client, you need to copy the gif file in the directory \Client\plugins\com.hp.ov.sm.client.common_9.30.021\src\resources\icons\obj16 where <Home> is the directory where your Windows client is installed (in my case :  C:\Program Files (x86)\HP\Service Manager 9.30)

 

For the Web client, you copy the file in the directory  <Tomcat Home>\webapps\sm93\images\obj16 (sm93 is where I extracted the web client jar file) __AND__ you restart Tomcat (you have to).

 

Last thing : your gif file name must start with a "t" and have no more than 8 characters. So if your button is named "Invite Others", your gif name should be tinvite.gif (or tinvite_.gif because of the space in the name)

 

Hope this helps

 

Fabrice

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Re: New Icon to a new button

Hi Everyone,

Now that we have PD -> Transitions, rulesets as Actions etc how does this work? I mean how can I add a custom image to something like "Send to Partner". It's a manual transtion set to appear on the Tray. I know earlier we did this through the DO and the scmessage record but what now? Anyone ever figured this out?

Some details from the example.: IM record, button visible in Work In Progress. Right now no icon before the text. That's what I'd like to enhance: put there the 16x16 logo of the partner as I used to with "normal" displayoption records...

BR, Dávid

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: New Icon to a new button

Hi there,

You can check the demanded name in windows client. Just like the RAD Debugger View You can open the details data view.

In case that You have opened the form and the option "Invite Others" is visible - You should see a lot of XML data in the details data view. A Part of the xml data are the options demanded by the client for presenting the form. And one of the options is this one:

  <option img="tinvite" value="213">
   <origcaption>Invite Others</origcaption>
   <caption>Invite Others</caption>
   <description>Invite Others</description>
  </option>

The first row includes the img attribute img="tinvite". This should be the name of the needed gif image.

Just my two cents...

Bo

PS: The 213 value is just the gui option number in the display option record.

0 Likes
Highlighted
Contributor.. Contributor..
Contributor..

Re: New Icon to a new button

Hi David,

with Process Designer, it works pretty much the same as before.

If you define an action for your workflow/phase, you have to use the name of he gif image as an ID of the action. The problem is that once you've created and action, you cannot change its ID, unless you are a SM9 wizard and can edit a read-only field (this can be done thru RAD debugger...).

This trick to display icons is not very smart, but I didn't find any better.

PS: you still use scmessage to translate the text of your button.

Best regards,

Fabrice

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.