Question

1
Replies
27
Views
X

using tools API within contains - Is this the correct syntax?

Hi,

Greetings. I am trying something like this in an inline style

<%=tools.getActive().getPageValue().getString("pyMessageKey").contains('<%=tools.findPage("pyWorkPage").getString(".pyAuto").getStringValue()%>')? "background-color: yellow;" : "" %>

Is this the correct syntax?

I get the below error

Test compilation failed: ----------
1. ERROR in \Rule_HTML_Section_Work__pyCaseHistoryContent_Stream_20200116T183032_691_GMT.java (at line 4975)
out.print(tools.getActive().getPageValue().getString("pyMessageKey").contains('<%=tools.findPage("pyWorkPage").getString(".pyAuto").getStringValue());
^^
Invalid character constant

Pega Platform Data Integration Java and Activities User Interface