SmartClient version: v11.0p_2016-03-31/EVAL Development Only
Hi isomorphic , I'm trying to use implicitCriteria with VelocityExpression , but I get an error .
The expression is not resolved, so a string is passed instead of a real value.
xml code:
Error:
I thought that the user variable wasn't in session, so i tried to use $currentDate on a date field, but i got the same error.
i'm doing something wrong, or i cannot do it?
Hi isomorphic , I'm trying to use implicitCriteria with VelocityExpression , but I get an error .
The expression is not resolved, so a string is passed instead of a real value.
xml code:
Code:
<implicitCriteria> <Criterion fieldName="ID_APP_FK" operator="equals"> <value>$sessionAttributes.user.appID</value> </Criterion> </implicitCriteria>
Error:
Code:
=== 2016-04-06 13:18:42,974 [c-10] DEBUG RPCManager - Request #1 (DSRequest) payload: { criteria:{ fieldName:"ID_APP_FK", operator:"equals", value:"$sessionAttributes.user.appID" }, operationConfig:{ dataSource:"ACTORS", repo:null, operationType:"fetch", textMatchStyle:"exact" }, appID:"builtinApplication", operation:"ACTORS_fetch", oldValues:{ fieldName:"ID_APP_FK", operator:"equals", value:"$sessionAttributes.user.appID" } } === 2016-04-06 13:18:42,974 [c-10] INFO IDACall - Performing 1 operation(s) === 2016-04-06 13:18:42,974 [c-10] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null === 2016-04-06 13:18:42,974 [c-10] DEBUG DeclarativeSecurity - DataSource ACTORS is not in the pre-checked list, processing... === 2016-04-06 13:18:42,974 [c-10] DEBUG DeclarativeSecurity - Processing security checks for DataSource ACTORS_TYPES, field ID_REC === 2016-04-06 13:18:42,974 [c-10] DEBUG DeclarativeSecurity - DataSource ACTORS_TYPES is not in the pre-checked list, processing... === 2016-04-06 13:18:42,974 [c-10] DEBUG DeclarativeSecurity - Processing security checks for DataSource ACTORS_TYPES, field IS_SUBJECT === 2016-04-06 13:18:42,974 [c-10] DEBUG DeclarativeSecurity - DataSource ACTORS_TYPES is not in the pre-checked list, processing... === 2016-04-06 13:18:42,974 [c-10] DEBUG DeclarativeSecurity - Processing security checks for DataSource ACTORS_TYPES, field ID_REC === 2016-04-06 13:18:42,974 [c-10] DEBUG DeclarativeSecurity - Processing security checks for DataSource ACTORS_TYPES, field IS_OBJECT === 2016-04-06 13:18:42,974 [c-10] DEBUG DeclarativeSecurity - Processing security checks for DataSource ACTORS_TYPES, field ID_REC === 2016-04-06 13:18:42,974 [c-10] DEBUG DeclarativeSecurity - Processing security checks for DataSource ACTORS_TYPES, field TYPE === 2016-04-06 13:18:42,974 [c-10] DEBUG AppBase - [builtinApplication.ACTORS_fetch] No userTypes defined, allowing anyone access to all operations for this application === 2016-04-06 13:18:42,974 [c-10] DEBUG AppBase - [builtinApplication.ACTORS_fetch] No public zero-argument method named '_ACTORS_fetch' found, performing generic datasource operation === 2016-04-06 13:18:42,975 [c-10] INFO SQLDataSource - [builtinApplication.ACTORS_fetch] Performing fetch operation with criteria: {fieldName:"ID_APP_FK",operator:"equals",value:"$sessionAttributes.user.appID"} values: {fieldName:"ID_APP_FK",operator:"equals",value:"$sessionAttributes.user.appID"} === 2016-04-06 13:18:42,975 [c-10] WARN SQLWhereClause - [builtinApplication.ACTORS_fetch] String '$sessionAttributes.user.appID' was passed as filter criteria for a numeric field. We could not parse it.
i'm doing something wrong, or i cannot do it?
Comment