Adding items to toolbar?

Use this board to ask questions or have discussions with other Atrium users.
Post Reply
PaulDV
New User
Posts: 12
Joined: Fri Jun 08, 2012 12:18 pm
First Name: Paul
Last Name: de Valmency
Company Name: Covéa Insurance Ltd
State / Province: Outside Canada/USA
Country: United Kingdom
Contact:

Adding items to toolbar?

Post by PaulDV »

I've seen a screenshot in one of the case studies that shows the System name in the toolbar, next to the UserID.

This is a really useful feature, and I'd like to implement it, but I can't seem to find any options within the Control Panel to set it, nor can I find any documentation on how to do it.

Could someone point me in the right direction here, please?

Many thanks,
Paul.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Adding items to toolbar?

Post by Scott Klement »

You can place .js files in /www/YOUR-INSTANCE/htdocs/profoundui/userdata/extension/atrium

Any file placed in there that ends in .js will be automatically loaded when the main atrium web page is loaded. You can use that to code JavaScript, for example in the Atrium.onload event, that inserts elements onto the screen, etc.

Atrium.onload docs are here:
http://www.profoundlogic.com/docs/pages ... d=27590756
PaulDV
New User
Posts: 12
Joined: Fri Jun 08, 2012 12:18 pm
First Name: Paul
Last Name: de Valmency
Company Name: Covéa Insurance Ltd
State / Province: Outside Canada/USA
Country: United Kingdom
Contact:

Re: Adding items to toolbar?

Post by PaulDV »

Thanks for the response Scott.

Unfortunately, no-one here on our RPG dev team knows javascript, so although it sounds like an easy thing to do, we're pretty much casting around in the dark here and don't know what we need to do to "insert elements on the screen".

If someone could post a snippet or two of code that we could inspect and maybe get an idea of how to do this, that would be very much appreciated.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Adding items to toolbar?

Post by Scott Klement »

There was an example posted to our blog, here:
http://blog.profoundlogic.com/handling- ... m-i-as400/

Does that help?
PaulDV
New User
Posts: 12
Joined: Fri Jun 08, 2012 12:18 pm
First Name: Paul
Last Name: de Valmency
Company Name: Covéa Insurance Ltd
State / Province: Outside Canada/USA
Country: United Kingdom
Contact:

Re: Adding items to toolbar?

Post by PaulDV »

Excellent! Thank you Scott, that should give us enough to go on.

Cheers,
Paul.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests