Question

1
Replies
1064
Views
Chakri Payyavula (ChakriP8)
Accenture

Accenture
US
ChakriP8 Member since 2014 65 posts
Accenture
Posted: September 13, 2019
Last activity: September 17, 2019
Posted: 13 Sep 2019 15:49 EDT
Last activity: 17 Sep 2019 15:49 EDT
Closed

IndexInPageList and Current Index from an embedded Pagelist

Please see the ClipBoard structure of my WorkObject. I have BudgetYear as a pagelist and a COPS pagelist embedded on it.


(Each Budget is represented in a section as a Dynamic Layout in my UI and Each COPS pagelist is a TAB Repeat Dynamic Layout embedded on the Budget Section.)


My requirement is this.


When I am on the second budget year i.e on the Second TAB of my UI, I see a single COPS Pagelist. I want to add a new COPS(2) pagelist and copy values from COPS(1) to COPS(2).


Can someone show me how to do this i.e get the index of BudgetYear(2) when my context is BudgetYear(2).COPS(1)



I tried following this thread - https://community1.pega.com/community/product-support/question/getting-current-index-pagelist - but no help as I am not looping through my pagelist.


I have an ADD/COPY button on my 'BudgetYear(2).COPS(1)' TAB of my section and I am calling a Data Transform to create a NEW COPS(2) and then copy properties on COPS(1) to COPS(2). The DT needs the current CONTEXT.

Please see the ClipBoard structure of my WorkObject. I have BudgetYear as a pagelist and a COPS pagelist embedded on it.

(Each Budget is represented in a section as a Dynamic Layout in my UI and Each COPS pagelist is a TAB Repeat Dynamic Layout embedded on the Budget Section.)

My requirement is this.

When I am on the second budget year i.e on the Second TAB of my UI, I see a single COPS Pagelist. I want to add a new COPS(2) pagelist and copy values from COPS(1) to COPS(2).

Can someone show me how to do this i.e get the index of BudgetYear(2) when my context is BudgetYear(2).COPS(1)

I tried following this thread - https://community1.pega.com/community/product-support/question/getting-current-index-pagelist - but no help as I am not looping through my pagelist.

I have an ADD/COPY button on my 'BudgetYear(2).COPS(1)' TAB of my section and I am calling a Data Transform to create a NEW COPS(2) and then copy properties on COPS(1) to COPS(2). The DT needs the current CONTEXT.

At the time of execution the DT needs to my CURRENT YEAR Context (in my case Second Year) and my Current COPS count (in my case First one).

Can someone show me how to accomplish this?

***Edited by Moderator Marissa to update platform capability tags****

Low-Code App Development Data Integration 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.