Generate Document Shape support for PageList

I was using the Generate Document Smart Shape on my flow.

My data model has a “Person” data type embedded in the case type as a single record and inside that “Person” there is a Page List.

Now on the Generate Document Smart Shape the provided Tag for the Word template that Pega provides is:

<pegaref config={“mode”:“pagelist”,“name”:“.Person.Skills().Name”,“type”:“P”}>

The document is generated but where the pagelist tag was added it only shows:

“<< ERR_PAGELIST_UNSUPPORTED>>”

Is this a limitation of the Generate Document Shape? I tried some variants of the tag, but none have worked so far.

In order to support a dynamic page list to be added to a document, Is generate PDF from a section the most viable solution?

I found the issue with help of several AIs that provided several ideas.

You need to Insert a Table into your Word Document Insert>Table

Put a header and in the second row put the tag provided by Pega. That way Pega finds how to add several records from the PageList in the provided table inside the Word Template.

It was hard to find that kind of information, should be added in the Shape Documentation.

Find the working template attached.

Template.docx (43 KB)

Hi @SalvadorC94,

I have encountered a similar situation before. In Pega, the general list of results is displayed either in a table or in a repeating grid. This also applies to document generation.

To ensure it works correctly, keep the JSP tag confined to a single column, as shown in image 1 in the document.

To remove the table border, click on the Design tab and select a white pen color. A pencil icon will appear; use this to click on the border lines, changing their color to white. This way, the borders won’t be visible to end users, as shown in image 2 in the document.

Let me know if it works.

Thanks,

Lakshman.

unable to view list of records in pagelist in word document.docx (54.9 KB)

@SalvadorC94Hello, I’ve tried what u did but still wasnt successful
My records are in the mentioned page list
if u have any insights on where i might’ve gone wrong, I’d really appreciate it

@HemanthLU17498894
I didn’t try with several columns, but you could try replicating the template format where you have a table, then the first row has the headers of your table, the second row has the Pega Tag for insertion and you remove the next rows so you’ll end up with only two rows the header and the Pega Tag, you need to let Pega do the Insert Row in its process.