populate a combobox in jsviewer widget

Discussion created by successstory on May 10, 2013
Latest reply on May 12, 2013 by successstory
I'm woriking with jsviewer and JSAPI v:2.8. in one of my widgets I have a combobox which I want to be populated once the widget is opened .It should be populated with a field values coming from a layer in mapservice. I have already the code to populate the combobox,I found it here: , but I can't use it correctly .I think the problem is in the way the function that populate the combobox is called(in startup
function ) or the widget can't access to the config data. pleaze if you have any idea ,I will be grateful.