Opening program in new Atrium tab

Use this board to ask questions or have discussions with other Atrium users.
Post Reply
JamesMayor
New User
Posts: 13
Joined: Wed Oct 07, 2009 12:12 pm
First Name: James
Last Name: Mayor
Company Name: Gazelle Book Services Ltd
Phone: 01524 528521
Address 1: White Cross Mills
Address 2: Hightown
City: Lancaster
State / Province: Outside Canada/USA
Zip / Postal Code: LA1 4XS
Country: United Kingdom
Contact:

Opening program in new Atrium tab

Post by JamesMayor »

I have a RPGSP program called from the Atrium menu system. From a link within this program another RPGSP program is executed to display a subfile page. Is it possible to have this 2nd program open in a new tab within Atrium rather than a new tab within the browser and if so how is this achieved.
User avatar
Rob
Profound Logic Staff Member
Posts: 135
Joined: Fri Jan 04, 2008 12:12 pm
First Name: Rob
Last Name: Ferguson
Company Name: Profound Logic Software
Contact:

Re: Opening program in new Atrium tab

Post by Rob »

yes, there is an Atrium User Guide which can be viewed from your welcome page. This describes how to use various APIs including Atrium.launchURL()

This API can be called form within a smart page:

Code: Select all

<input type="button" onlclick="Atrium.launchURL('/rpgsp/mypage.pgm','MyPage',true)" >

You will need to include this line in the head section of your smart page. The src of the file assumes you are running your smart pages in the same web instance as Atrium (using the same port number as Atrium). If this is not the case we may need to help you set this up.

Code: Select all

<script type="text/javascript" src="/profoundui/proddata/js/atrium_api.js"></script>
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests