Page 1 of 1

Adding items to toolbar?

Posted: Fri Jan 04, 2019 10:41 am
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.

Re: Adding items to toolbar?

Posted: Fri Jan 04, 2019 2:03 pm
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

Re: Adding items to toolbar?

Posted: Mon Jan 07, 2019 5:51 am
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.

Re: Adding items to toolbar?

Posted: Mon Jan 07, 2019 10:53 am
by Scott Klement
There was an example posted to our blog, here:
http://blog.profoundlogic.com/handling- ... m-i-as400/

Does that help?

Re: Adding items to toolbar?

Posted: Mon Jan 07, 2019 12:53 pm
by PaulDV
Excellent! Thank you Scott, that should give us enough to go on.

Cheers,
Paul.