Limit and offset in queryData WebService

Description

The webservice queryData responds with all records found, this can be a problem when there are thousands.It intends to apply a limit and an offset for better data management.

Example:

<soapenv:Envelope xmlns:_0="http://idempiere.org/ADInterface/1_0" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<_0:queryData>
<_0:ModelCRUDRequest>
<_0:ModelCRUD>
<_0:serviceType>QueryAsset</_0:serviceType>
<_0:Limit>3</_0:Limit>
<_0:Offset>1</_0:Offset>
</_0:ModelCRUD>
<_0:ADLoginRequest>
<_0:user>user</_0:user>
<_0ass>pass</_0ass>
<_0:ClientID>1000000</_0:ClientID>
<_0:RoleID>1000000</_0:RoleID>
</_0:ADLoginRequest>
</_0:ModelCRUDRequest>
</_0:queryData>
</soapenv:Body>
</soapenv:Envelope>

Environment

None

Attachments

1

Activity

Show:

Saúl Piña May 15, 2015 at 4:49 PM

WindowTabData Response example:

<WindowTabDataNumRows="3" TotalRows="3432" StartRow="1" xmlns="http://idempiere.org/ADInterface/1_0">

Saúl Piña May 15, 2015 at 4:48 PM

The new parameters are optional:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:_0="http://idempiere.org/ADInterface/1_0">
<soapenv:Header/>
<soapenv:Body>
<_0:queryData>
<_0:ModelCRUDRequest>
<_0:ModelCRUD>
<_0:serviceType>?</_0:serviceType>
<_0:TableName>?</_0:TableName>
<_0:RecordID>?</_0:RecordID>
<!--Optional:-->
<_0:recordIDVariable>?</_0:recordIDVariable>
<!--Optional:-->
<_0:Filter>?</_0:Filter>
<_0:Action>?</_0:Action>
<!-Optional:->
<_0:Offset>?</_0:Offset>
<!-Optional:->
<_0:Limit>?</_0:Limit>
<!--Optional:-->
<_0ataRow>
<!--Zero or more repetitions:-->
<_0:field type="?" column="?" lval="?" disp="?" edit="?" error="?" errorVal="?">
<_0:val>?</_0:val>
<!--Optional:-->
<_0:lookup>
<!--Zero or more repetitions:-->
<_0:lv val="?" key="?"/>
</_0:lookup>
</_0:field>
</_0ataRow>
</_0:ModelCRUD>
<_0:ADLoginRequest>
<_0:user>?</_0:user>
<_0ass>?</_0ass>
<_0:lang>?</_0:lang>
<_0:ClientID>?</_0:ClientID>
<_0:RoleID>?</_0:RoleID>
<_0:OrgID>?</_0:OrgID>
<_0:WarehouseID>?</_0:WarehouseID>
<_0:stage>?</_0:stage>
</_0:ADLoginRequest>
</_0:ModelCRUDRequest>
</_0:queryData>
</soapenv:Body>
</soapenv:Envelope>

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created May 15, 2015 at 4:47 PM
Updated July 1, 2015 at 1:04 PM
Resolved May 15, 2015 at 5:54 PM