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

Attachments

3

Activity

Show:

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

Changed function name parseVatriable to parseVariable

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

Same error in class ModelADServiceImpl

Fixed

Details

Assignee

Reporter

Components

Priority

Created May 31, 2015 at 1:47 PM
Updated September 1, 2015 at 3:33 PM
Resolved July 29, 2015 at 9:00 PM