For SAP standard CRM Fiori application, we use xml view by default.
For some UI element, you could easily find its binding path in the corresponding xml view, for example we need to find out which json model field is the highlighted UI element below bound to:
It could simply be achieved by clicking “inspect” button in Chrome development tool, and click the UI element to find out the id generated in html native source code. Write down the part of it: opportunityProspectName.
Then search this in xml view, then binding path is found:
However, for this field below, the approach mentioned above does not work any more:
in xml view you could not find any hint by searching keyword “attribute5”. Instead, you could type four keys at the same time “ctrl+alt+shift+s” to call SAPUI5 Diagnostics tool, then expand tab “Control Tree”, search “attribute5” there, then you could find the binding path: /EmployeeResponsibleName
You can confirm the correctness of this by verifying it in Chrome network tab: the value in the field you find in JSON model does exactly match the value displayed in UI.
And why the binding path of this field could not be found in xml view? It is simply because this UI element is not statically defined in xml view, but dynamically created via JavaScript. You could find its creation location by searching the keyword “/EmployeeResponsibleName“.
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
相关推荐
SAPUI5-数据绑定为学习目的而创建的SAPUI5应用程序,尤其是为了扩展数据绑定知识。
xml数据绑定例子,java,需要用到castor-0.9.5.2.jar和xercesImpl.jar
WPF Binding绑定 对象和view的绑定 界面修改直接改变对象的修改 Command命令 事件的绑定 基础学习源码
在模块中启用视图绑定后,它将为该模块中存在的每个XML布局文件生成一个绑定类。绑定类的实例包含对在相应布局中具有ID的所有视图的直接引用。 正文 Android Studio 3.6 Canary 11 及更高版本中推出了ViewBinding...
视图绑定ViewBinding使用指南(Java版)修改build.gradle修改java代码注意事项工程代码 Android Studio 3.6 Canary 11 及更高版本中推出了ViewBinding功能,ViewBinding将逐步替换掉findViewById,还等什么,抓紧...
Android数据绑定的一个Demo程序,包括数据绑定和事件绑定
参考翻译:https://developer.android.google.cn/topic/libraries/view-binding View Binding是一项功能,使您可以更轻松地编写与视图交互... 需要在模块中启用视图绑定,请将viewBinding元素添加build.gradle文件中,如
以下是Android Architecture Components的优势: ...Android Architecture Components中的Data Binding库可以帮助开发者将数据绑定到UI控件上,以减少手动设置UI控件的代码量,提高开发效率。 5. 易于学习和使用
开源的XML解析器基于之前C版本的XML_Parser改造得到C++Binding。
基于ViewBinding,反射简单封装 Activity(ViewBinding,反射进行封装), Fragment(ViewBinding,反射进行封装), RecyclerView(多布局复用单个ViewHolder节省代码逻辑更清晰)
MVVM+ViewBinding+Kotlin入门篇,适用于未使用过MVVM,ViewBinding,Kotlin的开发者做为入门练习,了解大致思想
ViewModel:它是View的抽象,负责View与Model之间信息转换,将View的Command传送到Model; Model:数据层 View与ViewModule连接可以通过下面的方式 Binding Data:实现数据的传递 Command:实现操作的调用 ...
THE Java™Architecture for XML Binding (JAXB) provides a fast and convenient way to bind between XML schemas and Java representations, making it easy for Java developers to incorporate XML data and ...
附件为个人编写的自定义android开发MVP+ViewBinding架构Demo,已经在多个项目中使用,相对比较成熟了。使用当前主流的MVP+Viewbing架构模式,喜欢的小伙伴请给个好评,谢谢!
Binding.zip 数据绑定案例
绑定(Binding)元素介绍 首先,盗用张图。这图形象的说明了Binding的机理。 此处主要介绍的绑定类是System.Windows.Data.Binding,如果涉及其他内容,将简要介绍,不会过多说明。 下面将简要介绍最基础(最常用)...
Binding 绑定示例
主要介绍了Android Studio 3.6中新的视图绑定工具ViewBinding 用法,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下
NULL 博文链接:https://rayoo.iteye.com/blog/1233534