Hi,
I have a PUI program running in an Atrium Tab. I want to click a button in that program to open & new PUI program in a new tab & change to that tab.
So, in the program I put a button with onclick event code
1. You've run into a bug with 3.0.0 when using the Atrium.launchItem() API in conjunction with the Accordion-style menu. This will be fixed for the next update.
In the meanwhile, I've attached a patch that you can apply to fix this problem. To apply the patch, copy the file into your /www/profoundui/htdocs/profoundui/proddata/js folder, overwriting the original file.
This will allow the item to launch properly.
2. In your code, there is a slight problem. There is no Atrium.activate() API. Try Atrium.activateTab() instead.
If the PUI program #117 hasn't been opened since atrium login, then the button in the first program doesn't load it & change to it's tab - nothing happens.
However, if PUI program 117 has been open since login, then , even if it is since closed, the button in the first program will load it & change to it's tab (as expected). If PUI program 117 is still open, it will change to the correct tab (as expected).
It seems that if the menu item is not visible (it doesn't really matter if it's actually been used or not), then the Atrium.launchItem() API is not able to call it.