Hi,
Please find the log timestampls below:
=== 2011-11-09 11:16:09,465 [81-4] INFO RequestContext - URL: '/mda/builtinds/sc/skins/Enterprise/images/Scrollbar/hthumb_start.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0': Moz (Gecko) with Accept-Encoding header
=== 2011-11-09 11:16:09,477 [81-1] DEBUG RPCManager - Request #1 (DSRequest) payload: {
criteria:{
operator:"or",
criteria:[
{
fieldName:"AIRPORT_IATA_CODE",
operator:"iStartsWith",
value:"bo"
},
{
fieldName:"AIRPORT_NAME",
operator:"iContains",
value:"bo"
}
],
_constructor:"AdvancedCriteria"
},
operationConfig:{
dataSource:"typeAhead",
operationType:"fetch",
textMatchStyle:"exact"
},
startRow:0,
endRow:75,
componentId:"isc_ListGrid_0",
appID:"builtinApplication",
operation:"typeAhead_fetch",
oldValues:{
operator:"or",
criteria:[
{
fieldName:"AIRPORT_IATA_CODE",
operator:"iStartsWith",
value:"bo"
},
{
fieldName:"AIRPORT_NAME",
operator:"iContains",
value:"bo"
}
],
_constructor:"AdvancedCriteria"
}
}
=== 2011-11-09 11:16:09,478 [81-2] INFO RequestContext - URL: '/mda/builtinds/sc/skins/Enterprise/images/Scrollbar/hthumb_end.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0': Moz (Gecko) with Accept-Encoding header
=== 2011-11-09 11:16:09,518 [81-2] INFO Download - done streaming: C:/Users/sg0209257/HarshaGalla/CodeBase/jars/smartgwtee-3.0/samples/built-in-ds/war/builtinds/sc/skins/Enterprise/images/Scrollbar/hthumb_end.png
=== 2011-11-09 11:16:09,532 [81-1] INFO IDACall - Performing 1 operation(s)
=== 2011-11-09 11:16:09,593 [81-1] DEBUG AppBase - [builtinApplication.typeAhead_fetch] No userTypes defined, allowing anyone access to all operations for this application
=== 2011-11-09 11:16:09,593 [81-1] DEBUG AppBase - [builtinApplication.typeAhead_fetch] No public zero-argument method named '_typeAhead_fetch' found, performing generic datasource operation
=== 2011-11-09 11:16:09,594 [81-1] INFO SQLDataSource - [builtinApplication.typeAhead_fetch] Performing fetch operation with
criteria: {criteria:[{fieldName:"AIRPORT_IATA_CODE",operator:"iStartsWith",value:"bo"},{fieldName:"AIRPORT_NAME",operator:"iContains",value:"bo"}],operator:"or",_constructor:"AdvancedCriteria"} values: {criteria:[{fieldName:"AIRPORT_IATA_CODE",operator:"iStartsWith",value:"bo"},{fieldName:"AIRPORT_NAME",operator:"iContains",value:"bo"}],operator:"or",_constructor:"AdvancedCriteria"}
=== 2011-11-09 11:16:09,610 [81-1] INFO SQLDataSource - [builtinApplication.typeAhead_fetch] derived query: SELECT $defaultSelectClause FROM $defaultTableClause WHERE $defaultWhereClause
log4j:WARN No appenders could be found for logger (org.apache.Velocity).
log4j:WARN Please initialize the log4j system properly.
=== 2011-11-09 11:16:10,031 [81-1] DEBUG SQLDataSource - [builtinApplication.typeAhead_fetch] Executing row count query: SELECT COUNT(*) FROM $defaultTableClause WHERE $defaultWhereClause
=== 2011-11-09 11:16:10,031 [81-1] DEBUG SQLDataSource - [builtinApplication.typeAhead_fetch] Eval'd row count query: SELECT COUNT(*) FROM AIRPORT_DIM WHERE ((LOWER(AIRPORT_IATA_CODE) LIKE LOWER('bo%') ESCAPE'\' AND AIRPORT_IATA_CODE IS NOT NULL) OR (LOWER(AIRPORT_NAME) LIKE LOWER('%bo%') ESCAPE'\' AND AIRPORT_NAME IS NOT NULL))
=== 2011-11-09 11:16:10,212 [81-1] DEBUG PoolableSQLConnectionFactory - [builtinApplication.typeAhead_fetch] Initializing SQL config for 'Oracle' from system config - using DataSource: oracle.jdbc.pool.OracleDataSource
=== 2011-11-09 11:16:13,281 [81-1] DEBUG PoolableSQLConnectionFactory - [builtinApplication.typeAhead_fetch] Returning pooled Connection
=== 2011-11-09 11:16:13,955 [81-1] INFO SQLDriver - [builtinApplication.typeAhead_fetch] Executing SQL query on 'Oracle': SELECT COUNT(*) FROM AIRPORT_DIM WHERE ((LOWER(AIRPORT_IATA_CODE) LIKE LOWER('bo%') ESCAPE'\' AND AIRPORT_IATA_CODE IS NOT NULL) OR (LOWER(AIRPORT_NAME) LIKE LOWER('%bo%') ESCAPE'\' AND AIRPORT_NAME IS NOT NULL))
=== 2011-11-09 11:16:14,597 [81-1] DEBUG SQLDataSource - [builtinApplication.typeAhead_fetch] JDBC driver windowed select rows 0->75, result size 75. Query: SELECT AIRPORT_IATA_CODE, AIRPORT_NAME, COUNTRY_NAME FROM AIRPORT_DIM WHERE ((LOWER(AIRPORT_IATA_CODE) LIKE LOWER('bo%') ESCAPE'\' AND AIRPORT_IATA_CODE IS NOT NULL) OR (LOWER(AIRPORT_NAME) LIKE LOWER('%bo%') ESCAPE'\' AND AIRPORT_NAME IS NOT NULL))
=== 2011-11-09 11:16:15,281 [81-1] INFO DSResponse - [builtinApplication.typeAhead_fetch] DSResponse: List with 75 items
=== 2011-11-09 11:16:15,597 [81-1] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
=== 2011-11-09 11:16:15,598 [81-1] DEBUG RPCManager - DMI response, dropExtraFields: true
=== 2011-11-09 11:16:48,907 [81-6] INFO RequestContext - URL: '/mda/builtinds/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2': Safari with Accept-Encoding header
=== 2011-11-09 11:16:48,910 [81-6] DEBUG XML - Parsed XML from (in memory stream): 2ms
=== 2011-11-09 11:16:48,915 [81-6] DEBUG RPCManager - Processing 1 requests.
=== 2011-11-09 11:16:48,918 [81-6] DEBUG RPCManager - Request #1 (DSRequest) payload: {
criteria:{
operator:"or",
criteria:[
{
fieldName:"AIRPORT_IATA_CODE",
operator:"iStartsWith",
value:"amd"
},
{
fieldName:"AIRPORT_NAME",
operator:"iContains",
value:"amd"
}
],
_constructor:"AdvancedCriteria"
},
operationConfig:{
dataSource:"typeAhead",
operationType:"fetch",
textMatchStyle:"exact"
},
startRow:0,
endRow:75,
componentId:"isc_ListGrid_0",
appID:"builtinApplication",
operation:"typeAhead_fetch",
oldValues:{
operator:"or",
criteria:[
{
fieldName:"AIRPORT_IATA_CODE",
operator:"iStartsWith",
value:"amd"
},
{
fieldName:"AIRPORT_NAME",
operator:"iContains",
value:"amd"
}
],
_constructor:"AdvancedCriteria"
}
}
=== 2011-11-09 11:16:48,919 [81-6] INFO IDACall - Performing 1 operation(s)
=== 2011-11-09 11:16:48,920 [81-6] DEBUG AppBase - [builtinApplication.typeAhead_fetch] No userTypes defined, allowing anyone access to all operations for this application
=== 2011-11-09 11:16:48,920 [81-6] DEBUG AppBase - [builtinApplication.typeAhead_fetch] No public zero-argument method named '_typeAhead_fetch' found, performing generic datasource operation
=== 2011-11-09 11:16:48,921 [81-6] INFO SQLDataSource - [builtinApplication.typeAhead_fetch] Performing fetch operation with
criteria: {criteria:[{fieldName:"AIRPORT_IATA_CODE",operator:"iStartsWith",value:"amd"},{fieldName:"AIRPORT_NAME",operator:"iContains",value:"amd"}],operator:"or",_constructor:"AdvancedCriteria"} values: {criteria:[{fieldName:"AIRPORT_IATA_CODE",operator:"iStartsWith",value:"amd"},{fieldName:"AIRPORT_NAME",operator:"iContains",value:"amd"}],operator:"or",_constructor:"AdvancedCriteria"}
=== 2011-11-09 11:16:48,921 [81-6] INFO SQLDataSource - [builtinApplication.typeAhead_fetch] derived query: SELECT $defaultSelectClause FROM $defaultTableClause WHERE $defaultWhereClause
=== 2011-11-09 11:16:48,922 [81-6] DEBUG SQLDataSource - [builtinApplication.typeAhead_fetch] Executing row count query: SELECT COUNT(*) FROM $defaultTableClause WHERE $defaultWhereClause
=== 2011-11-09 11:16:48,922 [81-6] DEBUG SQLDataSource - [builtinApplication.typeAhead_fetch] Eval'd row count query: SELECT COUNT(*) FROM AIRPORT_DIM WHERE ((LOWER(AIRPORT_IATA_CODE) LIKE LOWER('amd%') ESCAPE'\' AND AIRPORT_IATA_CODE IS NOT NULL) OR (LOWER(AIRPORT_NAME) LIKE LOWER('%amd%') ESCAPE'\' AND AIRPORT_NAME IS NOT NULL))
=== 2011-11-09 11:16:51,529 [81-6] DEBUG PoolableSQLConnectionFactory - [builtinApplication.typeAhead_fetch] Returning pooled Connection
=== 2011-11-09 11:16:52,094 [81-6] INFO SQLDriver - [builtinApplication.typeAhead_fetch] Executing SQL query on 'Oracle': SELECT COUNT(*) FROM AIRPORT_DIM WHERE ((LOWER(AIRPORT_IATA_CODE) LIKE LOWER('amd%') ESCAPE'\' AND AIRPORT_IATA_CODE IS NOT NULL) OR (LOWER(AIRPORT_NAME) LIKE LOWER('%amd%') ESCAPE'\' AND AIRPORT_NAME IS NOT NULL))
=== 2011-11-09 11:16:52,686 [81-6] DEBUG SQLDataSource - [builtinApplication.typeAhead_fetch] JDBC driver windowed select rows 0->75, result size 75. Query: SELECT AIRPORT_IATA_CODE, AIRPORT_NAME, COUNTRY_NAME FROM AIRPORT_DIM WHERE ((LOWER(AIRPORT_IATA_CODE) LIKE LOWER('amd%') ESCAPE'\' AND AIRPORT_IATA_CODE IS NOT NULL) OR (LOWER(AIRPORT_NAME) LIKE LOWER('%amd%') ESCAPE'\' AND AIRPORT_NAME IS NOT NULL))
=== 2011-11-09 11:16:53,274 [81-6] INFO DSResponse - [builtinApplication.typeAhead_fetch] DSResponse: List with 6 items
=== 2011-11-09 11:16:53,563 [81-6] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
=== 2011-11-09 11:16:53,564 [81-6] DEBUG RPCManager - DMI response, dropExtraFields: true
=== 2011-11-09 11:16:53,593 [81-6] INFO Download - Returning 304: Not modified on conditional get of: C:\Users\sg0209257\HarshaGalla\CodeBase\jars\smartgwtee-3.0\samples\built-in-ds\war\builtinds\sc\skins\Enterprise\images\DynamicForm\unchecked.png
=== 2011-11-09 11:16:53,656 [81-6] INFO Download - Returning 304: Not modified on conditional get of: C:\Users\sg0209257\HarshaGalla\CodeBase\jars\smartgwtee-3.0\samples\built-in-ds\war\builtinds\sc\skins\Enterprise\images\Scrollbar\hscroll_Disabled_start.png
=== 2011-11-09 11:16:53,660 [81-3] INFO Download - Returning 304: Not modified on conditional get of: C:\Users\sg0209257\HarshaGalla\CodeBase\jars\smartgwtee-3.0\samples\built-in-ds\war\builtinds\sc\skins\Enterprise\images\Scrollbar\hscroll_Disabled_end.png
=== 2011-11-09 11:16:53,664 [81-1] INFO Download - Returning 304: Not modified on conditional get of: C:\Users\sg0209257\HarshaGalla\CodeBase\jars\smartgwtee-3.0\samples\built-in-ds\war\builtinds\sc\skins\Enterprise\images\Scrollbar\hscroll_Disabled_track.png
=== 2011-11-09 11:16:59,816 [81-1] INFO Download - Returning 304: Not modified on conditional get of: C:\Users\sg0209257\HarshaGalla\CodeBase\jars\smartgwtee-3.0\samples\built-in-ds\war\builtinds\sc\skins\Enterprise\images\ListGrid\row_Over.png
=== 2011-11-09 11:17:00,653 [81-1] INFO Download - Returning 304: Not modified on conditional get of: C:\Users\sg0209257\HarshaGalla\CodeBase\jars\smartgwtee-3.0\samples\built-in-ds\war\builtinds\sc\skins\Enterprise\images\ListGrid\row_Over_Selected.png
=== 2011-11-09 11:17:00,656 [81-3] INFO Download - Returning 304: Not modified on conditional get of: C:\Users\sg0209257\HarshaGalla\CodeBase\jars\smartgwtee-3.0\samples\built-in-ds\war\builtinds\sc\skins\Enterprise\images\DynamicForm\checked.png
=== 2011-11-09 11:17:02,958 [81-3] INFO RequestContext - URL: '/mda/builtinds/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2': Safari with Accept-Encoding header
=== 2011-11-09 11:17:02,961 [81-3] DEBUG XML - Parsed XML from (in memory stream): 2ms
=== 2011-11-09 11:17:02,966 [81-3] DEBUG RPCManager - Processing 1 requests.
=== 2011-11-09 11:17:02,967 [81-3] DEBUG RPCManager - Request #1 (DSRequest) payload: {
criteria:{
operator:"or",
criteria:[
{
fieldName:"AIRPORT_IATA_CODE",
operator:"iStartsWith",
value:"che"
},
{
fieldName:"AIRPORT_NAME",
operator:"iContains",
value:"che"
}
],
_constructor:"AdvancedCriteria"
},
operationConfig:{
dataSource:"typeAhead",
operationType:"fetch",
textMatchStyle:"exact"
},
startRow:0,
endRow:75,
componentId:"isc_ListGrid_0",
appID:"builtinApplication",
operation:"typeAhead_fetch",
oldValues:{
operator:"or",
criteria:[
{
fieldName:"AIRPORT_IATA_CODE",
operator:"iStartsWith",
value:"che"
},
{
fieldName:"AIRPORT_NAME",
operator:"iContains",
value:"che"
}
],
_constructor:"AdvancedCriteria"
}
}
=== 2011-11-09 11:17:02,967 [81-3] INFO IDACall - Performing 1 operation(s)
=== 2011-11-09 11:17:02,968 [81-3] DEBUG AppBase - [builtinApplication.typeAhead_fetch] No userTypes defined, allowing anyone access to all operations for this application
=== 2011-11-09 11:17:02,968 [81-3] DEBUG AppBase - [builtinApplication.typeAhead_fetch] No public zero-argument method named '_typeAhead_fetch' found, performing generic datasource operation
=== 2011-11-09 11:17:02,968 [81-3] INFO SQLDataSource - [builtinApplication.typeAhead_fetch] Performing fetch operation with
criteria: {criteria:[{fieldName:"AIRPORT_IATA_CODE",operator:"iStartsWith",value:"che"},{fieldName:"AIRPORT_NAME",operator:"iContains",value:"che"}],operator:"or",_constructor:"AdvancedCriteria"} values: {criteria:[{fieldName:"AIRPORT_IATA_CODE",operator:"iStartsWith",value:"che"},{fieldName:"AIRPORT_NAME",operator:"iContains",value:"che"}],operator:"or",_constructor:"AdvancedCriteria"}
=== 2011-11-09 11:17:02,973 [81-3] INFO SQLDataSource - [builtinApplication.typeAhead_fetch] derived query: SELECT $defaultSelectClause FROM $defaultTableClause WHERE $defaultWhereClause
=== 2011-11-09 11:17:02,974 [81-3] DEBUG SQLDataSource - [builtinApplication.typeAhead_fetch] Executing row count query: SELECT COUNT(*) FROM $defaultTableClause WHERE $defaultWhereClause
=== 2011-11-09 11:17:02,974 [81-3] DEBUG SQLDataSource - [builtinApplication.typeAhead_fetch] Eval'd row count query: SELECT COUNT(*) FROM AIRPORT_DIM WHERE ((LOWER(AIRPORT_IATA_CODE) LIKE LOWER('che%') ESCAPE'\' AND AIRPORT_IATA_CODE IS NOT NULL) OR (LOWER(AIRPORT_NAME) LIKE LOWER('%che%') ESCAPE'\' AND AIRPORT_NAME IS NOT NULL))
=== 2011-11-09 11:17:05,799 [81-3] DEBUG PoolableSQLConnectionFactory - [builtinApplication.typeAhead_fetch] Returning pooled Connection
=== 2011-11-09 11:17:06,362 [81-3] INFO SQLDriver - [builtinApplication.typeAhead_fetch] Executing SQL query on 'Oracle': SELECT COUNT(*) FROM AIRPORT_DIM WHERE ((LOWER(AIRPORT_IATA_CODE) LIKE LOWER('che%') ESCAPE'\' AND AIRPORT_IATA_CODE IS NOT NULL) OR (LOWER(AIRPORT_NAME) LIKE LOWER('%che%') ESCAPE'\' AND AIRPORT_NAME IS NOT NULL))
=== 2011-11-09 11:17:06,949 [81-3] DEBUG SQLDataSource - [builtinApplication.typeAhead_fetch] JDBC driver windowed select rows 0->75, result size 75. Query: SELECT AIRPORT_IATA_CODE, AIRPORT_NAME, COUNTRY_NAME FROM AIRPORT_DIM WHERE ((LOWER(AIRPORT_IATA_CODE) LIKE LOWER('che%') ESCAPE'\' AND AIRPORT_IATA_CODE IS NOT NULL) OR (LOWER(AIRPORT_NAME) LIKE LOWER('%che%') ESCAPE'\' AND AIRPORT_NAME IS NOT NULL))
=== 2011-11-09 11:17:07,537 [81-3] INFO DSResponse - [builtinApplication.typeAhead_fetch] DSResponse: List with 75 items
=== 2011-11-09 11:17:07,822 [81-3] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
=== 2011-11-09 11:17:07,823 [81-3] DEBUG RPCManager - DMI response, dropExtraFields: true
=== 2011-11-09 11:17:10,995 [81-5] INFO RequestContext - URL: '/mda/builtinds/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2': Safari with Accept-Encoding header
=== 2011-11-09 11:17:10,999 [81-5] DEBUG XML - Parsed XML from (in memory stream): 3ms
=== 2011-11-09 11:17:11,006 [81-5] DEBUG RPCManager - Processing 1 requests.
=== 2011-11-09 11:17:11,008 [81-5] DEBUG RPCManager - Request #1 (DSRequest) payload: {
criteria:{
operator:"or",
criteria:[
{
fieldName:"AIRPORT_IATA_CODE",
operator:"iStartsWith",
value:"dallas"
},
{
fieldName:"AIRPORT_NAME",
operator:"iContains",
value:"dallas"
}
],
_constructor:"AdvancedCriteria"
},
operationConfig:{
dataSource:"typeAhead",
operationType:"fetch",
textMatchStyle:"exact"
},
startRow:0,
endRow:75,
componentId:"isc_ListGrid_0",
appID:"builtinApplication",
operation:"typeAhead_fetch",
oldValues:{
operator:"or",
criteria:[
{
fieldName:"AIRPORT_IATA_CODE",
operator:"iStartsWith",
value:"dallas"
},
{
fieldName:"AIRPORT_NAME",
operator:"iContains",
value:"dallas"
}
],
_constructor:"AdvancedCriteria"
}
}
=== 2011-11-09 11:17:11,008 [81-5] INFO IDACall - Performing 1 operation(s)
=== 2011-11-09 11:17:11,009 [81-5] DEBUG AppBase - [builtinApplication.typeAhead_fetch] No userTypes defined, allowing anyone access to all operations for this application
=== 2011-11-09 11:17:11,010 [81-5] DEBUG AppBase - [builtinApplication.typeAhead_fetch] No public zero-argument method named '_typeAhead_fetch' found, performing generic datasource operation
=== 2011-11-09 11:17:11,010 [81-5] INFO SQLDataSource - [builtinApplication.typeAhead_fetch] Performing fetch operation with
criteria: {criteria:[{fieldName:"AIRPORT_IATA_CODE",operator:"iStartsWith",value:"dallas"},{fieldName:"AIRPORT_NAME",operator:"iContains",value:"dallas"}],operator:"or",_constructor:"AdvancedCriteria"} values: {criteria:[{fieldName:"AIRPORT_IATA_CODE",operator:"iStartsWith",value:"dallas"},{fieldName:"AIRPORT_NAME",operator:"iContains",value:"dallas"}],operator:"or",_constructor:"AdvancedCriteria"}
=== 2011-11-09 11:17:11,011 [81-5] INFO SQLDataSource - [builtinApplication.typeAhead_fetch] derived query: SELECT $defaultSelectClause FROM $defaultTableClause WHERE $defaultWhereClause
=== 2011-11-09 11:17:11,011 [81-5] DEBUG SQLDataSource - [builtinApplication.typeAhead_fetch] Executing row count query: SELECT COUNT(*) FROM $defaultTableClause WHERE $defaultWhereClause
=== 2011-11-09 11:17:11,027 [81-5] DEBUG SQLDataSource - [builtinApplication.typeAhead_fetch] Eval'd row count query: SELECT COUNT(*) FROM AIRPORT_DIM WHERE ((LOWER(AIRPORT_IATA_CODE) LIKE LOWER('dallas%') ESCAPE'\' AND AIRPORT_IATA_CODE IS NOT NULL) OR (LOWER(AIRPORT_NAME) LIKE LOWER('%dallas%') ESCAPE'\' AND AIRPORT_NAME IS NOT NULL))
=== 2011-11-09 11:17:11,029 [81-1] INFO Download - Returning 304: Not modified on conditional get of: C:\Users\sg0209257\HarshaGalla\CodeBase\jars\smartgwtee-3.0\samples\built-in-ds\war\builtinds\sc\skins\Enterprise\images\Scrollbar\vscroll_Disabled_end.png
=== 2011-11-09 11:17:11,036 [81-6] INFO Download - Returning 304: Not modified on conditional get of: C:\Users\sg0209257\HarshaGalla\CodeBase\jars\smartgwtee-3.0\samples\built-in-ds\war\builtinds\sc\skins\Enterprise\images\Scrollbar\vscroll_Disabled_track.png
=== 2011-11-09 11:17:11,030 [81-2] INFO Download - Returning 304: Not modified on conditional get of: C:\Users\sg0209257\HarshaGalla\CodeBase\jars\smartgwtee-3.0\samples\built-in-ds\war\builtinds\sc\skins\Enterprise\images\Scrollbar\vscroll_Disabled_start.png
=== 2011-11-09 11:17:13,604 [81-5] DEBUG PoolableSQLConnectionFactory - [builtinApplication.typeAhead_fetch] Returning pooled Connection
=== 2011-11-09 11:17:14,165 [81-5] INFO SQLDriver - [builtinApplication.typeAhead_fetch] Executing SQL query on 'Oracle': SELECT COUNT(*) FROM AIRPORT_DIM WHERE ((LOWER(AIRPORT_IATA_CODE) LIKE LOWER('dallas%') ESCAPE'\' AND AIRPORT_IATA_CODE IS NOT NULL) OR (LOWER(AIRPORT_NAME) LIKE LOWER('%dallas%') ESCAPE'\' AND AIRPORT_NAME IS NOT NULL))
=== 2011-11-09 11:17:14,749 [81-5] DEBUG SQLDataSource - [builtinApplication.typeAhead_fetch] JDBC driver windowed select rows 0->75, result size 75. Query: SELECT AIRPORT_IATA_CODE, AIRPORT_NAME, COUNTRY_NAME FROM AIRPORT_DIM WHERE ((LOWER(AIRPORT_IATA_CODE) LIKE LOWER('dallas%') ESCAPE'\' AND AIRPORT_IATA_CODE IS NOT NULL) OR (LOWER(AIRPORT_NAME) LIKE LOWER('%dallas%') ESCAPE'\' AND AIRPORT_NAME IS NOT NULL))
=== 2011-11-09 11:17:15,331 [81-5] INFO DSResponse - [builtinApplication.typeAhead_fetch] DSResponse: List with 11 items
=== 2011-11-09 11:17:15,617 [81-5] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
=== 2011-11-09 11:17:15,617 [81-5] DEBUG RPCManager - DMI response, dropExtraFields: true
=== 2011-11-09 11:17:23,857 [81-5] INFO RequestContext - URL: '/mda/builtinds/sc/skins/Enterprise/images/Scrollbar/vscroll_Over_start.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2': Safari with Accept-Encoding header
=== 2011-11-09 11:20:26,753 [81-6] INFO RequestContext - URL: '/mda/builtinds/sc/IDACall', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2': Safari with Accept-Encoding header
=== 2011-11-09 11:20:26,756 [81-6] DEBUG XML - Parsed XML from (in memory stream): 2ms
=== 2011-11-09 11:20:26,761 [81-6] DEBUG RPCManager - Processing 1 requests.
=== 2011-11-09 11:20:26,761 [81-6] DEBUG RPCManager - Request #1 (RPCRequest) data: {
appID:"isc_builtin",
className:"builtin",
methodName:"getAvailableScriptEngines",
arguments:[
],
is_ISC_RPC_DMI:true
}
=== 2011-11-09 11:20:26,762 [81-6] INFO IDACall - Performing 1 operation(s)
=== 2011-11-09 11:20:26,807 [81-1] INFO Download - Returning 304: Not modified on conditional get of: C:\Users\sg0209257\HarshaGalla\CodeBase\jars\smartgwtee-3.0\samples\built-in-ds\war\builtinds\sc\skins\Enterprise\images\cssButton\button_stretch.png
=== 2011-11-09 11:20:26,810 [81-5] INFO Download - Returning 304: Not modified on conditional get of: C:\Users\sg0209257\HarshaGalla\CodeBase\jars\smartgwtee-3.0\samples\built-in-ds\war\builtinds\sc\skins\Enterprise\images\Tab\top\tab_Disabled_start.png
I have removed some log entries related to images due to character constraints. Also find the attached screen shot.
Find the code below:
public class TypeAheadTextItem extends TextItem {
private ListGrid listGrid;
public TypeAheadTextItem() {
super();
listGrid = new ListGrid();
listGrid.setDataSource(DataSource.get("typeAhead"));
ListGridField airportId = new ListGridField("AIRPORT_IATA_CODE",75);
ListGridField airportName = new ListGridField("AIRPORT_NAME",250);
listGrid.setFields(airportId, airportName);
listGrid.setShowHeader(false);
listGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX);
listGrid.setCanSelectAll(false);
listGrid.setAutoFitData(Autofit.BOTH);
// listGrid.setDataPageSize(15000);
listGrid.setAutoFitMaxRecords(10);
// listGrid.fetchData();
listGrid.addDataArrivedHandler(new DataArrivedHandler() {
@Override
public void onDataArrived(DataArrivedEvent dataArrivedEvent) {
RecordList recordList= listGrid.getDataAsRecordList();
// String searchText = getEnteredValue().contains(",") ? getEnteredValue().substring(getEnteredValue().lastIndexOf(",") + 1).trim() : getEnteredValue();
String[] selectedItems = getEnteredValue().contains(",")?getEnteredValue().substring(0,getEnteredValue().lastIndexOf(",")).split(","):new String[]{};
for(String item:selectedItems){
if(recordList.find("AIRPORT_IATA_CODE",item)!=null)
listGrid.selectRecord(recordList.find("AIRPORT_IATA_CODE",item));
}
}
});
listGrid.addRecordClickHandler(new RecordClickHandler() {
@Override
public void onRecordClick(RecordClickEvent recordClickEvent) {
Record rec = recordClickEvent.getRecord();
String value = getEnteredValue().contains(",") ? getEnteredValue().substring(0, getEnteredValue().lastIndexOf(",") + 1).trim() : "";
setValue(value + rec.getAttribute("AIRPORT_IATA_CODE") + ",");
focusInItem();
}
});
addKeyUpHandler(new KeyUpHandler() {
@Override
public void onKeyUp(KeyUpEvent keyUpEvent) {
if (keyUpEvent.getKeyName().equalsIgnoreCase("escape"))
listGrid.hide();
}
});
addChangedHandler(new ChangedHandler() {
@Override
public void onChanged(ChangedEvent changedEvent) {
String searchText = getEnteredValue().contains(",") ? getEnteredValue().substring(getEnteredValue().lastIndexOf(",") + 1).trim() : getEnteredValue().trim();
if (!searchText.equalsIgnoreCase("")) {
new Timer() {
private String currentValue = getEnteredValue().contains(",") ? getEnteredValue().substring(getEnteredValue().lastIndexOf(",") + 1).trim() : getEnteredValue();
@Override
public void run() {
String searchText = getEnteredValue().contains(",") ? getEnteredValue().substring(getEnteredValue().lastIndexOf(",") + 1).trim() : getEnteredValue();
if (currentValue.equalsIgnoreCase(searchText)) {
AdvancedCriteria criteria = new AdvancedCriteria(OperatorId.OR, new Criterion[]{
new Criterion("AIRPORT_IATA_CODE", OperatorId.ISTARTS_WITH, searchText),
new Criterion("AIRPORT_NAME", OperatorId.ICONTAINS, searchText)});
listGrid.fetchData(criteria);
listGrid.show();
listGrid.moveTo(getLeft(), getTop() + getHeight());
listGrid.showClickMask(new ListGridMask(listGrid), ClickMaskMode.HARD, new Canvas[]{listGrid});
focusInItem();
}
}
}.schedule(400);
} else listGrid.hide();
}
});
}
}
I have set 400ms between key events to avoid hitting server. But if you see in the RPC tab, the request is taking around 5000-7000 ms. The textItem here supports comma seperated autosuggest.
Please let me know if you need anything else.
I’m using :
browser: Chrome: 15.0.874.106 m (its slow in other browsers also)
SmartGwt version: SC_SNAPSHOT-2011-11-03/EVAL Deployment 2011-11-03
Thanks.
