cancel
Showing results for 
Search instead for 
Did you mean: 

How to display an XMl file in a webydynpro Application.

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

go through dis