Page 1 of 1

Launching PUI program in a tab from Atrium home page

Posted: Thu Aug 04, 2011 10:35 pm
by amc
In Atrium we are using a HTML home page (based on atrium_home.html)

In that home page I would like to have a couple of hyperlinks to the most often used menu items (PUI programs).

I included a hyperlink in the home page like so

Code: Select all

<a href="#" onclick="Atrium.launchItem(117)">Add / Edit Contacts</a>
but it appears that Atrium.launchItem isn't available to be called from there.

I found that if I included

Code: Select all

<script type="text/javascript" src="/profoundui/proddata/js/runtime.js"></script>
in my home page, then the launch works as expected.

Can you see any problem including runtime.js in the home page? Alternatively, is there another way to achieve the same result ?

Thanks & regards
Tony C

Re: Launching PUI program in a tab from Atrium home page

Posted: Fri Aug 05, 2011 12:03 pm
by David
There's not really a problem including the file, but it is very large and linking it into your page is unnecessary.

Instead, link this file in:

Code: Select all


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

This file contains just the Atrium scripting APIs, and is the one that is intended for linking into pages that run in Atrium.