Enumerate apps using groovy?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Enumerate apps using groovy?

Mr.Zombie
I'm trying to build a "splash page" app that would guide my users through the OFBiz functions they will need. Anyway, what I want right now is to use a groovy script to fetch the names of the other apps. Any pointers would be greatly appreciated.

Thank you!

Olivier
Reply | Threaded
Open this post in threaded view
|

Re: Enumerate apps using groovy?

Adrian Crum
Look in the appbar.ftl files - they get the app names for the main
navigation.

-Adrian

Olivier Tremblay wrote:
> I'm trying to build a "splash page" app that would guide my users through the OFBiz functions they will need. Anyway, what I want right now is to use a groovy script to fetch the names of the other apps. Any pointers would be greatly appreciated.
>
> Thank you!
>
> Olivier
Reply | Threaded
Open this post in threaded view
|

Re: Enumerate apps using groovy?

Mr.Zombie
You can use the following call directly with no import?

Static["org.ofbiz.base.component.ComponentConfig"].getAppBarWebInfos(ofbizServerName, "main")

This seems to enumerate all the apps when used in the appbar.ftl file, but I can't get it working. Which imports would I need?

-Olivier

Le 2010-02-08 à 13:08, Adrian Crum a écrit :

> Look in the appbar.ftl files - they get the app names for the main navigation.
>
> -Adrian
>
> Olivier Tremblay wrote:
>> I'm trying to build a "splash page" app that would guide my users through the OFBiz functions they will need. Anyway, what I want right now is to use a groovy script to fetch the names of the other apps. Any pointers would be greatly appreciated. Thank you!
>> Olivier