Page 1 of 1

Any way to get the server routine name where I am?

Posted: Tue Jul 22, 2025 3:01 am
by Dino
Hi

I want to find a way to capture in which server routine I am.

I can capture the server module name using *component or #com_owner.name, but how to get the name of the server routine?

Thank you

Re: Any way to get the server routine name where I am?

Posted: Wed Jul 30, 2025 4:58 pm
by René Houba
Hi Dino,

I did some testing but cannot find something for this indeed.

What do you want to do with it. Use it for some internal logging or so?

Kind regards,
René

Re: Any way to get the server routine name where I am?

Posted: Wed Jul 30, 2025 8:35 pm
by Catt
I can't seem to find a way, either. Perhaps there can be an enhancement request made to have it stored like the component is.

Re: Any way to get the server routine name where I am?

Posted: Fri Aug 01, 2025 11:08 pm
by Dino
Yes, I have several server routines that perform additional security screening and will be great to be able to identify who is the caller. Without a variable for these is just double typing.

If we are talking enhancements for server routines.... cross reference will be great.... right now only way is to search for

server module.Server routine

In all source code in the repository. It will be great to be in a server routine and be able to see who is using it. Right now alternative... adding comments and trying to keep them up to date.

Be able to have some kind of ancestor for server routines will be also great

Just wishful thinking.