Question

1
Replies
205
Views
Srinivas Bharat Komarina (KOMARINA)
Accenture
Senior System Architect
Accenture
GB
KOMARINA Member since 2012 103 posts
Accenture
Posted: January 16, 2020
Last activity: January 17, 2020
Posted: 16 Jan 2020 14:26 EST
Last activity: 17 Jan 2020 9:00 EST
Closed

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 Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.