Create a new page for each element in a value list not working out correctly .

I have a value list property (ApprovalLevels )

The value list has the following structure:

ApprovalLevels(1) = “One,Two”

ApprovalLevels(2) = “Three,Four”

Now I want to loop through this value list and create one page ‘for each element in value list’ , on the clipboard . and under that page the Value of ApprovalLevels() should be there in pyLabel property .

So I have looped through value list and used following function :

@pxPageListFromStringCSV(ApprovalLevels().ApprovalsNewList,“pyLabel”,“TRG-Data-MyAPP”).

Issue :

Now the issue is instead of creating two pages(inside ApprovalsNewList) having the values (One,Two) and (Three,Four) respectively, it is creating 4 pages having four different (pyLabel)values i.e. One , Two , Three & Four Separately .

Is there any other way where It will ignore the comma and just create only 2 pages with the value exactly as mentioned above ??

Thanks in advance

Hi @AnanyaA2

Loop through the value list. Directly append the value to the page list. You dont need any functions.

@JayaL722 Thank you . It worked !