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

ClearToQuery Method

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




Not applicable



Not applicable


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

Search and sort specifications sent to the business component are cumulative; the business component retains and logically performs an AND operation on 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

COM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script


The following example is in Siebel eScript. For Siebel VB examples, read Applet_PreInvokeMethod Event, ActivateField Method, and ExecuteQuery Method. For another eScript example, read GotoView Method.

var oEmpBusObj = TheApplication().ActiveBusObject();
var oEmpBusComp = oEmpBusObj ().GetBusComp("Employee");
var sLoginName;

oEmpBusComp.SetSearchSpec("Login Name", sLoginName);

oEmpBusComp = null;
oEmpBusObj = null;

Related Topic

RefineQuery Method

Siebel Object Interfaces Reference Copyright © 2008, Oracle. All rights reserved.