10-13-2017 05:44 AM
Hi :) I am making a NXQL and passsing a parameter like this: session.query("SELECT * FROM document_type_name WHERE xpath_name LIKE " +parameter+"%");
But it throws an exception saying Syntax error : Invalid token
10-13-2017 05:49 AM
Hi,
Stacktrace is always welcomed here. It could help to debug.
In your case, I think your missing the surrounding quotes. See the documentation examples.
In your case it would be:
session.query(“SELECT * FROM document_type_name WHERE xpath_name LIKE '" + parameter + "%'");
10-13-2017 06:37 AM
Thanks Kevin it worked.But it receives an empty list.The xpath is not wrong .the parameter too.I don't get it
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.