on 07-18-2007 11:07 AM
Hi All,
I am working with a webdynpro application where i have an xml file. when ever i run the webdynpro application it has to display that xml file in the browser instead of view. It would be appreciable if anyone give me some idea on how to start this application
Thanks in advance
Regards
ravi
Hi Fahad Hamsa,
Thanks for your reply. But now i could able to display that xml file in our view. But my intention is to display direct xml file not in our view. Is there any way to do that?
Regards
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Ravi,
Use
String url=WDURLGenerator.getWebResourceURL(wdComponentAPI.getComponent().getDeployableObjectPart(),"Config1.xml"));
wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"XML").show();
But here also, it will open webDynpro view. But,opens XML in seperate explorer
Regards,
Fahad Hamsa
HI Ravi,
Insert a portalIFRame or IFrame with width 100%.
Create a context variable (Say xmlFile) of type String and bind to Source property of PoratlIFrame .
Put the xmlfile inside Project\src\mimes\Components\Package\
Let the xml file name be Config1.xml.
Write the following code inside wdDoinit()
wdContext.currentContextElement().setPortalFrame(WDURLGenerator.getWebResourceURL(wdComponentAPI.getComponent().getDeployableObjectPart(),"Config1.xml"));
Regards
Fahad Hamsa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.