Get Context Variable Error in WebService queryData

Description

In parseVariable function is taken incorrectly the context variable:

if (varName.charAt(0) == '#') {
varName = varName.substring(1);
val = getCompiereService().getCtx().getProperty(varName);
}

For example #AD_User_ID => AD_User_ID

The solution:

if (varName.charAt(0) == '#') {
val = getCompiereService().getCtx().getProperty(varName);
}

This correction is applied in the filter parameter of the web service.

Environment

None

Activity

Show:
Saúl Piña
July 29, 2015, 8:35 PM

Same error in class ModelADServiceImpl

Saúl Piña
July 29, 2015, 8:45 PM

Changed function name parseVatriable to parseVariable

Fixed

Assignee

Saúl Piña

Reporter

Saúl Piña

Labels

Tested By

None

Components

Priority

Major