snoopydogg Posted May 21, 2020 Share Posted May 21, 2020 Hi, i'm trying to create a select option tag on my json data to say 'select country' and then when the user clicks on the drop down arrow, they are able to see a list of all the countries to choose from. This is what i have at the moment but im not sure how to add the select option tag. if(getCurrency.opstatus == 0){ var currencies = getCurrency.currencies; var currencyListkData = []; var keys = Object.keys(currencies); keys.sort(); for(var i=0;i<keys.length;i++){ currencyListkData.push([keys,currencies[keys]+"("+ currencySymbolTab[keys]+")"]); } self.view.ListBox1.masterData = currencyListkData; self.view.ListBox2.masterData = currencyListkData; }else{ kony.print("Error in service invocation") } thanks. Link to comment Share on other sites More sharing options...
Ingolme Posted May 21, 2020 Share Posted May 21, 2020 What is self.view? It looks like you may be using some kind of framework. Without knowing which framework you are using and how the framework works I can't tell you how to solve this. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now