SmartClient Version: v10.0p_2014-09-30/EVAL Deployment (expires 2014.11.29_06.38.33) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY)
When I've got more than one customSQL="true" fields, and I try to list in customFields more than one, they aren't included.
test case:
TREE_MENU.fetchData() produces this log:
If I list only one field, it is included.
When I've got more than one customSQL="true" fields, and I try to list in customFields more than one, they aren't included.
test case:
Code:
<DataSource xmlns="http://www.smartclient.com/schema" ID="TREE_MENU" serverType="sql" dbName="dbJFrame" schema="DBJFRAME" tableName="TREE_MENU" dropExtraFields="false" > <fields> <field sqlType="decimal" primaryKey="true" name="ID_REC" type="sequence" hidden="true" sequenceName="SEQUENCE_REC"/> <field name="test_1" type="text" customSelectExpression="'test_1'" customSQL="true"/> <field name="test_2" type="text" customSelectExpression="'test_2'" customSQL="true"/> </fields> <operationBindings> <operationBinding operationType="fetch" customFields="test_1,test_2"> <selectClause>$defaultSelectClause</selectClause> <tableClause>$defaultTableClause</tableClause> <whereClause>$defaultWhereClause</whereClause> </operationBinding> </operationBindings> </DataSource>
Code:
2014-10-01 16:39:14,077 DEBUG RPCManager Processing 1 requests. 2014-10-01 16:39:14,078 DEBUG RPCManager Request #1 (DSRequest) payload: { criteria:{ }, operationConfig:{ dataSource:"TREE_MENU", operationType:"fetch", textMatchStyle:"exact" }, appID:"builtinApplication", operation:"TREE_MENU_fetch", oldValues:null } 2014-10-01 16:39:14,078 INFO IDACall Performing 1 operation(s) 2014-10-01 16:39:14,079 INFO SQLDataSource [builtinApplication.TREE_MENU_fetch] Performing fetch operation with criteria: {} values: {} 2014-10-01 16:39:14,080 INFO SQLWhereClause [builtinApplication.TREE_MENU_fetch] empty condition 2014-10-01 16:39:14,080 INFO SQLDataSource [builtinApplication.TREE_MENU_fetch] derived query: SELECT $defaultSelectClause FROM $defaultTableClause WHERE $defaultWhereClause 2014-10-01 16:39:14,081 INFO SQLDataSource [builtinApplication.TREE_MENU_fetch] 264: Executing SQL query on 'dbJFrame': SELECT TREE_MENU.ID_REC FROM DBJFRAME.TREE_MENU WHERE ('1'='1') 2014-10-01 16:39:14,085 INFO SQLDriver [builtinApplication.TREE_MENU_fetch] Executing SQL query on 'dbJFrame': SELECT TREE_MENU.ID_REC FROM DBJFRAME.TREE_MENU WHERE ('1'='1') 2014-10-01 16:39:14,139 INFO DSResponse [builtinApplication.TREE_MENU_fetch] DSResponse: List with 340 items
Comment