You need to sign in to do that
Don't have an account?
Jimmmy
Find current tab?
I have an S-Control that is on a couple pages. How can I find out which tab the user is on? I am trying to stay away from hard coding anything. Thanks.
Rex
I think you can use meta data api calls to get all the tabs in the org and then use the id from the url. to determine which tab the scontrol is called from.
Jimmmy
Thats accually what I did... took me a while to figure it out. Use describetabs() to get the list of tabs and check to see wether the parent.location.href matches one of them then I pull the ID out of the parent.location.href. A little regular expression magic to slice out the stuff I don't need. Works like a charm.