Launching PUI program in a tab from Atrium home page

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
amc
Profound User
Posts: 67
Joined: Thu Jul 29, 2010 1:25 am
First Name: Tony
Last Name: Cusack
Company Name: Welding Industries
City: Adelaide
State / Province: Outside Canada/USA
Zip / Postal Code: 5139
Country: Australia
Location: Adelaide, South Australia
Contact:

Launching PUI program in a tab from Atrium home page

Post 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
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

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

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 10 guests