Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How can remove css and override style of table inside text on RPE

Hello All,
Currently I facing one issue when generate modules from DNG on RPE.
When RPE get value of artifact from richTextBody
The issue are below:
 - The content of richTextBody contain table and inside that table has border (border-color: rgb(105, 105, 105);)of table and cell inside it are different type, the template generate data with error message cannot
CRRPE3156E The color from 105, is not valid.
 For input string: "105,"
CRRPE3156E The color from 105) is not valid.
For input string: "105)"
- The richtexbox contain htlm format and inside that format style of html contain style not created by RPE, then RPE through error message such as below:

CRRPE3156E The color from currentColor is not valid.

For input string: "currentColor"

So I have a question is do we have any way for override all style or reject all style on HTML input?
Thank you all,
Regards
TinhVo

0 votes



One answer

Permanent link
I assume you have already tried setting "Data formatting" property as Template.
Can you attach the XML data returned for the text artifact containing the table? Please try https://server:port/rm/publish/text?resourceURI=uuid and save the data as XML.

0 votes

Comments
Hello,
I send you the content of table I got it when I debug on RPE to fetch data from richtexbox and put it in text element.
I tried to insert all but I cannot, I give you short content below
  <table border="1" cellpadding="1" cellspacing="1" dir="ltr" id="_1556259983193" style="width: 668px; table-layout: fixed; overflow-wrap: break-word; border-collapse: collapse; border-color: rgb(105, 105, 105);">
      <tr>
               <td colspan="1" id="_1556259983194" rowspan="1" style="border-color:#696969; overflow:hidden; padding:1px; width:166px">;
                  <b>Document</b>
               </td>.....
Regards
Tinh

That should work. I dont see any issue when the following XHTML is used as data:
'<table border="1" cellpadding="1" cellspacing="1" dir="ltr" id="_1556259983193" style="width: 668px; table-layout: fixed; overflow-wrap: break-word; border-collapse: collapse;  border-color: rgb(105, 105, 105);"><tr><td colspan="1" id="_1556259983194" rowspan="1" style="border-color:#696969; overflow:hidden; padding:1px; width:166px"><b>Document</b></td></tr></table>;'
I suggest you to open a case with support.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Feb 21 '21, 11:49 p.m.

Question was seen: 2,222 times

Last updated: Mar 01 '21, 2:50 a.m.

Related questions
Confirmation Cancel Confirm