company logo

Assign source path

In order to assign a data source path, additional support is provided when pressing the Assign source path button:

A selection three pops up showing the class members of the defined data type, or for fields for the data type evaluated for the parent field/query.

Pressing the select button writes the data source path for the selected property to the Source field.

Selecting employees in the example produces the following path:

    Company(?id).employees(-1)

The placeholder ?id is created by default as parameter for an identifying key or position in the top collection. The top collection is assumed to have the same name as the data type, which has to be changed, when this is nit the case. For referenced collections (as employees)either 0 (single instance reference) or -1 is generated. In case of -1, the value should be replaced bay a valid locator (key or position) or removed in order to indicate, the complete collection should be processed ( ...employees()). The path could also include selection rules or any other supported odaba::Property function as wall as functions implemented in the application:

    Company(?id).employees.where(married==true)

for showing married employees, only. In general, everything that defines a valid ODABA access path or operation may be passed as data source.