Using the TabWorskpace you can iterate through all the tabs on a page and do something with them, like show or hide them. To do this you need the following code:
private Sage.Platform.Application.UI.UIWorkItem _parentWorkItem; [Sage.Platform.Application.ServiceDependency(Type = typeof(Sage.Platform.Application.WorkItem))] public Sage.Platform.Application.UI.UIWorkItem ParentWorkItem { get { return this._parentWorkItem; } set { this._parentWorkItem = value; } } protected void QuickFormLoad0() { Sage.Platform.WebPortal.Workspaces.Tab.TabWorkspace tabContentWorkspace = null; try { string id = string.Empty; tabContentWorkspace = this._parentWorkItem.Workspaces["TabControl"] as Sage.Platform.WebPortal.Workspaces.Tab.TabWorkspace; Sage.Platform.Application.IEntityContextService entityContext = this._parentWorkItem.Services.Get<Sage.Platform.Application.IEntityContextService>(); if (entityContext.HasEntityContext) { id = entityContext.EntityID.ToString(); } Sage.Entity.Interfaces.IAccount buyer = Sage.Platform.EntityFactory.GetById<Sage.Entity.Interfaces.IAccount>(id); if (tabContentWorkspace != null && buyer != null) { foreach (Sage.Platform.WebPortal.Workspaces.Tab.TabInfo sp in tabContentWorkspace.Tabs) { tabContentWorkspace.Hide(sp.ID, true); } } } catch { } }