Skip to main content
Solved

Aurena Lobby "Like" Filter

  • June 7, 2022
  • 2 replies
  • 183 views

lopespetro
Hero (Customer)
Forum|alt.badge.img+13

How All.

How could I set up a parameter in Aurena Lobby to understand “Like” where condition with % so I will be able to type a part of the text.

In the example bellow, if I use like condition with %, the element in Aurena doesn’t not work, just in IEE. IF I remove the %, it works fine.

Is it possible?

Tks a lot!

this way works without %.

 

In Aurena Lobby does not with %

UPPER(ITEM_DESCRIPTION) LIKE NVL(UPPER('%$CPF_NOME$%'),'%')

 

 

Best answer by Tomas Ruderfelt

If there is a problem with % in your version maybe try this:

UPPER(ITEM_DESCRIPTION) LIKE UPPER(CHR(37) || '$CPF_NOME$' || CHR(37))

 

CHR function gives you character “%” if you use number 37. You can find the ascii number of a character by doing:

SELECT ASCII('%')

FROM dual

2 replies

Forum|alt.badge.img+21
  • Superhero (Employee)
  • 500 replies
  • Answer
  • June 7, 2022

If there is a problem with % in your version maybe try this:

UPPER(ITEM_DESCRIPTION) LIKE UPPER(CHR(37) || '$CPF_NOME$' || CHR(37))

 

CHR function gives you character “%” if you use number 37. You can find the ascii number of a character by doing:

SELECT ASCII('%')

FROM dual


lopespetro
Hero (Customer)
Forum|alt.badge.img+13
  • Author
  • Hero (Customer)
  • 280 replies
  • June 7, 2022

If there is a problem with % in your version maybe try this:

UPPER(ITEM_DESCRIPTION) LIKE UPPER(CHR(37) || '$CPF_NOME$' || CHR(37))

 

CHR function gives you character “%” if you use number 37. You can find the ascii number of a character by doing:

SELECT ASCII('%')

FROM dual

Hi @Tomas Ruderfelt , it worked fine!

Tks a lot for attention and help!

Br.

Lopes