modulesNames on runtime

Hi all.

Is there any way of knowing in runtime wich modules the application has ?

Best regards. Roberto Blasco.

not that I know of…
why would you need that?

Not really but if in every module you create a global var like

globals.moduleXYZinstalled = true

In your main solution you can check if that module is included with:

if(globals.moduleXYZinstalled != undefined && globals.moduleXYZinstalled)

This way you can also temporarily disable a module by setting the var to false.
Obviously you need to know all the possible modules names in advance…

Thanks all

Hi, mboegem. I need this feature to build up a dashboard depending on the modules installed. Solution from ngervasi is a good idea :D. I’m gonna use it.

Best regards. Roberto Blasco