Welcome to Knowage Q&A

Here you can read the Q&A history.

To get new community support please go to GitHub discussions (KnowageLabs/Knowage-Server · Discussions · GitHub).

0 votes
1 view
Hello,

we are trying to use a parameter in dataset with reserved word LIKE and we don't find the solution. The WHERE clause is:

WHERE clinica LIKE '%P{clinicaname}%'

Thank and regards
Environment 7.1.5 - Debian 9
in Data Set by (120 points)

1 Answer

0 votes

Dear jrserrano,

I think it is correct what your are trying to do but the syntax is not completely correct because it is missing a $ character. The right syntax to use is: WHERE clinica LIKE '%$P{clinicaname}%'. Remember also to use the type Raw or Generic for the parameter clinicaname.

I hope you find this information useful, but if you were looking for something different, please answer again!

by (3.6k points)

Thank you ifassi, now it works!

Really my problem was the type i had chosen "string" and it didn't work.

Regards.

...