Skip to Content
-1
May 04, 2020 at 06:53 AM

JSON model is not rendering on XML view

44 Views

Hello all,

I have 2 JSON models and I want to bind those models to an XMl view based on condition. I am using below code for binding

that.getView().setModel(oModel2);

that.byId("TableId").getBinding("rows").refresh();

that.byId("TableId").getBinding("rows").filter(aFilters, "Application");

var count = that.byId("TableId").getBinding().getLength();

that.byId("TableId").setVisibleRowCount(count);

but it is showing data on view for 1 sec and than view is blank. Please help me to solve this error.

Thanks in advance.