I am using smart client 5.7. My datasource is returning 28643 on fetch. when I try scrolling past first page Ui goes in the endless loop requesting the same data again and again. Is it a bug or am I doing something wrong.
Attached is extract from server logs that is repeated in endlees loop when scrolling to the end of scrollbar.
Thanks,
David
=== 2007-11-08 09:34:28,010 [ng)‘] INFO DSResponse - DSResponse: List with 42 items
=== 2007-11-08 09:34:28,010 [ng)’] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8
=== 2007-11-08 09:34:28,010 [ng)‘] DEBUG RPCManager - DMI response, dropExtraFields: true
=== 2007-11-08 09:34:28,635 [ng)’] INFO RequestContext - URL: ‘/URProcessManage
ment/isomorphic/IDACall’, User-Agent: ‘Mozilla/4.0 (compatible; MSIE 6.0; Window
s NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)’: MSIE with Accept-Encoding header, ready for compressed JS
=== 2007-11-08 09:34:28,667 [ng)‘] DEBUG XML - Parsed XML from (in memory stream
): 0ms
=== 2007-11-08 09:34:28,667 [ng)’] DEBUG RPCManager - Processing 1 requests.
=== 2007-11-08 09:34:28,667 [ng)‘] DEBUG RPCManager - Request #1 (DSRequest) pay
load: {
criteria:{},
operationConfig:{dataSource:“providerDS”, operationType:“fetch”},
startRow:28601,
endRow:28643,
appID:“builtinApplication”,
operation:“providerDS_fetch”,
oldValues:{}
}
=== 2007-11-08 09:34:28,667 [ng)’] INFO IDACall - Performing 1 operation(s)
=== 2007-11-08 09:34:28,667 [ng)'] DEBUG Reflection - adaptArgsAndInvoke:
public com.isomorphic.datasource.DSResponse com.ze.rad.persistence.ProviderDMI.
fetch(com.ze.rad.vo.TreatReqProvider,com.isomorphic.datasource.DSRequest) throws java.lang.Exception
requiredArgs: optionalArgs: [com.isomorphic.servlet.RequestContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.http.HttpSession, com.isomorphic.rpc.RPCManager, com.isomorphic.datasource.DSRequest, com.isomorphic.datasource.DataSource, java.util.Map]
=== 2007-11-08 09:34:28,667 [ng)‘] DEBUG Reflection - Adapting type: com.isomorphic.servlet.RequestContext to type: com.ze.rad.vo.TreatReqProvider
=== 2007-11-08 09:34:28,667 [ng)’] DEBUG Reflection - Adapting type: javax.servlet.http.HttpServletRequest to type: com.ze.rad.vo.TreatReqProvider
=== 2007-11-08 09:34:28,667 [ng)‘] DEBUG Reflection - Adapting type: javax.servlet.http.HttpServletResponse to type: com.ze.rad.vo.TreatReqProvider
=== 2007-11-08 09:34:28,667 [ng)’] DEBUG Reflection - Adapting type: javax.servlet.http.HttpSession to type: com.ze.rad.vo.TreatReqProvider
=== 2007-11-08 09:34:28,667 [ng)‘] DEBUG Reflection - Adapting type: com.isomorphic.rpc.RPCManager to type: com.ze.rad.vo.TreatReqProvider
=== 2007-11-08 09:34:28,667 [ng)’] DEBUG Reflection - Adapting type: com.isomorphic.datasource.DSRequest to type: com.ze.rad.vo.TreatReqProvider
=== 2007-11-08 09:34:28,667 [ng)‘] DEBUG Reflection - Adapting type: com.isomorphic.datasource.DataSource to type: com.ze.rad.vo.TreatReqProvider
=== 2007-11-08 09:34:28,667 [ng)’] DEBUG Reflection - Adapting type: java.util.Map to type: com.ze.rad.vo.TreatReqProvider
=== 2007-11-08 09:34:28,667 [ng)‘] DEBUG Reflection - Converting Map arg to bean of type: com.ze.rad.vo.TreatReqProvider
=== 2007-11-08 09:34:28,667 [ng)’] DEBUG Reflection - Successfully adapted optional arg type: java.util.Map to type: com.ze.rad.vo.TreatReqProvider
=== 2007-11-08 09:34:28,667 [ng)‘] DEBUG Reflection - Adapting type: com.isomorphic.servlet.RequestContext to type: com.isomorphic.datasource.DSRequest
=== 2007-11-08 09:34:28,667 [ng)’] DEBUG Reflection - Adapting type: javax.servlet.http.HttpServletRequest to type: com.isomorphic.datasource.DSRequest
=== 2007-11-08 09:34:28,667 [ng)‘] DEBUG Reflection - Adapting type: javax.servlet.http.HttpServletResponse to type: com.isomorphic.datasource.DSRequest
=== 2007-11-08 09:34:28,667 [ng)’] DEBUG Reflection - Adapting type: javax.servlet.http.HttpSession to type: com.isomorphic.datasource.DSRequest
=== 2007-11-08 09:34:28,667 [ng)‘] DEBUG Reflection - Adapting type: com.isomorphic.rpc.RPCManager to type: com.isomorphic.datasource.DSRequest
=== 2007-11-08 09:34:28,667 [ng)’] DEBUG Reflection - Adapting type: com.isomorphic.datasource.DSRequest to type: com.isomorphic.datasource.DSRequest
=== 2007-11-08 09:34:28,667 [ng)‘] DEBUG Reflection - Successfully adapted optional arg type: com.isomorphic.datasource.DSRequest to type: com.isomorphic.datasource.DSRequest
=== 2007-11-08 09:34:28,667 [ng)’] DEBUG Reflection - method takes: 2 args. I’ve assembled: 2 args
=== 2007-11-08 09:34:28,667 [ng)'] DEBUG Reflection - invoking method:
com.isomorphic.datasource.DSResponse com.ze.rad.persistence.ProviderDMI.fetch(com.ze.rad.vo.TreatReqProvider, com.isomorphic.datasource.DSRequest) throws java.lang.Exception
with arg types: com.ze.rad.vo.TreatReqProvider,com.isomorphic.datasource.DSRequest
select * from ( select row_.*, rownum rownum_ from ( select reatreqpr0_.PROVIDER_ID as PROVIDER1_8_, treatreqpr0_.PROVIDER_LOC_TXT as PROVIDER2_8_, treatreqpr0
.TEL1_NUM_TXT as TEL3_8, treatreqpr0_.TEL1_EXTENSION_TXT as TEL4_8_, treatreqpr0_.TEL1_AREA_TXT as TEL5_8_, treatreqpr0_.ADDRESS_LINE_1_TXT as ADDRESS6_8_, treatreqpr0_.CITY_NM as CITY7_8_, treatreqpr0_.STATE_CD as STATE8_8_, treatreqpr0_.ZIP_CD as ZIP9_8_, treatreqpr0_.ZIP_EXTENSION_CD as IP10_8_,treatreqpr0_.COUN
TRY_CD as COUNTRY11_8_, treatreqpr0_.COUNTY_CD as COUNTY12_8_, treatreqpr0_.TIN_TXT as TIN13_8_, treatreqpr0_.ADDRESS_LINE_2_TXT as ADDRESS14_8_, treatreqpr0_.FAX1_AREA_TXT as FAX15_8_, treatreqpr0_.FAX1_NUM_TXT as FAX16_8_, treatreqpr0_.NAME as NAME8_ from TREAT_REQ_PROVIDER treatreqpr0_ ) row_ where rownum <= ?) where rownum_ > ?
My Data source
<DataSource ID=“providerDS”
serverType=“generic”>
<fields>
<field primaryKey=“true”
name=“providerId” title=“PROVIDER_ID” hidden=“true” type=“sequence” />
<field name=“name” title=“NAME” type=“text” />
<field name=“tinTxt” title=“TIN_TXT” type=“text” />
<field name=“cityNm” title=“CITY_NM” type=“text” />
</fields>
<serverObject lookupStyle="new" className="com.ze.rad.persistence.ProviderDMI"/>
<!-- You can define an operationBindings section to bind operation names to server method
(potentially additionally discriminated by the operationId).
In the absense of this section, the server will look for a server method named after
the operationType.
-->
<!--
<operationBindings>
<binding operationType="fetch" serverMethod="fetch">
<serverObject lookupStyle="new" className="com.isomorphic.examples.SupplyItemDMI"/>
</binding>
</operationBindings>
-->
</DataSource>
My jsp page
<%@ taglib uri=“/WEB-INF/iscTaglib.xml” prefix=“isomorphic” %>
<HTML><HEAD>
<isomorphic:loadISC skin=“SmartClient”/>
</HEAD><BODY>
<SCRIPT>
<isomorphic:loadDS ID=“providerDS” />
function fetchProviderButtonClicked() {
isc.warn(‘button was clicked’);
providerList.fetchData(providerForm.getValuesAsCriteria());
}
isc.defineClass(“FilterListGrid”, “ListGrid”).addProperties({
showSortArrow:“corner”,
alternateRecordStyles:true,
wrapCells:true,
fixedRecordHeights:false,
autoFetchData:false,
selectionType:“simple”,
canDragSelect:false,
dataPageSize:25,
fetchMode:“paged”
})
VStack.create({
left:170, top:75,
width:“70%”,
membersMargin:20,
members:[
// toolbar to perform various actions using the boundForm values (see helpText above)
Toolbar.create({
autoDraw:false,
membersMargin:10,
buttonConstructor: “IButton”,
height: 22,
buttons:[
{title:“Save”, click:“providerForm.saveData()”, ID:“saveBtn”},
{title:“Clear”, click:“providerForm.clearValues();providerForm.editNewRecord();saveBtn.enable()”},
{title:“Filter”, click:“providerList.filterData(providerForm.getValuesAsCriteria());”},
{title:“Fetch providers”,
click:“fetchProviderButtonClicked();”},
{title:“Delete”, ID:“deleteBtn”, disabled: true,
click:“providerList.removeSelectedData();providerList.deselectAllRecords()”}
]
}),
isc.DynamicForm.create({
ID:“providerForm”,
left:50,top:250,
//width:300,
//height:200,
fields: [
{name:“name”, title:“Provider Name”
},
{name:“tinTxt”, title:“Provider Tin”
},
{name:“cityNm”, title:“Provider City”
}
],
dataSource:providerDS
}),
isc.ListGrid.create({
ID:“providerList”,
left:650,top:100,
width:400,
fields: [
{name:“name”, title:“Provider Name”
},
{name:“tinTxt”, title:“Provider Tin”
},
{name:“cityNm”, title:“Provider City”
}
],
canEdit:true,
editEvent: “click”,
//recordClick:“countryForm.editRecord(record)”;
dataSource:providerDS
})
]
})
// Call fetchData() on the tree to load the initially visible categories
// ---------------------------------------------------------------------
</SCRIPT>
</BODY></HTML>