Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Issue with source code in Pega 7.1.9

SA-24826

Summary



The Source code for the correspondence fragment rule is getting altered, that is appearing in a straight line when it is saved. 

That is, all the "when conditions" are appearing in the single line due to which developer is unable to understand the code properly. 

For example let us consider the below correspondence fragment rule:

Before Saving:

<br />

<br />

<span style="font-family: Verdana; font-size: 12px;"><pega:when name="1==1"> <pega:choose> <pega:when test="1==1"> </pega:when></pega:choose>

<table border="1" style="font-family: Verdana; font-size: 12px;">

  <tbody>

  <tr bgcolor="#ffcd00">

  <th>Customer Info Source</th>

  <th>Customer Name</th>

  <th>Customer State</th>

  </tr>

  <tr>

  <td>PM Calculator</td>

  <td><pega:choose> <pega:when test="1==1"> <pega:reference name="D_PMCustomerInfo.FirstName"></pega:reference>,   <pega:reference name="D_PMCustomerInfo.LastName"></pega:reference> </pega:when>  </pega:choose></td>

  <td><pega:choose> <pega:when test="1==1"> <pega:reference name="D_PMCustomerInfo.State"></pega:reference>  </pega:when> <pega:otherwise>Not Available </pega:otherwise></pega:choose></td>

  </tr>

  </tbody>

</table>

 </pega:when> 

<pega:when name="1==1"> <pega:when name="!1==1"> <pega:when name="1==1"> </pega:when><pega:choose> 

  <pega:when test="1==1"> 

  </pega:when></pega:choose> </pega:when> </pega:when>

  <br />

<br />

<pega:when name="1==1"> <pega:when name="1==1"> </pega:when></pega:when>

<pega:when test="1==1">

  <pega:when name="!1==1"> </pega:when></pega:when><pega:choose> <pega:when test="1==1">

  <pega:when test="1==1"> </pega:when></pega:when></pega:choose></span><br />

<br />

 

After saving the code you can see the last lines of the code and one can see that all the when rules are in a single line.

 

 

<br />

<br />

<span style="font-family: Verdana; font-size: 12px;"><pega:when name="1==1"> <pega:choose> <pega:when test="1==1"> </pega:when></pega:choose>

<table border="1" style="font-family: Verdana; font-size: 12px;">

  <tbody>

  <tr bgcolor="#ffcd00">

  <th>Customer Info Source</th>

  <th>Customer Name</th>

  <th>Customer State</th>

  </tr>

  <tr>

  <td>PM Calculator</td>

  <td><pega:choose> <pega:when test="1==1"> <pega:reference name="D_PMCustomerInfo.FirstName"></pega:reference>,   <pega:reference name="D_PMCustomerInfo.LastName"></pega:reference> </pega:when> </pega:choose></td>

  <td><pega:choose> <pega:when test="1==1"><pega:reference name="D_PMCustomerInfo.State"></pega:reference></pega:when> <pega:otherwise>Not Available </pega:otherwise></pega:choose></td>

  </tr>

  </tbody>

</table>

 </pega:when>  <pega:when name="1==1"> <pega:when name="!1==1"> <pega:when name="1==1"> </pega:when><pega:choose>  <pega:when test="1==1">  </pega:when></pega:choose> </pega:when> </pega:when><br />

<br />

<pega:when name="1==1"> <pega:when name="1==1"> </pega:when></pega:when> <pega:when test="1==1"> <pega:when name="!1==1"> </pega:when></pega:when><pega:choose> <pega:when test="1==1"> <pega:when test="1==1"> </pega:when></pega:when></pega:choose></span><br />

 


Error Messages



Not Applicable.


Steps to Reproduce



1) Create a new correspondence fragment rule of type Email and save the empty rule.
2) Click on source button under stream.
3) Write a sample code. 
4) Now click on source and see the output.
5) Now again click on source and observe that when rules appear in the straight line.


Root Cause



Pega 7 uses ckEditor as a HTML Text Editor which is a third party tool and hence the behaviour which that has been oberved is expected.
 

Resolution



An enhancement request, FDBK-15814, has been created for consideration by Pega Product Management. 

 

 

Suggest Edit

Published July 2, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us