Page 1 of 1
Opening program in new Atrium tab
Posted: Mon Aug 02, 2010 7:26 am
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.
Re: Opening program in new Atrium tab
Posted: Thu Aug 05, 2010 10:25 am
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>