Dear all,

I have the following code for opening a URL.

api_application.run(in_weblink_tx => 'http://www.google.com', in_browserwindowname_tx => '_top');

It is opening the webpage in the same application tab from where I am invoking this command. What is required is to open this web page as a new tab page in the browser.

Kindly help.

Regards,

George

asked 29 Dec '13, 02:37

grajan777's gravatar image

grajan777
1011240
accept rate: 10%


Hi George,

To open a web page as a new browser tab, you should set the value of the in_browserwindowname_tx to '_blank'.

api_application.run(in_weblink_tx => 'http://www.google.com', in_browserwindowname_tx => '_blank');

Regards,
Ibrahim

link

answered 29 Dec '13, 04:23

Ibrahim%20Sandalli's gravatar image

Ibrahim Sand... ♦♦
1.5k5
accept rate: 25%

Hi Ibrahim,

Thank you. This opens the browser in a new window. What is desirable is to open in a new tab page in the same browser where the formspider application is sitting.

Also kindly suggest me as to how I can give a title to the newly opened tabpage/window.

I require this basically for opening jasper server reports. Opening many browsers for different report is not practical; tabpage is the best option.

If I can get my jasper report running using this method I do not have to depend on the formspider jasper reports which has limitations of versions, output etc.

I am using chrome browser.

Thank you.

George

(29 Dec '13, 07:01) grajan777

Hi George,

I've tested in the Firefox and Opera: a new window is opening in a new tab (not in a new window).

link

answered 19 Feb '14, 09:24

Andrew%20Pouckatch's gravatar image

Andrew Pouck...
1611
accept rate: 0%

Hi Andrew,

I have tested it today with firefox and chrome. In firefox it opens in a new tab in the same browser but in chrome it opens a separate browser window and runs the application there.

George

link

answered 22 Feb '14, 09:50

grajan777's gravatar image

grajan777
1011240
accept rate: 10%

Hi George,

Please make sure that the "Allow Popups" checkBox is checked for the Formspider action in which you are making the api_application.run API call. You can find this checkBox on the action edit dialog.

Best,
Ibrahim

(22 Feb '14, 10:16) Ibrahim Sand... ♦♦

Thanks Ibrahim. This worked fine.

George

(22 Feb '14, 22:42) grajan777
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×10
×6

Asked: 29 Dec '13, 02:37

Seen: 13,418 times

Last updated: 22 Feb '14, 22:42


© Copyright Gerger 2017