on 10-15-2014 6:05 AM
Hi
We have migrated a WDJ dc from 7.0 to 7.3, before migration there was a code to close window using html file as given below. This code is not working on 7.3 now as this might be removed from API & no javadocs are available for the same.
Please provide some suitable way to redirect to URL(created for close.html), as I want to close window using the same html file. Also I'm not able to create fireplugs, so exitplug method wont work.
String Url = WDURLGenerator.getWebResourceUrl(wdComponentAPI.getComponent().getDeployableObjectPart(),"close.html");
TaskBinder.getCurrentTask().getClient().sendRedirect(Url, 0);
Thanks
Akanksha
hi akansha ,
As ervin already suggested , you can
create an Exit Plug with suitable name having a boolean parameter called closeWindow .
and it is case sensitive.
wdThis.wdGet*******WindowController().wdFirePlugPlugName(true);
if you can create an exit plug in the window that you wanted close.
can u please explain the issue u r facing in create exitplugs , as u have suggested that u r not able to create any exitplugs ?
In case u still want to redirect then you can use this
WDClientUser.forceLogoffClientUser(url);
Regards
Govardan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
for 7.1+, there is standard api support for closing window, no need to use that workaround for nw7
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Akanksha,
This should initiate a redirect:
IWDResponse responseObject = WDProtocolAdapter.getProtocolAdapter().getResponseObject();
HttpServletResponse response = (HttpServletResponse)responseObject.getProtocolResponse();
response.setHeader("Location", yourURL);
response.setStatus(302);
Hope this helps.
Regards,
Tobias.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
try this:
Here I described a procedure at
Ervin Szolke Jun 26, 2013 3:00 PM (in response to Vallabhaneni Suresh Kumar)
I hope this helps.
Best Regards,
Ervin
User | Count |
---|---|
85 | |
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.