Question

Changing class nested pagelist page

Hi,

I have a 4 level nested Pagelist (BRList --> BLList -->PAList --> Products), Products is last level. when I loop through each Pagelist, using "for each embedded" for loop, at each of "Products" pagelist, properties of "PegaNN-Data-Product" page are shown in designer studio (type dot and down arrow), where as from Clipboard I can see that "Products" pagelist containing pages of class ABC-FW-Data-ProductDetails. I want to set a value for property present in "ProductDetails" class, but designer studio shows only properties of "Product", Nutshell, runtime class of page is different from compile time of class. how to make it work? Thanks

Correct Answer
December 16, 2019 - 4:14am

Thanks for reply, sorry because of restrictions I can't post screenshot. I resolved it by adding those properties that are in "ProductDetail" to "Product" (PegaNN-Data-Product), now dot and arrow down shows those properties, this looks like circumventing the problem but worked!

Comments

Keep up to date on this post and subscribe to comments

December 11, 2019 - 5:00am

Hey Ramesh,

Your products property is created as a page, what is the page definition class?

Otherwise you could try and update the "pages and classes" tab and set the class you want there for your Product Page. 

Thanks,

Leigh

December 11, 2019 - 6:14am
Response to Leigh@RuleTronics

HI Leigh,

Products is a pagelist, of pages PegaNN-Data-Product, since it's nested pagelist, I tried various definitions in pages & classes nothing worked.

Pages & Classes tab

BRList().BLList.BAList().PAList().Products ---- ABC-FW-Data-Product Details

above didn't work (even without brackets at the end of each list)

Thanks,

Ramesh

December 11, 2019 - 9:08am
Response to RameshB19

Hey Ramesh,

Do you know why the class is changing at run time? and does a property called products exist that has the page definition "ABC-FW-Data-Product Details"?

Thanks,

Leigh

December 11, 2019 - 11:20am

Could you post a screenshot of the Pagelist hierarchy or the clipboard view with the pages expanded?
Pages of class ABC-FW-Data-ProductDetail in the .Product pagelist doesn't sound right to me if the .Product pagelist has a page definition of PegaNN-Data-Product.

 

December 16, 2019 - 4:14am
Response to AnthonyTham

Thanks for reply, sorry because of restrictions I can't post screenshot. I resolved it by adding those properties that are in "ProductDetail" to "Product" (PegaNN-Data-Product), now dot and arrow down shows those properties, this looks like circumventing the problem but worked!