How to fetch data from a json file and use it in drop down

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Hi @Iwene Pevke​,

Please read this

https://basecamp.kony.com/s/question/0D56A00000o5BqDSAU/what-is-the-best-way-to-fetch-data-from-a-json-file

Thanks

Hi @Iwene Pevke​

  • Dynamically assign data to the list box using the mandated format for list box. i.e.
  • [["key1", "value1"],["key2", "value2"],["key3", "value3"]]

eg:-

listData = [["key1", "value1"],["key2", "value2"],["key3", "value3"]]

this.view.listView.masterData = listData