且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在sapui5中将数据从一个XML View Controller获取到另一个View Controller时出现问题

更新时间:2023-02-01 16:36:55

在组件中实例化一个全局JSONModel并将视图计数存储在该组件中.可以通过调用组件的 onInit 方法中的 setModel 使该模型在全球范围内可用.

Instantiate a global JSONModel in your component and store the view count there. The model can be made globally available by calling setModel in the component's onInit method.