Question
Cognizant Technology Solutions India Pvt Ltd
IN
Last activity: 5 Nov 2015 14:36 EST
how can i get the index value from pagelist?
how can i get the index value from pagelist?. I would like to know the syntax. Could you please help me on this.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Updated: 4 Nov 2015 4:28 EST
Pegasystems
IN
The property pxListSubscript will hold the index of the current page that you are in. You might want to refer to this - https://pdn.pega.com/forums/prpc/user-interface/getting-current-index-from-pagelist
-
Matthew Hall Udhayachander Gopalaswamy
Cognizant Technology Solutions India Pvt Ltd
IN
See for ex: I have a pagelist like this
var vpList =clientcache.find('pyWorkPage.VerificationProcedures');
vpList.indexOf("XXXXX") same value. This is not working. I saw some java forums to get the index like this. In the similar way I want to know in javascript.
Luxoft
UA
param.pyForEachCount holds the current index of the row
-
Ganesh Tarala
Cognizant Technology Solutions India Pvt Ltd
IN
param.pyForEachCount used in the activity. I am asking in PEGA java script coding prospective.
-
Aman patel
Updated: 5 Nov 2015 6:02 EST
Citicorp Services India Private Limited
IN
Hi Siva,
I would like to know the reason to get the index of the pagelist in javascript. Could you please share us what the use case behind this implementation?.
If you want to get the currently selected page out of pagelist in javascript, javascript is triggered in the pagelist context. then you can try the below code.
<%
ClipboardProperty cPage = tools.getActive();
%>
This will hold the currently selected page content.
Please let me know if this helps.
Thanks,
Gowrishankar.
Pegasystems
US
I would think the javascript answer would depend how you are rendering your pagelist on the browser. Is it through a repeating row layout in designer studio ? Or something else ? /Eric
-
Vinay Varma
Updated: 4 Nov 2015 14:19 EST
Infosys
US
we can use java to get the required index using function IndexInPageList and access it in JavaScript variable through pega reference directive
Cognizant Technology Solutions India Pvt Ltd
IN
could you please provide the syntax for this?