A Maximo Scripting Solution to a Plain Text Problem
PeteHalbeisen 060001VQWA Comments (5) Visits (6644)
The purpose of this article is to present a technical solution using Maximo Automated Scripting to the problem of plain text white space content via email appearing flattened in the SR ticket Rich Text Editor (RTE).
Before getting into the nitty-gritty details, it's important to mention that this is a single application of scripting to this type of problem. If the plain text is coming in via integration (REST, object structure, flat file, etc.), this type of solution is applicable in those areas as well.
Creating the Script
Navigate to: System Configuration > Platform Configuration > Automation Scripts then Select Action > Create > Script with Attribute Launch Point
Step 1: Create the attribute launch point as follows
Step 2: Import the script (or space will be provided for you to type this in during Step 3) and map the attribute to a variable to be used in the script.
Script imported in this example:
Note that the LD field will be processed non-interactively, that is, when the field is not populated via the user interface.
Verify the imported script (or type it in/make modifications). Syntax checking is performed upon create.
To activate the script, Select Action > Change Status > New Status: Active
Without the script
... an incoming plain text email appears flattened in the RTE despite the white space being present in the database field
Logging at point LDTEXT db field is written:
With the script
... the plain text white space is replaced with the HTML equivalent.