Skip To Content ArcGIS for Developers Sign In Dashboard

PortalQueryResultSetForItems Class

(Esri::ArcGISRuntime::PortalQueryResultSetForItems)

This class represents results of an items query performed on a portal. More...

Header: #include <PortalQueryResultSetForItems>
Since: Esri::ArcGISRuntime 100.0
Inherits: Object

Public Functions

PortalQueryResultSetForItems(QObject *parent = nullptr)
~PortalQueryResultSetForItems()
PortalItemListModel *itemResults() const
PortalQueryParametersForItems nextQueryParameters() const
PortalQueryParametersForItems queryParameters() const
int totalResults() const
  • 31 public functions inherited from QObject

Additional Inherited Members

Detailed Description

This class represents results of an items query performed on a portal.

A "pageable" search performed on a portal may yield a large number of results. The number of results in a PortalQueryResultSetForItems is limited by the results limit field of the PortalQueryParametersForItems used to make the query. By default, only the first ten result values are returned. The PortalQueryResultSetForItems allows clients to retrieve results in batches. Use nextQueryParameters to get a PortalQueryParametersForItems object to fetch the next batch of results.

See also Portal, PortalQueryParametersForItems, and PortalItem.

Member Function Documentation

PortalQueryResultSetForItems::PortalQueryResultSetForItems(QObject *parent = nullptr)

Default constructor with an optional parent.

PortalQueryResultSetForItems::~PortalQueryResultSetForItems()

Destructor.

PortalItemListModel *PortalQueryResultSetForItems::itemResults() const

Returns a list of PortalItem objects which satisfy the query.

See also PortalItem.

PortalQueryParametersForItems PortalQueryResultSetForItems::nextQueryParameters() const

Returns the parameters used to select the next set of results.

If the full set of items identified by the original query is too large, this property will contain the query which should be used to make a further call to Portal::findItems on the portal. If this property is empty, no further items are available.

See also Portal and PortalQueryParametersForItems.

PortalQueryParametersForItems PortalQueryResultSetForItems::queryParameters() const

Returns the parameters used to select the itemResults

The parameters are based on the original PortalQueryResultSetForItems used to call Portal::findItems on the portal. However, if the total set of results is too large, the parameters will be refined to select only a subset of the records - i.e. those contained in the results.

See also PortalQueryParametersForItems.

int PortalQueryResultSetForItems::totalResults() const

Returns the count of items selected by the query.


Feedback on this topic?