Need help :- ng- repeat not working
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 02:49 AM
HTML Code:- <div class="row" ng-if="data.function_name.length > 0">
<div class="col-4">
<label>${Filter by}</label>
<select>
<option ng-repeat="arr in data.function_name">{{arr}}</option>
</select>
</div>
</div>
Server Script:-
var table_data = {
"table": "sc_cat_item",
"filter": queryy,
"fields": "short_description",
"maximum_entries": "5",
"sp_page": "sc_cat_item"
};
var gr = new GlideRecord(table_data.table);
gr.addEncodedQuery(queryy);
gr.query();
while (gr.next()) {
arr.push(gr.getDisplayValue("u_function"));
}
data.function_name = arr;
OUTPUT:-
Options is not showing
0 REPLIES 0