FireDAC Components for REST

Build 23.0.8804


The api:first keyword is used to execute a section of a script for only the first iteration of an api:call or api:enum keyword. It is a convenient way to generate headings or to inspect the first item of a feed before going through the rest of the feed.

During the first iteration, the api:first body executes before any other code within the api:call or api:enum, regardless of where the api:first is located within the api:call or api:enum body. As a reminder of this, it is recommended to locate the api:first at the top of the api:call or api:enum body.

If the scope has no items, then neither api:first nor api:last are executed.



Control Attributes



Create an HTML table from a feed where each item is represented as a row:

<api:call op="listCustomers">
      <api:enum item="customer">
      <api:enum item="customer">

See Also

  • api:last: Execute a code block only for the last iteration.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8804