首頁 / 浏覽問題 / WebGIS / 問題詳情
startRecord模拟分頁無效
45EXP 2024年12月27日

使用産品:iserver 11.2    win11 x64    SuperMap iClient JavaScript 11i(2024) SP1

數據類型:文件型

問題:startRecord不(bù)管是(shì)幾都隻會返回前20條數據,我看F12中對應的(de)請求裏startRecord傳了(le/liǎo)

returnContent: true
_method: POST
requestEntity: {'queryMode':'SqlQuery','queryParameters':{'customParams':null,'expectCount':20,'networkType':"LINE",'queryOption':"ATTRIBUTEANDGEOMETRY",'queryParams':[{'name':"調查戶院@wszl",'attributeFilter':"",'joinItems':null,'linkItems':null,'ids':null,'orderBy':null,'groupBy':null,'fields':null}],'startRecord':80,'prjCoordSys':null,'holdTime':10,'returnCustomResult':false}}
callback: SuperMap.Util.RequestJSONP.supermap_callbacks[76557981585309400]
sectionCount: 1
sectionIndex: 0
jsonpUserID: 1735263190816
let queryParam, queryBySQLParams, queryBySQLService;
            queryParam = new SuperMap.REST.FilterParameter({
                name: DATASET_NAME + '@' + DATASOURCE
            });
            queryBySQLParams = new SuperMap.REST.QueryBySQLParameters({
                queryParams: [queryParam],
                startRecord: startRecord,
                expectCount: 20
            });
            queryBySQLService = new SuperMap.REST.QueryBySQLService(`${ISERVER_MAP_URL}/rest/maps/${DATASET_NAME}@${DATASOURCE}`, {
                eventListeners: {
                    "processCompleted": function (queryEventArgs) {
                    },
                    "processFailed": function (e) {
                    }
                }
            });
            queryBySQLService.processAsync(queryBySQLParams);

2 個(gè)回答

用IServer 10.1.2就(jiù)沒問題
45EXP 2024年12月27日

您試試iClient最新版本,設置的(de)參數可以(yǐ)生效

1,191EXP 2024年12月27日
iServer 11.2 換成 11.3或10版本就(jiù)好了(le/liǎo),不(bù)知道(dào)啥原因
...