.pxSubscript And .pxListSubscript Property-Set CasePg.Stakeholderlist Param.Indexpurpose = "Index_Stakeholderlist" Param.InsIndexedKey = "CIGNA-CIGNAAUTO-WORK"+CasePg.pyID local.cnt = .pxListSubscript Param.IndexCount = local.cnt-1 How to get index value from pagelist? The property pxListSubscript will hold the index of the current page that you are in How to get index in a pagelist during iteration While iterating in a pagelist Example : EmployeeList To refer to page at that point: we use EmployeeList(<CURRENT> ) But how to get the index if we have to write some condition, like at index= nth position => achieve some logic. Answer : pxListSubscript Pega provides one property called pxListSubscript which is declaratively calculated and kept at each page level in a pagelist. We can use it instead of setting a property a...
Hi, In this post I will show some of the frequently used date expressions in pega. Before starting we will see some of the date subscripts used in date functions. For Ex: If date is = 05/March/2023 yyyy = Year => 2023 YYYY => 2023 MM = Month => 03 M=> 3 MMMM ===> March MMM ====> Mar dd = Date/day => 05 d ===> 5 1) pxFormatDateOnly(CurrentDateTime(),"yyyyMMdd","MM/dd/yyyy") Here, CurrentDateTime() = 20230618T025027.005 GMT CurrentDateTime() returns the current date and time. pxFormatDateOnly() = Format/reformat a Date Time string using a specified parameters. Output = 06/18/2023 { which is 18 June 2023} 2)...
pyForEachCount holds the current iteration number. You can examine (but not alter) this value in the step. When processing the For loop or iterating over a Value List or Page List property, the parameter param.pyForEachCount holds the current iteration number. You can examine (but not alter) this value in the step. For example, to iterate only over the first ten pages or values, you can exit the iteration when pyForEachCount is greater than 10. In below example we will see how we can use pyForEachCount in data transform and set value in .pxResults.
Comments
Post a Comment