There's a way to create a constant list without creating an static entity?

Hello.


I need to replace with regex some words that have accents before inserting then on oracle... Right now I put 6 regex replace server actions to do this job, however, I'm willing if it can be replaced with one and a foreach statement. If I could create a list variable with constant values I could roll that list and change the replace pattern. Is it possible?


Thanks in advance.

Solution

Hi Lucas, it is possible to do so but bear in mind you would need to either store it in session or populate it every time you need to use it (i.e. build the list in the Preparation)

Solution

Pedro Brito wrote:

Hi Lucas, it is possible to do so but bear in mind you would need to either store it in session or populate it every time you need to use it (i.e. build the list in the Preparation)


Yeah, I was think that I could escape that ways... hehehe.


Well, I guess i'll build it in preparation then...



Thanks for your response.

Glad to be of assistance