Data

Data

Usage

=data.<data source name>.<field name>:<format>

Data sources such as REST and JSON data can be bound to in IWML by specifying the URL source in the data property. The keyword data is used to bind to properties in the code behind object.

Field name can specify multiple values in case of embedded objects in the data:

=data.users.Address.City

Because this source type is the most commonly used type and a name must also be specified, the tag for this source type can also be an implicit default using an empty string. The following two statements are identical:

=data.<data source name>.<field name>
=.<data source name>.<field name>

Example

ACORN 1.0 IWML 1.0
Page
  Data[]
    Dataset:dsUsers https://jsonplaceholder.typicode.com/users
  ]
  Root[]
    SimpleStack[]
      Text [b]Name
      Text =.dsUsers.name
    ]
  ]
]