AnsweredAssumed Answered

Error expression in a custom script with special characters

Question asked by RafaelGascaCalvo on Aug 10, 2017
Latest reply on Aug 10, 2017 by Dave_3.0

Trying to create a custom script with a portfolio xogwrite, we are getting the next error:


"Element type "investment_type" must be followed by either attribute specifications, ">" or "/>""


The block that is generating this error is the next one:


<investment_type code="idea" expression="( idea.z_status ==  lookup(&quot;Z_LKP_ESTADO_IDEA&quot;, &quot;6&quot;)  ||  ( idea.z_status ==  lookup(&quot;Z_LKP_ESTADO_IDEA&quot;, &quot;4&quot;) ))  &amp;&amp;  idea.is_active == 1 &amp;&amp;  ( idea.z_client ==  lookup(&quot;LOOKUP_COMPANIES&quot;, ${clsp}) ) &amp;&amp;  ( idea.z_type ==  lookup(&quot;IMM_TYPE&quot;, &quot;PROJECT&quot;) )"/>


This expression is that we get with portfolio xogread.


When we delete the character &, error doesn't appear but the expression in content editor portfolio is invalid.


Someone does it know how to write special characters (like ", &, >, <) in xogwrite?


Thanks in advance.