简体   繁体   English

如何在sapui5中从xmlview转换为jsview

[英]How to convert from xmlview to jsview in sapui5

I am currently working on Proof of concept on fiori application, i currently have a fiori application as a reference which has a xml view representation, I am pretty much sure of writing the logic in js view. 我目前正在研究fiori应用程序的概念证明,目前有一个fiori应用程序作为参考,该参考具有xml视图表示形式,我非常确定可以在js视图中编写逻辑。 Is there a way to convert a xml view to javascript view in sapui5. 有没有一种方法可以将sapui5中的xml视图转换为javascript视图。 Please advice. 请指教。

regards, Nagarjun 问候,Nagarjun

You're going to struggle as you're moving from a declarative to an imperative definition type. 从声明式变为命令式定义类型时,您将遇到困难。 It's not impossible but I don't know of any automated way. 这不是不可能,但我不知道任何自动化的方式。

But also, as @qualiture said, why would you want to do this anyway? 而且,正如@qualiture所说,您为什么仍要这样做? Assuming you expect your Fiori application to be supported by folks other than yourself, defining the views in anything other than XML is asking for trouble, as most Fiori developers conversant with UI5 would expect to find the views in XML. 假设您希望自己的Fiori应用程序得到其他人的支持,那么用XML以外的任何方式定义视图都会带来麻烦,因为大多数精通UI5的Fiori开发人员都希望以XML查找视图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM