Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Business Component Methods > SetNamedSearch MethodSetNamedSearch sets a named search specification on the business component. A named search specification is identified by the searchName argument. SyntaxBusComp.SetNamedSearch searchName, searchSpec
ReturnsUsageA named search specification is a search criterion that is not cleared by the ClearToQuery; for example, a predefined query or business component search specification. A named search specification can be modified only programmatically; it cannot be modified through the UI. This specification is applied in conjunction with the existing search specification. Once set, the named search specification is applied every time ExecuteQuery is called. ClearToQuery does not clear the named search specification. To clear it, explicitly set the searchSpec argument to "". Note that when a new instance of the BusComp is created, the named search specification is cleared. The searchSpec argument assigned to SetNamedSearch is the same argument that is used after the equal sign in a predefined query. The maximum length of a predefined query is 2000 characters. For details on how to set up the search specification, read SetSearchExpr Method and SetSearchSpec Method. Used WithCOM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script ExamplesThis example shows how to set a named search to a business component depending on the position of the current user. The following example is in Siebel eScript: function BusComp_PreQuery () The following example is in Siebel VB: Function BusComp_PreQuery () As Integer BusComp_PreQuery = ContinueOperation Note that defining searches using the SetNamedSearch method does not create a PDQ entry, this is a search specified in script only. To retrieve this search specification, use GetNamedSearch method. GetProfileAttr is used in personalization to retrieve values of an attribute in a user profile. See Also |
Siebel Object Interfaces Reference |