Topic
1 reply Latest Post - ‏2013-05-07T16:09:50Z by Dragos.Cojocari
Richard_Good
Richard_Good
18 Posts
ACCEPTED ANSWER

Pinned topic Scripts taking OLE's out of Text elements (DOORS)

‏2013-04-29T11:29:37Z |

Hello,

I want to run a script on a text element containing the "Object Text" attribute, essentially to replace see section Object ID with see section Heading Number. This works well, aside from the rather major drawback that it takes out all the OLE's. How do I avoid this. I am using version 1.1.1.2.

Regards,

Richard

P.S Searching this forum on the word OLE, gives me one result. This horrendous search / new forum functionality wastes my time in that I cannot easily find previous messages and the IBM administrators time in that they have to answer the same questions twice. Can someone kick whoever is responsible for the migration of the search facility. The indexing has obviously failed almost completely. 

  • Dragos.Cojocari
    Dragos.Cojocari
    1430 Posts
    ACCEPTED ANSWER

    Re: Scripts taking OLE's out of Text elements (DOORS)

    ‏2013-05-07T16:09:50Z  in response to Richard_Good

    Hey Richard,

    that is by design. When the data property is brought into a script context all rich formatting ( and that includes OLEs) is lost.

    We have enhanced that in RPE 1.2 and now you can specify that you want to preserve the rich text in the script expression ( check "XHTML Input") in which case you will get the XHTML code instead of the raw text you get now. Selecting "XHTML Output" in the Script Expression editor tells RPE that the outcome of the script evaluation is to be parsed as rich text and not plain text . Just make sure that the changes you make do not break the XHTML code.

    See Processing rich text in RPE for more details.

    Regards,

       Dragos