Hi Samah--
I'm glad it worked for you. However, I just realized I did make one
mistake there: in the last line, the hidesuppressed option should be set
back to the value we stored previously in the variable "hidden", instead
of just setting it to "on". So the last line should look like this:
doc.setOption("hidesuppressed", hidden);
That way, if a user has turned that option off via the Preferences
panel, you won't end up turning it back on for them without their
knowing it. It simply will simply restore the setting to its previous
state.
--Clay
Clay Helberg
Senior Consultant
TerraXML