hello, I have been trying to use initialCriteria with my ListGrid and I am not getting the desired result. the problem is that when the data is sent down the query uses LIKE rather than just doing a straightforwad comparison. below is the output from the console, I am using SmartClient_v83p_2013-05-08_PowerEdition. as you can see the payload has a company_account_number of 1 as the criteria but it is evaluated as "LIKE %1%".
= 2013-07-09 16:54:57,051 [ec-9] DEBUG RPCManager - Request #1 (DSRequest) payload: {
criteria:{
company_account_number:"1"
},
operationConfig:{
dataSource:"company_person_account_member_view",
operationType:"fetch",
textMatchStyle:"substring"
},
startRow:0,
endRow:75,
componentId:"lgdChangeDetailsTable",
appID:"builtinApplication",
operation:"company_person_account_member_view_fetc h",
oldValues:{
company_account_number:"1"
}
= 2013-07-09 16:54:57,051 [ec-9] INFO IDACall - Performing 1 operation(s)
= 2013-07-09 16:54:57,051 [ec-9] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
= 2013-07-09 16:54:57,052 [ec-9] DEBUG DeclarativeSecurity - DataSource company_person_account_member_view is not in the pre-checked list, processing...
= 2013-07-09 16:54:57,052 [ec-9] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
= 2013-07-09 16:54:57,052 [ec-9] DEBUG DeclarativeSecurity - DataSource company_person_account_member_view is not in the pre-checked list, processing...
= 2013-07-09 16:54:57,052 [ec-9] DEBUG AppBase - [builtinApplication.company_person_account_member_v iew_fetch] No userTypes defined, allowing anyone access to all operations for this applica
on
= 2013-07-09 16:54:57,052 [ec-9] DEBUG AppBase - [builtinApplication.company_person_account_member_v iew_fetch] No public zero-argument method named '_company_person_account_member_view_fetch
found, performing generic datasource operation
= 2013-07-09 16:54:57,053 [ec-9] INFO SQLDataSource - [builtinApplication.company_person_account_member_v iew_fetch] Performing fetch operation with
criteria: {company_account_number:"1"} values: {company_account_number:"1"}
= 2013-07-09 16:54:57,053 [ec-9] INFO SQLDataSource - [builtinApplication.company_person_account_member_v iew_fetch] derived query: SELECT $defaultSelectClause FROM $defaultTableClause WHERE
defaultWhereClause
= 2013-07-09 16:54:57,054 [ec-9] DEBUG SQLDataSource - [builtinApplication.company_person_account_member_v iew_fetch] Executing row count query: SELECT COUNT(*) FROM $defaultTableClause WHERE
defaultWhereClause
= 2013-07-09 16:54:57,055 [ec-9] DEBUG SQLDataSource - [builtinApplication.company_person_account_member_v iew_fetch] Eval'd row count query: SELECT COUNT(*) FROM company_account_person_view
ERE (company_account_person_view.company_account_numbe r LIKE '%1%')
I have also included part of the listGrid below for better understanding.
isc.ListGrid.create({
ID: "lgdChangeDetailsTable",
autoDraw: false,
initialCriteria: {company_account_number: gvarObjUserSession.getCvarIntAccountNum()},
autoFetchData: true,
autoSize: false,
showFilterEditor: true,
autoFitData: "vertical",
dataSource: "company_person_account_member_view",
cellHeight: 25,
.................................................. .................
your help is greatly appreciated
= 2013-07-09 16:54:57,051 [ec-9] DEBUG RPCManager - Request #1 (DSRequest) payload: {
criteria:{
company_account_number:"1"
},
operationConfig:{
dataSource:"company_person_account_member_view",
operationType:"fetch",
textMatchStyle:"substring"
},
startRow:0,
endRow:75,
componentId:"lgdChangeDetailsTable",
appID:"builtinApplication",
operation:"company_person_account_member_view_fetc h",
oldValues:{
company_account_number:"1"
}
= 2013-07-09 16:54:57,051 [ec-9] INFO IDACall - Performing 1 operation(s)
= 2013-07-09 16:54:57,051 [ec-9] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
= 2013-07-09 16:54:57,052 [ec-9] DEBUG DeclarativeSecurity - DataSource company_person_account_member_view is not in the pre-checked list, processing...
= 2013-07-09 16:54:57,052 [ec-9] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
= 2013-07-09 16:54:57,052 [ec-9] DEBUG DeclarativeSecurity - DataSource company_person_account_member_view is not in the pre-checked list, processing...
= 2013-07-09 16:54:57,052 [ec-9] DEBUG AppBase - [builtinApplication.company_person_account_member_v iew_fetch] No userTypes defined, allowing anyone access to all operations for this applica
on
= 2013-07-09 16:54:57,052 [ec-9] DEBUG AppBase - [builtinApplication.company_person_account_member_v iew_fetch] No public zero-argument method named '_company_person_account_member_view_fetch
found, performing generic datasource operation
= 2013-07-09 16:54:57,053 [ec-9] INFO SQLDataSource - [builtinApplication.company_person_account_member_v iew_fetch] Performing fetch operation with
criteria: {company_account_number:"1"} values: {company_account_number:"1"}
= 2013-07-09 16:54:57,053 [ec-9] INFO SQLDataSource - [builtinApplication.company_person_account_member_v iew_fetch] derived query: SELECT $defaultSelectClause FROM $defaultTableClause WHERE
defaultWhereClause
= 2013-07-09 16:54:57,054 [ec-9] DEBUG SQLDataSource - [builtinApplication.company_person_account_member_v iew_fetch] Executing row count query: SELECT COUNT(*) FROM $defaultTableClause WHERE
defaultWhereClause
= 2013-07-09 16:54:57,055 [ec-9] DEBUG SQLDataSource - [builtinApplication.company_person_account_member_v iew_fetch] Eval'd row count query: SELECT COUNT(*) FROM company_account_person_view
ERE (company_account_person_view.company_account_numbe r LIKE '%1%')
I have also included part of the listGrid below for better understanding.
isc.ListGrid.create({
ID: "lgdChangeDetailsTable",
autoDraw: false,
initialCriteria: {company_account_number: gvarObjUserSession.getCvarIntAccountNum()},
autoFetchData: true,
autoSize: false,
showFilterEditor: true,
autoFitData: "vertical",
dataSource: "company_person_account_member_view",
cellHeight: 25,
.................................................. .................
your help is greatly appreciated