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.

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 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

Example

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.ClearToQuery();
oEmpBusComp.SetSearchSpec("Login Name", sLoginName);
oEmpBusComp.ExecuteQuery(ForwardBackward);

oEmpBusComp = null;
oEmpBusObj = null;

Related Topic

RefineQuery Method

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