The
complex table selection property type is used to store a selection
made by the user from a complex table. The value stored in a complex
table selection property is the key field of the selected record
within the complex table. The data type of this value will be a
string, integral number, or decimal number, based on the data type
of the key field.
The
following diagram and steps depict what happens when the Agentry
Client must load or reload a data table.
Data Flow - Standard Data Table
- The data table’s initialize() method is called.
- The initialize() method calls a DataTableStepHandler
build() static method passing the User object.
- The DataTableStepHandler build() method constructs
the necessary DTBAPI class, passing the User object, clientLastUpdate parameter,
and table name to it.
- The DTBAPI constructor retrieves the JCo function
object for /SYCLO/CORE_DT_GET from the repository,
using the connection on User.
- DTBAPI sets the table name in the table IT_DOID,
in the field DO_ID in the BAPI import
parameters.
- DTBAPI adds IT_xxx record(s)
to DTObject import tables for search criteria or
other input parameters.
- DataTableStepHandler build() method calls getNumRows() method
in DTBAPI.
- DTBAPI getNumRows() calls the execute() function
and checks for exceptions.
- DTBAPI getNumRows() reads ET_RETURN table
in the BAPI class for error messages.
- CTBAPI getNumRows() method iterates over ET_DATA_TABLE and
reads records from the table.
- For each record, DTBAPI getRows() method calls
the appropriate constructor in the appropriate SAPObject subtype.
- The SAPObject subtype constructor maps the
JCo record column names to field names.
- DTBAPI getNumRows() method collects the SAPObjects in DataTable and
passes them back to DataTableStepHandler.
- DataTableStepHandler build() method passes the DataTableObject
back to the initialize() method and is then stored in the appropriate
field.
- Agentry application within the SAP Mobile Server parses these
iterators and sends the table rows to the client.