Attachments

Re: Adding Smileys to the service status icon's

‏2011-07-12T11:07:24Z

This is the accepted answer.
This is the accepted answer.

I have tried to add some smileys but it the icons changes for all i.e. State,Time and Events, I want to change/add smileys for the State field only, Please check the attachment, if anybody knows please guide.

Re: Adding Smileys to the service status icon's

I have tried to add some smileys but it the icons changes for all i.e. State,Time and Events, I want to change/add smileys for the State field only, Please check the attachment, if anybody knows please guide.

As mentioned in one of the earlier posts, this can be accomplished by editing a policy in TBSM that affects the display of the columns in the service tree. You edit this policy from the Tree Template Editor, which is available from the Services view of the TBSM Service Navigation portlet on the System Configuration page. The attachment illustrates how to navigate to the Edit Policy button that will open the policy editor.

Code like the following can then be added to the bottom of the policy (note that this example assumes you have TBSM 6.1 or later, though a very similar technique would work for earlier versions).

The red highlighted "if" statement is where you decide what column to affect. In this case, any column including the string "State" would be affected, so the standard TBSM State column will show the new images. Normally this "if" would specify a specific column or columns created by the user in a tree template that are to be displayed with special html, like an alternate image.

Also note that in this example I copied the Emoticon*.gif files to TBSM_DASHBOARD_SERVER_HOME/images. This allowed me to access the images using the URI "/ibm/sla/images" since the images are placed relative to the TBSM root context for WebSphere. That was just a convenience and you should be able to pull images from other locations using a valid <img> tag.

Re: Adding Smileys to the service status icon's

As mentioned in one of the earlier posts, this can be accomplished by editing a policy in TBSM that affects the display of the columns in the service tree. You edit this policy from the Tree Template Editor, which is available from the Services view of the TBSM Service Navigation portlet on the System Configuration page. The attachment illustrates how to navigate to the Edit Policy button that will open the policy editor.

Code like the following can then be added to the bottom of the policy (note that this example assumes you have TBSM 6.1 or later, though a very similar technique would work for earlier versions).

The red highlighted "if" statement is where you decide what column to affect. In this case, any column including the string "State" would be affected, so the standard TBSM State column will show the new images. Normally this "if" would specify a specific column or columns created by the user in a tree template that are to be displayed with special html, like an alternate image.

Also note that in this example I copied the Emoticon*.gif files to TBSM_DASHBOARD_SERVER_HOME/images. This allowed me to access the images using the URI "/ibm/sla/images" since the images are placed relative to the TBSM root context for WebSphere. That was just a convenience and you should be able to pull images from other locations using a valid <img> tag.

Thanks for your reply.
Using that decoration tab in custom canvas ,I succcessfully uploaded a jpg image(smple image uploaded here)as a background image that showing the existing services in TBSM.
Now I want to show the state change of that services as similies as you showed in service tree.But not getting where to upload that similies and where to write policy for the same.
Also want to show google map for the location information of the services.

Attachments

Re: Adding Smileys to the service status icon's

This reply was deleted by wxyzabc270006344X2013-07-25T05:24:00Z.
Reason for deletion: deduplication

Google maps are not supported

getting images to change dynamically on the custom canvas is not done via a policy, but rather through writing custom CSS.

if you are serious about using smileys on the custom canvas, then you must create SVG versions of them. i will provide instructions about how to use those SVG images and custom CSS to make them work when i return from vacation at the end of this week

Re: Adding Smileys to the service status icon's

getting images to change dynamically on the custom canvas is not done via a policy, but rather through writing custom CSS.

if you are serious about using smileys on the custom canvas, then you must create SVG versions of them. i will provide instructions about how to use those SVG images and custom CSS to make them work when i return from vacation at the end of this week

i posted a new document ("Working with Custom Canvases") on the TBSM Advanced Topics page that describes how you can extend the SVG Image widget. You can follow its steps to get smileys displayed on a custom canvas.

check out the Customization Guide's Custom Maps section for information on positioning services via their location

Re: Adding Smileys to the service status icon's

i posted a new document ("Working with Custom Canvases") on the TBSM Advanced Topics page that describes how you can extend the SVG Image widget. You can follow its steps to get smileys displayed on a custom canvas.

check out the Customization Guide's Custom Maps section for information on positioning services via their location