Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Property Set Methods > GetFirstProperty MethodThis method returns the name of the first property in a property set. SyntaxReturnsA string representing the name of the first property in a property set UsageGetFirstProperty() 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 WithBrowser Script, COM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script, Web Client Automation Server ExampleThis example uses GetFirstProperty to get the first property, then retrieves all subsequent properties using GetNextProperty. The loop terminates when GetNextProperty retrieves a null. function Service_PreInvokeMethod (MethodName, Inputs, Outputs) propName = Inputs.GetFirstProperty(); // stay in loop if the property name is not null // if a property with the same name does not exist propName = Inputs.GetNextProperty(); See Also |
Siebel Object Interfaces Reference |