Show / Hide Table of Contents

ClearRoot

Object and Type

Object  : FCGeneric

Type     : Method

Prototype

Public Sub ClearRoot()

Description

This method will clear the information set up (using the TraverseFromRoot method) for a generic object for a root traversal. It does not clear the DBObjectName, so the object is still set up to query the table set up in the root traversal. The generic object will now perform a SimpleQuery type query.

Note: No other properties (sort order, filters, data fields) are cleared by this method.

It is not recommended that you use this method after you have queried the generic object, as unexpected results with Move and Count may occur.

Example

The following example clears the root object information for a generic object after it was set up in error.

JavaScript:

  // Create the queue object
  var boQueue = FCSession.CreateGeneric();
  // Traverse from the current user's objid
  boQueue.TraverseFromRoot(FCSession.Item("user.id"), "user",
                           "user_assigned2queue");

  // Oops. It was a mistake - clear the root traversal 
  boQueue.ClearRoot();

Visual Basic:

  Dim boQueue As FCGeneric

  Set boQueue = fc_session.CreateGeneric
  boQueue.TraverseFromRoot fc_session.item("user.id"), _
                           "user", "user_assigned2queue"
  boQueue.ClearRoot
Back to top © 2022 Dovetail Software, Inc. - All rights reserved.
Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
.NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.