Siebel Object Interfaces Reference > Interfaces Reference > Business Component Methods >

ClearToQuery


The ClearToQuery method clears the current query but does not clear sort specifications on the BusComp.

Syntax

BusComp.ClearToQuery

Argument
Description
Not applicable
 

Returns

Not applicable

Usage

Any fields to be queried must be activated before ClearToQuery. For more information, read ActivateField.

Search and sort specifications sent to the business component are cumulative; the business component retains and logically ANDs query qualifications since the last ClearToQuery, except for new search specifications on a field for which a search specification has previously been set. In that circumstance, the new specification replaces the old.

Used With

Server Script, Mobile/Dedicated Web Client Automation Server, COM Data Control, COM Data Server, Java Data Bean, CORBA Object Manager

Example

Here is a Siebel eScript example. For Siebel VB examples, read Applet_PreInvokeMethod, ActivateField, and ExecuteQuery. For another eScript example, read GotoView.

var oEmpBusComp TheApplication().ActiveBusObject();
var oEmpBusObj = TheApplication().ActiveBusComp();
var sLoginName;

oEmpBusComp.ActivateField("Login Name");
oEmpBusComp.ClearToQuery();
oEmpBusComp.SetSearchSpec("Login Name", sLoginName);
oEmpBusComp.ExecuteQuery();

oEmpBusComp = null;
oEmpBusObj = null;

See Also

RefineQuery


 Siebel Object Interfaces Reference 
 Published: 18 June 2003