Is there a way to stop Users from loading the Quick Search for a particular business object (say “Companies”) and instead open the “Pick a Search” screen?
It is possible to disable the Quick Search. As an example, the Quick Search under the Company BO can be disabled by detaching the original system event from the Quick Search menu item on-the-fly in the global client script function OnMenuExpanded function and attach custom Client Script instead as follows:
Sub OnMenuExpanded(index, connectionTitle)
...
Dim Custom_Client_Name
Custom_Client_Name = “My Client Script name for Company Quick Search”
...
Select Case connectionTitle
...
Case "Company"
UIMaster.RUIMenu.AttachEventHookScriptToMenuItem Custom_Client_Name, "onclick", UIMaster.RUIMenu.Connections(CInt(index)).connectionId, cmdMenuQuickSearch
...
End Select
...
End Sub
Clicking onto the Quick Search item under the Company BO will now call the Client Script with the name specified in the Custom_Client_Name variable instead of the standard Quick Search functionality.
Also note that the Company Business Object as the connection title is hard coded in the above example. This can be substituted with the Language Dictionary functions and there are examples for that in the Out-of-the-Box CMS.
mardi 13 mars 2007
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire