Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Close a window browser

Former Member
0 Likes
628

Dear All,

In my project, We have a webydnpro application and as per the requirement, when we click on a button, it should open a EPM excel page. we are passing data from the code. when this page gets opened, a blank window browser also gets opened. i need to close this extra blank window browser.

We have a class which is being called to populate the attributes for the EPM. the code is written like below:

concatenate   'reportLauncher.OpenReport("EXCEL", "en","'

                                                                      lv_reportname '", "",".....)

here only, we can pass the command to close the window (this was suggested by concerned person). Please help me in writing the "close window" command.

Thanks in advance.

Sitesh

1 ACCEPTED SOLUTION
Read only

Ryan-Crosby
Active Contributor
0 Likes
575

Hi Sitesh,

If it is a pop-up target you can try using:


window.close();

That is a JavaScript command to tell the browser to close the window.

Regards,

Ryan Crosby

2 REPLIES 2
Read only

Ryan-Crosby
Active Contributor
0 Likes
576

Hi Sitesh,

If it is a pop-up target you can try using:


window.close();

That is a JavaScript command to tell the browser to close the window.

Regards,

Ryan Crosby

Read only

0 Likes
575

HI ryan,

Thank you for the reply. yes, it worked with the command window.close()

I concatenated 'window.close()' and it worked.

Regards,

Sitesh