on 05-30-2006 2:16 PM
Hi,
I have a RFC that resturn me a XML formatted string like
<?xml version="1.0" encoding="utf-8"?>#<MT_TEST>#<Recordset>##<Row>###<DT_TEST>aaa</DT_TEST>##</Row>#</Recordset>#</MT_TEST>#
I need to open a browser(or view) from WD for Java application.Can anybody suggest how to do it?
regards,
Bhupesh
bhupesh,
Try my solution described here:
/people/valery.silaev/blog/2005/11/23/display-formatted-text-using-webdynpro-for-java
final String xml = <yorXmlStringFromRfc>;
final IWDCachedWebResource resource = WDWebResource.getWebResource
(
xml.getBytes("UTF-8"),
WDWebResourceType.XML
);
resource.setResourceName("XML_inline.xml");
resource.setAttachement( false );
resource.setReadOnce( false );
wdComponentAPI.getWindowManager.createExternalWindow
(
resource.getAbsoluteURL(), "XML Window Title", false
).open();
VS
Message was edited by: Valery Silaev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanx Valery.
I have a problem using this mathod.
If my string is like "<?xml version="1.0" encoding="utf-8"?>#<MT_TEST>#<Recordset>##<Row>###<DT_TEST>aaa</DT_TEST>##</Row>#</Recordset>#</MT_TEST>#",I cannot assign it to a java string variable.It shows a compilation problem.
Any suggestions?
thanx,
Bhupesh
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.