Creating a pagelist from a delimited string with a function

Hi,

I’m trying to use a function that should convert a string with delimiters to a pagelist.

There is only one activity that uses this function in Customer Service, this is czFetchQueueLogin in PegaAppCA. The following syntax is used:

@cxPageListFromString(Param.match,DelimitedPage.pxResults,“.StringVal1”,“@baseclass”,“/”)

Where:

Param1 = delimitedInput (i.e. “A@email;B@email”)

Param2 = PageList to be populated

Param3 = Property to be set in the pagelist

Param4 = pageClass

Param5 = delimiter

I tried the following implementation:

@CSUtils.cxPageListFromString(Param.ToAddress,TempPage.pxPages(ToAddresses).pxResults,“.StringVal1”,“Embed-Services-InboundEmailInfo”,“;”)

Where Param.ToAddress = “A@email;B@email” and the left side of the expression is a page parameter. The OOTB version also uses a page parameter at the left side.

Does anybody have any pointers what could be wrong?

Kind regads,

Bas

@BasG0629 I checked the Java behind the function , even though it takes the Parameter of delimiter , it always using “/” as delimiter. This is why its not working with “;” . You can use “/” and give a try.

In Order to solve this ,

  1. you can either use replace function @String.replaceAll(Param.String,“;”,“/”) to first replace the existing delimiter (“;”) with new delimiter “/” and use the same function.

or

2)If the delimiter is going to be always “;” , Then you can use @pxDataManipulate.pxPageListFromStringCSV function too.

Let us know if this works.

@uashok93 Thanks alot for that! I’m sure I can get this working knowing this :slight_smile: