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

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?
  • scottsd
    scottsd
    121 Posts

    Re: Maximo 7.5 - remove rich text formatting

    ‏2013-07-15T22:00:22Z  

    https://www.ibm.com/developerworks/community/wikis/home?lang=en#/wiki/IBM%20Maximo%20Asset%20Management/page/Making%20long%20description%20a%20text%20field

  • AndreasBr
    AndreasBr
    7 Posts

    Re: Maximo 7.5 - remove rich text formatting

    ‏2013-08-20T06:48:51Z  

    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);
      }