IBM Support

Save icon not enabled after updating HTML in Communication Template.

Technical Blog Post


Abstract

Save icon not enabled after updating HTML in Communication Template.

Body

When editing HTML body text - an image URL - I discovered that I wasn't able to save my changes.  I needed to edit the 'regular' view in order to save the record.  

In our 7.5.0.8 environment this was not the case. I could save if I just made changes to the HTML.


1- Open Maximo as maxadmin
2- Go to Communication Templates app
3- Create a new communication template
4- On the Applies To field, select WORKORDER
5- Fill the Send From field with some value, like an email address
6- On the message field, paste the following content :


<table class="tg" style="width: 75%; border-collapse: collapse;border-spacing: 0px; mso-margin-top-alt: 0px; mso-margin-bottom-alt:0px; mso-padding-alt: 0px 0px 0px 0px" valign="top">
<tbody>
<tr valign="middle">
<th align="center" bgcolor="#c0c0c0" class="tg-ipa1" style="overflow:hidden; font-size: 14px; border-top: 1px solid; font-family: arial,sans-serif; border-right: 1px solid; background: #c0c0c0;
border-bottom: 1px solid; word-break: normal; font-weight: bold;text-align: center; border-left: 1px solid" valign="top">ServiceRequest123456789</th>
<th align="center" bgcolor="#c0c0c0" class="tg-8xqh" style="overflow:hidden; font-size: 14px; border-top: 1px solid; font-family: arial,sans-serif; border-right: 1px solid; background: #c0c0c0;
border-bottom: 1px solid; word-break: normal; font-weight: bold;border-left: 1px solid" valign="top">Description</th><th align="center" bgcolor="#c0c0c0" class="tg-7opa" style="overflow:
hidden; font-size: 14px; border-top: 1px solid; font-family: arial,sans-serif; border-right: 1px solid; background: #c0c0c0;border-bottom: 1px solid; word-break: normal; font-weight: bold;
text-align: center; border-left: 1px solid" valign="top">Locat<spanstyle="color: rgb(255, 0, 0);"><span style="font-family: arial,sansserif,verdana;"></span></span>ion</th>
</tr>
<tr>
<td align="center" class="tg-s6z2" style="overflow: hidden; font-size:14px; border-top: 1px solid; font-family: arial, sans-serif;border-right: 1px solid; border-bottom: 1px solid; word-break: normal;
text-align: center; border-left: 1px solid" valign="top">:wonum</td>
<td align="center" class="tg-031e" style="overflow: hidden; font-size:14px; border-top: 1px solid; font-family: arial, sans-serif;border-right: 1px solid; border-bottom: 1px solid; word-break: normal;
border-left: 1px solid" valign="top">:description</td>
<td align="center" class="tg-s6z2" style="overflow: hidden; font-size:14px; border-top: 1px solid; font-family: arial, sans-serif;border-right: 1px solid; border-bottom: 1px solid; word-break: normal;
text-align: center; border-left: 1px solid" valign="top">:location</td>
</tr>
<tr>
<td height="4">
<non breaking="" space=""></non>
</td>
</tr>
</tbody>
</table>

 

7- After that, click SAVE.
8- Now, on the header toolbar of the Message field, click on View HTML Source button, and then, change some value, for example :

Find this :       Request123456789
and delete the 789, so it likes like :     Request123456

9- When you do that, you will see that the Save button is not enabled. That's the issue.

The save button only gets available when you tab to another field, and Maximo does not recognize any changes you do while in HTML Source mode. Maximo does not recognize there has been a change until you click in another field.

 

Explanation :

The "view as HTML source" is not designed to be used as an editor.  The button is typically used for debugging to validate the underlying html is as expected.  If you have a business need for using that mode as an editor please let us know what it is and open an enhancement request for this.

It has never worked in previous releases.  In the system we saw at an earlier level the save button was just always enabled.  It didn't become enabled based on the keystroke inside the "view as HTML source" mode.

 

See ya

 

[{"Business Unit":{"code":"BU005","label":"IoT"}, "Product":{"code":"SSLKT6","label":"Maximo Asset Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":""}]

UID

ibm11112595