Show TOC

Procedure documentationCreating a Query Model Class Locate this document in the navigation structure

 

You use this procedure to define a query or a composite model class in the Mobile Project. You can then model the new model class as a:

  • Query

    Allows you to retrieve data based on specific selection criteria. In addition to this, you can define sort conditions to display the data in a specific order.

  • Composite

    Allows you to select the attributes from more than one model class and maintain them collectively in a composite class. For example, a query output object that derives its result set from more than one model.

You can model the query and the composite in the same model class or in different model classes, as required.

Prerequisites

The Mobile Project contains a model.

Procedure

  1. In the Laptop UI Explorer, expand the model node in which you want to create a query or a composite model class.

  2. Click the Model Classes node with the secondary mouse button and choose Create Query/Composite Model Class .

  3. Enter a name for the query or the composite.

  4. Choose Finish.