Topic
2 replies Latest Post - ‏2013-08-20T06:48:51Z by AndreasBr
paininthebutt
paininthebutt
11 Posts
ACCEPTED ANSWER

Pinned topic Maximo 7.5 - remove rich text formatting

‏2012-02-20T23:21:07Z |
The rich text formatting of long descriptions is
1: messing with our interfaces to external systems, they cannot handle the rtf
2: messing with external reporting tools, they cannot handle the rtf

Anyone know how to turn this off in 7.5? Asked IBM, they said it cannot be done (thanks). Have looked for the xml for the dialog for long descriptions, thought I could just change the type of text box, cannot find the xml. Anyone know where the dialog is defined?
  • AndreasBr
    AndreasBr
    7 Posts
    ACCEPTED ANSWER

    Re: Maximo 7.5 - remove rich text formatting

    ‏2013-08-20T06:48:51Z  in response to paininthebutt

    For exporting to external systems, i created a Outbound definiton class that does the following:

     

    public int checkBusinessRules(MboRemote mbo, MosDetailInfo mosDetInfo, Map<String, Object> ovrdColValueMap)
        throws MXException, RemoteException
      {
        if (mbo.getName().equalsIgnoreCase("LONGDESCRIPTION"))
        {
          if (!mbo.isNull("LDTEXT"))
          {
            String LDT = mbo.getString("LDTEXT").replace("<!-- RICH TEXT -->", "").replaceAll("</p>", "\n").replaceAll("<br />", "\n").replaceAll("<[^>]+>", "");
            ovrdColValueMap.put("LDTEXT", LDT);
          }
        }
        return super.checkBusinessRules(mbo, mosDetInfo, ovrdColValueMap);
      }