How to get the the app's name in runtime?

How to get the the app's name in runtime?

  

Hi everyone,

In runtime, how can I know the name of the app (not module) that:

1) the running function/ action belongs to? E.g. how can I make a "GetAppName()" function that lives inside the app "ToDo_Core" that returns a string with the app name?

2) is the top-most app being executed? E.g. a user launching the "ToDo" app that internally calls a "ToDo_Core" app that has a "ToDo_Core/GetAppName()" function that should return the string "ToDo" (the name of the app that was originally run by the user). Something similar to "GetEntryEspaceName()".

Does GetEntryEspaceName() is not solving you purpose ?



Regards

-PJ-

Hi Pramod, the GetEntryEspaceName() gives me the module (eSpace) name. I want the name of the app that the module belongs to.

Here you go,

Try this it should give you the correct output.

SyntaxEditor Code Snippet

GetApplicationName(GetOwnerEspaceIdentifier())


Regards

-PJ-

GetApplicationName... I don't find that function. Is it a System function?

How can I know the application from the eSpaceId? Only by querying the meta model tables? Isn't there a more efficient way?

Hi Kelson,

Querying the meta model is indeed the only way to get the current Application name, afaik.

This you can find in Rich widget

GetApplicationName(GetOwnerEspaceIdentifier())

Regards

-PJ-