Changes

QUERY

572 bytes added, 11:39, 24 March 2015
/* Content query */
==Content query ==
Objects can be loaded on demand from the server, as storing a huge amount of data permanently on the device would need too much resources.
A content query needs to be
* an [[QUERY]] instance classified as [[SYSCLS_QUERY]]
* related either to other content objects (to show up somewhere in the view hierarchy) or placed as root object of a [[VIEW|View]]
* described by a [[QUERYSCOPE|Query Scopes]] in the ACM
Fetching a list of objects filtered by certain criteria, for example for* scanning of ID markers (QR-Code, Barcode, …)* show objects from deeper hierarchy levels Storing of data permanently on the device would need too much resources, hence we load the objects from server on demand. Characteristics of a content query are* derivative from QUERY classified as SYSCLS_QUERY marks instances as content queries* Related Further it is nessary to instances via relations* Placed in view hierarchy defined via view items* Require context scopes on client side Configuration of create a content [[QueryViewItem|HowTo:Create_a_new_ViewItem]] for the query requiesobject itself
* Set filter object (FILTEROBJECT) similar as for other query
* Create a proper relation
* Create and relate a query context scope and set the instance as QUERY
* For the scope define the MetaProperties, which should be available as filter criteria on the client. Without appropriate query item, equality is used as filter operator (=)
 
# Once the scan is finished, wait until the scanner is closed and an empty browser shows up;
# Depending on the network connection and the {{UBIK}} [[Sync Mode|sync mode]], [[Optical code#Searching for objects|different ways of searching]] will be applied;
# During the search, the list might show a searching text before any objects are found;<br/>[[File:UI_Android_SearchObjectWithOpticalCode.jpg|420 px|border|alt=Searching for Objects|Searching for Objects]]
# If any objects are found, they will be added to the list.<br/>[[File:UI_Android_ObjectWithOpticalCodeFound.jpg|420 px|border|alt=Displaying Objects|Displaying Objects]]
== Scan query ==
10,686
edits