Question
SINARMASMSIGLIFE
ID
Last activity: 7 Jun 2017 0:03 EDT
Page List at pega:when
Hi,
How to use JavaServer pages tags pega:when with property page list and page group? I need to check if the property empty or not.
Thanks.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
StaidLogic
IN
Hi,
You can use <pega:when> tag in any html (sections, controls..etc).
<pega:choose>
<pega:when name="PageListExists">Page list Exists</pega:when>
<pega:otherwise>Page list empty</pega:otherwise>
</pega:choose>
Create a when rule "PageListExists" to check page list exists or not.
for looping through the list you can use below syntax.
<pega:forEach name=".SampleList">
Name: <pega:reference name="$THIS.Name" />
</pega:forEach >
for more information regarding JSP tags in pega please check below link:
https://community.pega.com/sites/default/files/help_v722/procomhelpmain.htm
Hope it helps.
Thanks,
Ananda Bhat
Pegasystems Inc.
IN
Hello dorkyark,
Thanks for posting your query in PSC :)
Would calling an activity that performs the check on the pagelist help at your end. If yes, refer the post in this regard.
Regards,
Rincy
SINARMASMSIGLIFE
ID
Hello Rincy,
I already read that post, but I do not understand about that function.
<% pega_rules_pegarulesutilities.callActivity(xxxx,"ssss",Test); %>
What are parameters need to fill that?
Regards,
dorkyark
-
Nurjahan Shaik
Virtusa
AU
Hi,
callActivity(param1,param2,param3); The parameters are as below:
param1 - Clipboard page
param2 - Activity Name
param3 - Parameter page
Eg: pega_rules_pegarulesutilities.callActivity(tools.findPage("pyWorkPage"),"testActivity",tools.getParameterPage());
Thank you,
Madhuri
SINARMASMSIGLIFE
ID
Hi,
Can you help me with simple example how to used it at jsp tag <pega:choose> <pega:when> ? if page list is empty it show text "Data Empty", else "Data Exist".
Thank you
Accepted Solution
StaidLogic
IN
Hi,
You can use <pega:when> tag in any html (sections, controls..etc).
<pega:choose>
<pega:when name="PageListExists">Page list Exists</pega:when>
<pega:otherwise>Page list empty</pega:otherwise>
</pega:choose>
Create a when rule "PageListExists" to check page list exists or not.
for looping through the list you can use below syntax.
<pega:forEach name=".SampleList">
Name: <pega:reference name="$THIS.Name" />
</pega:forEach >
for more information regarding JSP tags in pega please check below link:
https://community.pega.com/sites/default/files/help_v722/procomhelpmain.htm
Hope it helps.
Thanks,
Ananda Bhat
-
Anil Kumar
SINARMASMSIGLIFE
ID
Hi,
Thanks for your help.
Regards,
dorkyark