Symptoms

While implementing PBA Control Panel customization, it is necessary to put raw HTML code on the customized page. It cannot be added directly into the corresponding .xml file, as the addition cannot be processed during XSL translation to generate the final HTML code.

Resolution

The XML <ui:raw> tag shall be used to wrap the custom HTML code as shown in the below example:

 <ui:raw disable-output-escaping="yes"><![CDATA[
 <span class="someClass">
 ]]></ui:raw>
 </html>unpaid_amount<html>
 <ui:raw disable-output-escaping="yes"><![CDATA[
 </span>
 ]]></ui:raw>`
 After the XSL translation, the above code will turn into the following:`<span class="someClass">value_of_unpaid_amount</span>

Additional information

Putting raw HTML text does not work for the 'screen_description' element in PBA Control Panel, the error message like this is displayed in CP:

Parse page error: 'wnd/BM/customization/CCP_AccountScreen_GetWin.xml' syntax error at line 3 syntax error.

The problem may be solved by creating a custom grid and putting it in the required place of the screen using the 'before=' parameter, e. g.:

<window defs="BM:AHRC" id="UpgradeOperation_PlaceUpgradeOrder_FinishWin" type="wizard" wo_refresh="yes">
 <screen_description>""</screen_description>
 <layout>
 <grid before="dataOrder Information" id="successMessage">
 <row><cell><html><ui:raw disable-output-escaping="yes">Your order has been placed and will be processed shotrly. Custom screen description may be put here . <a href="http://provider.com/"target="_blank">Provider</a></ui:raw></html></cell></row>
 </grid>
 </layout>
 </window>

Internal content