Scheduled maintenance: This website will be offline from Friday 18/10/2024 9.30am EADT. For more information see Website Upgrade.

  Sign In   Register
x
Play video and select frame to capture or upload thumbnail
  Play   Capture Upload Own Image

Populating Data Driven Components using JSON with a Prefill Data Service

By Knowledge in Maestro 9th Jun, 2021

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: - Add two additional fields for capital city and population. - Create a Groovy service in TM which defines prefill using a JSON array of states plus their corresponding capital city and population. - 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. - From the state dropdown, reference the data field to obtain the states list. - Create a Change rule for the State dropdown to obtain the chosen state's capital city and population whenever the user chooses another state.


Tags
No tags available yet


0
0
0
0
0
0
Comments (0)
Unable to load tooltip content.

Ideas

Got a good idea for improvement?

Submit your Idea