on 04-20-2019 9:36 AM
I am trying to call Web DynPro application in sapui5 screen in XML view and controller as well. I tried to open web Dynpro in view.xml by putting the Web Dynpro app URL in iframe like below:
<Panel>
<content>
<html:div>
<html:iframe src='my webdyn pro URL'></html:iframe>
</html:div>
</content>
</Panel>
the above code is giving below error:
"Uncaught (in promise) Error: resource sap/com/demo/demoApp/view/View1.view.xml could not be loaded from ./view/View1.view.xml. Check for 'file not found' or parse errors. Reason: Error: Invalid XML: <mvc:View controllerName="sap.com.demo.demoApp.controller.View1" xmlns:mvc="sap.ui.core.mvc" displayBlock="true" xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:l="sap.ui.layout" xmlns:html="http://www.w3.org/1999/xhtml">"
When I tried to open this Web DynPro Application url using window.open("Web Dynpro URL"); then it is working and opening that application in another tab of same browser but i want to open it in dialog box or in popup in same screen on click of button. The odata services which i am using in application is having different system and Web Dynpro application is on different system so is that a problem? but when I tried to give another URL instead of Web DynPro URL like "hhtps://www.goggle.com" or any W3 school URL It is showing blank HTML div on screen. Please suggest.
the error is very clear, your xml is messed up.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you please try like this. I dont have sample webdynpro application but used ES5 HTML5 link like below.
Specifically check the HTML library tag at top most of the line.
xmlns:html="http://www.w3.org/1999/xhtml"
<mvc:View height="100%" controllerName="iframe.iframe.controller.View1" xmlns:mvc="sap.ui.core.mvc" displayBlock="true" xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:html="http://www.w3.org/1999/xhtml" >
<Shell id="shell">
<App>
<Page title="Reached the iframe">
<IconTabBar
expanded="true"
id="idIconTabBar" class="sapUiResponsiveContentPadding">
<items>
<IconTabFilter icon="sap-icon://accept">
<content>
<html:iframe id="map_iframe" src="https://sapes5.sapdevcenter.com/sap/bc/gui/sap/its/webgui" target="_top" height="800px" width="100%"></html:iframe>
</content>
</IconTabFilter>
</items>
</IconTabBar>
</Page>
</App>
</Shell>
</mvc:View>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.