mardi 13 mars 2007

How-to: Hide the Global Quick Search control on the eTab

Detail
How can the Global Quick Search control be hidden on the eTab in Pivotal Rich Client?

Resolution
To hide the Global Quick Search control from the eTab in Pivotal Rich Client include the following code in the OnPortalLoaded(ParameterList) function of the Pivotal system in question and make sure that the Client Script is marked as a Global Script.

If the Pivotal system in question doesn’t contain an OnPortalLoaded(ParameterList) function already include the entire function as listed below and make sure that the Client Script is marked as a Global Script.


Sub OnPortalLoaded(ParameterList)

Dim objTDElements
Dim objMenu

set objMenu = UIMaster.documentMenu

Set objTDElements = objMenu.GetElementsByTagName("TABLE")
For Each objTDElement in objTDElements
If objTDElement.className = "FindTableInner" Then
objTDElement.style.visibility = "Hidden"
objTDElement.style.display = "None"
End if
Next
End Sub

There's a restriction here: The global search on the eTab and the "web search" on the iTab are actually the same HTMLElement. Therefore, if you hide one, you hide the other. It's an all-or-nothing sort of thin

1 commentaire:

Unknown a dit…

J'ai pas regardé, mais à priori il suffit de mettre

.FindTableInner {
display: none;
}

dans le css où cette classe est définie.

A tester.