Skip to Content
0
Dec 29, 2020 at 03:21 AM

How to refresh SELECT LIST data in UI5

58 Views

When I select Organization Name in filter 1, I want to refresh the select list in filter 2.

However it not happen trigger refresh by my code.

How can I let it come ture?

var selectId = oEvent.getParameters().id;
if ( selectId.indexOf("OrganizationName") != -1) {
var that = this;
	$.ajax({
	type : 'GET',
	url : query_url,
	contentType:'application/json;charset=utf-8',
	success : function(result) {
	var all = "";
	that.getView().byId("slServiceId").getModel().getData().microserviceId = result.microserviceId;
	that.getView().byId("slServiceId").setSelectedKey(all);
	that.getView().byId("slServiceId").refreshItems();
	that.getView().byId("slObjectType").getModel().getData().objectType = result.objectType;
	that.getView().byId("slObjectType").setSelectedKey(all);
	that.getView().byId("slObjectType").refreshItems();
		},
		});