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

GetFirstProperty Method


This method retrieves the name of the first property of a business service.

Syntax

oService.GetFirstProperty()

Argument
Description

Not applicable

 

Returns

A string containing the name of the first property of the business service

Usage

This method retrieves the name of the first property, in order of definition, of a business service. Use GetFirstProperty and GetNextProperty to retrieve the name of a property. You can then use the retrieved name as an argument 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 the 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

GetNextProperty Method
GetProperty Method
SetProperty Method

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