on 10-02-2006 8:18 PM
Is there a way to submit a Web Dynpro form to an external url using the POST method?
I am able to use the onExit plug to pass a URL and submit query string parameters to the external url. My concern with this solution though is that the query string has length limits in different browsers (IE 2048 chars, etc.).
Any help/direction would be great.
Hi
You can create a html page as a web resource and write an active script in it so that it submits itself.
I am not sure if it will work. But give it a try.
StringBuffer sb = new StringBuffer();
sb.append("<html>");
sb.append("<head>");
sb.append("<SCRIPT LANGUAGE="JavaScript">");
sb.append("function submitForm(){");
sb.append("document.form.submit();");
sb.append("}");
sb.append("</script>");
sb.append("</head>");
sb.append("<body onload="submitForm()">");
sb.append("<form method=post action="Your_Active_Script" name="form">");
/*
Similarly append body of the form
Which might include hidden parameters
*/
sb.append("</form>");
sb.append("</html>");
IWDCachedWebResource webResource = WDWebResource.getWebResource(sb.toString().getBytes(),WDWebResourceType.HTML);
try {
wdComponentAPI.getWindowManager().createExternalWindow(webResource.getURL(),"Some Title",false).open();
} catch (WDURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Regards
KK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brian,
Unfortunately, this is currently not supported.
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.