fcSDK Documentation
Item Property (ClarifyGeneric)
Example 

The zero-based index of the ClarifyDataRow to get
Gets the ClarifyDataRow at the specified index in this ClarifyGeneric
Syntax
'Declaration
 
Public ReadOnly Default Property Item( _
   ByVal index As Integer _
) As ClarifyDataRow
public ClarifyDataRow this[ 
   int index
]; {get;}

Parameters

index
The zero-based index of the ClarifyDataRow to get

Property Value

The ClarifyDataRow at the specified index in the collection
Remarks

This property provides the ability to access a specific ClarifyDataRow in the collection by using the following syntax: gCase[0] (gCase(0) in Visual Basic).

To iterate over the collection of rows in a generic, use the more efficient foreach() syntax (For Each in Visual Basic). Please see the example for more details.


This property provides the ability to access a specific ClarifyDataRow in the collection by using the following syntax: gCase[0] (gCase(0) in Visual Basic).

To iterate over the collection of rows in a generic, use the more efficient foreach() syntax (For Each in Visual Basic). Please see the example for more details.

Example
This example demonstrates how to query a generic and iterate over the rows returned from the query.
// Create the DataSet
ClarifyDataSet dataSet = new ClarifyDataSet(session);

// Traverse from the user's objid
ClarifyGeneric gQueue = dataSet.CreateGeneric(
    (int)session["user.id"], "user", "user_assigned2queue" );
    
// Query the data and print it to the console
gQueue.Query();

foreach( ClarifyDataRow row in gQueue )
{
    Console.WriteLine("Queue title: {0}",
        row["title"] );
}
' Create the DataSet
Dim dataSet As New ClarifyDataSet(session)

' Traverse from the user's objid
Dim gQueue As ClarifyGeneric = session.CreateGeneric( _
    session("user.id"), "user", "user_assigned2queue" )
    
' Query the data and print it to the console
gQueue.Query()

For Each row As ClarifyDataRow In gQueue
    Console.WriteLine("Queue title: {0}", row("title") )
Next
// Create the DataSet
ClarifyDataSet dataSet = new ClarifyDataSet(session);

// Traverse from the user's objid
ClarifyGeneric gQueue = dataSet.CreateGeneric(
    (int)session["user.id"], "user", "user_assigned2queue" );
    
// Query the data and print it to the console
gQueue.Query();

foreach( ClarifyDataRow row in gQueue )
{
    Console.WriteLine("Queue title: {0}",
        row["title"] );
}
' Create the DataSet
Dim dataSet As New ClarifyDataSet(session)

' Traverse from the user's objid
Dim gQueue As ClarifyGeneric = session.CreateGeneric( _
    session("user.id"), "user", "user_assigned2queue" )
    
' Query the data and print it to the console
gQueue.Query()

For Each row As ClarifyDataRow In gQueue
    Console.WriteLine("Queue title: {0}", row("title") )
Next

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Reference

ClarifyGeneric Class
ClarifyGeneric Members

 

 


© 2010 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.

Send comments on this topic.