How to Know the Application Name of currently opened form?

Community Alums
Not applicable

Hi,

I have two applications ,in that application i have two modules with same name and corresponding to same table.

here when i click the module i want to know from which application menu i have clicked.

i have hrcase and itdesk applications,

in that i have two modules with same name as newcall.

if i click newcall from itdesk application ,i wnat to get the application name.

can any one help me on this , i got strucked here from past couple of hours.

Thanks,

Rajendra Prasad Darshanam

1 ACCEPTED SOLUTION

Kalaiarasan Pus
Giga Sage

Try this in a on load script. This script will give the sys id of the module being used.



var gURL = new GlideURL();


gURL.setFromCurrent();


var moduleSYSID = gURL.getParam("sysparm_userpref_module");


alert(moduleSYSID);



Now you can differentiate the application using the module being accessed.


View solution in original post

6 REPLIES 6

Do you have any docs for this class GlideURL and its methods?


Nope