Question

Match/Contains tag in HTML
Hi All,
Can you please help on me the following case.
i know the syntax for exact match condition
<pega:when test=".Color == 'RED' " ></pega:when >
What is the syntax for "Contains or Like " ??
Thanks
Suresh Chella
-
Like (0)
-

You could use java attibute:
java |
A Java expression that evaluates to true or false. You can use the Java operators any standard Java operators within the expression. For example: <pega:when java="<%= !tools.getProperty("OperatorID.pyPwdVerify").getMessages().equals("") %>"></pega:when> |

Hi Kevin,
Can you suggest on the below example.
Lets take i have Page1.pxRresults(5) , then i have to loop find out Page1.pxRresults( ).Name contains any one of ( A,B,C) then it should satisfy the condition otherwise no action required.
Can you suggest me the syntax .
Thanks
Suresh Chella

Hi Suresh,
Can you try
@(Pega-RULES:String).contains(.Name, "A")?
Thanks,
Susan

Thanks Susan.
Can you suggest me will this work HTML ?, if so please share me exact syntax
Thanks
Suresh

Hi Suresh,
Can you try the below one.
ClipboardPage Page1=tools.findPage(Page);
for (i=1;i<=@lengthOfPageLise(Page1);i++)
{
String color=Page1.pxResults(i).Color
if(Color=="A" || Color=="B" ) {
}
}

I think you have to mention pxResults on this line:
for (i=1;i<=@lengthOfPageLise(Page1);i++)
/Eric

>>>
- i know the syntax for exact match condition
- <pega:when test=".Color == 'RED' " ></pega:when >
- What is the syntax for "Contains or Like " ??
>>>
could we attempt creating a direct when rule and refer inline?
- <pega:when name="WHENRULE"></pega:when>