Skip to end of metadata
Go to start of metadata

In this suite of videos, David will show you how to configure and source data driven components within Maestro (video 1). The other option is to source the data driven components from Transact Manager, and two ways are demonstrated. One way is, to use a prefill Groovy service (video2) and the other is using a JSON definition (video 3).

What are Data Driven Components?

These are fields that are populated from a data source. For instance, when displaying the data list for dropdowns, checkboxes and radio button groups.
The data list may at times be a static list of items, such as with the states of a specific country. But at other times, a more dynamic list of items is required.

Let's Start!

 

Video 1 - Maestro: Exploring Data Driven Components

Maestro: Exploring Data Driven Components from Avoka on Vimeo.

 

In this video, David creates a form with a simple dropdown to choose your fruit, as well as, creating this example as a checkbox group and as a radio button group.

Create a Maestro form:

  • Configure a data driven dropdown, data driven checkbox group and radio button group.
  • Configure a Data Field for holding the data values, the list of fruits, in two ways.
    1. An array of objects.
    2. A string delimited by pipe and commas - converted into an array of objects using an API method Calc.delimitedSelection (David's preferred, as requires less code).
  • From the fruit dropdown, checkbox group and radio button group, reference the array of objects, the data field



Video 2 - Maestro: Populating Data Driven Components Using a Form Prefill Data Service

Maestro: Populating Data Driven Components using a Form Prefill Data Service from Avoka on Vimeo.

David shows you how to populate a dropdown of states using a string in a prefill G roovy service.

General steps are:

  1. Create the Maestro form with the data driven dropdown for choosing your state.
  2. Create a Groovy service in TM which defines the data as a list of states delimited by pipes.
  3. Create a form Load rule in Maestro which defines a data field, states list, and at start, loads the states using the new Groovy service.
  4. From the state dropdown, reference the data field to obtain the states list.


 

Video 3 - Maestro: Populating Data Driven Components Using JSON in a Form Prefill Data Service

Maestro: Populating Data Driven Components using JSON with a Form Prefill Data Service from Avoka on Vimeo.

Here David shows you how to extend the state list dropdown. In addition to the states dropdown, any time a state is selected its related capital city and population is displayed. This is achieved by the JSON array holding the capital city and population along with each state.

General steps are:

  1. Add two additional fields for capital city and population.
  2. Create a Groovy service in TM which defines prefill using a JSON array of states plus their corresponding capital city and population.
  3. Create a form Load rule in Maestro which defines a data field, states list, and at start, loads the states using the new Groovy service.
  4. From the state dropdown, reference the data field to obtain the states list.
  5. Create a Change rule for the State dropdown to obtain the chosen state's capital city and population whenever the user chooses another state.






  • No labels