How to reference list applet columns in Open UI js
Hello,
We have some JS that is used by one of our form applets. This is working fine. Here is a snippet from our PR:
...
var stLocation = ac_controls["OAK Location Desired"];
$("[name='" + stLocation.GetInputName() + "']").autocomplete({
source: function (request, response) {
$.getJSON("http://webqa1.oakwood.com/action/oakwood/search/locationSuggestion?location=" + $("[name='" + stLocation.GetInputName() + "']").val(), function (data) {
response($.map(data, function (item) {
return {
label: item['label'],
value: item['value']
};
}));
});
},
select: function (event, ui) {},
minLength: 3,
delay: 300
});
...
When we try to use the same js for our List Applet, the list applet does not load. The list column is named the same. Am I missing something?