Siebel Object Interfaces Reference > Interfaces Reference > Business Service Methods >

GetNextProperty Method


When the name of the first property has been retrieved, this method retrieves the name of the next property of a business service.

Syntax

oService.GetNextProperty()

Argument
Description

Not applicable

 

Returns

A string containing the name of the next property of a business service, or an empty string ("") if no more properties exist.

Usage

After retrieving the name of the first property with GetFirstProperty, the GetNextProperty method should be used in a loop, to be terminated when an empty string ("") is returned. When property names have been retrieved, they can be used as arguments to GetProperty to retrieve the property value, or with SetProperty to assign property values.

Used With

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

Examples

This function returns the number of Property Sets that belong to the Business Service given in parameter.

The following example is in Siebel eScript:

function countPropSets(busService)
{
   var propSetName = busService.GetFirstProperty();
   var count = 0;

   while (propSetName != "")
   {
      count++;
      propSetName = busService.GetNextProperty();
   }

   return count;
}

The following example is in Java:

public int countPropSets(SiebelService busService)
{
   int count = 0;
   try
   {
      String propSetName = busService.getFirstProperty();
      while(propSetName != "")
      {
         count++;
         propSetName = busService.getNextProperty();
      }

   }

   catch(SiebelException sExcept)
   {
      return 0;
   }

   return count;
}

Related Topics

GetFirstProperty Method
GetProperty Method
SetProperty Method

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