+ Start a Discussion
adsfasdfasdfasdadsfasdfasdfasd 

How can I tell the name of the TAB from which my custom button is clicked?

I have a custom button on a standard layout. This button does stuff, and it does that stuff correctly. To help with navigation while doing stuff, I would like to know the name of the TAB the user was on when he clicked the button.

 

You may have guessed, the same button is going on lots of pages. I would rather not hard-code the name of the page on the URL.

 

Is there a way to auto-magically figure out the name of the TAB? I keep stressing TAB because I already know the name of the OBJECT -- and since the tab and the object may have different names, I want the user to feel comfortable that the button is sending him to the right place.

 

TIA,

 

John