1. Component library

StoredQueryDataSource

Version:

You use the StoredQueryDataSource component to fetch items from Sitecore. The component uses ItemService from Sitecore.Services.Client to fetch the items.

Properties

NameDescriptionDefault
Data
DatabaseSpecify the database to retrieve the item from.
FieldsSpecify the names of the fields to retrieve in a comma-separated list.
IncludeStandardTemplateFieldsIf true, the standard template fields are part of the data that is retrieved.
IsBusyTrue if the component is in the process of retrieving data from the server (read-only).
ItemsThis read-only property contains the retrieved items.
LanguageSpecify the language version of the items you want to search in.
QueryIDSpecify the ID of the Sitecore item that contains the definition of the query to run.
Paging
PageIndexSpecify the page number in the result set of pages that the component shows.
PageSizeSpecify the number of results the component returns.

Configuration

You can create a configuration item for a StoredQueryDataSource component by creating an item based on the StoredQueryDataSource Parameters template.

The configuration item has these specific fields:

  • QueryID
  • IsBusy
  • Items
  • IncludeStandardTemplateField
  • It inherits these fields:
  • Database
  • Fields
  • PageSize
  • PageIndex
  • Language
  • Behaviors
  • Id
If you have suggestions for improving this article, let us know!