Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Control Methods > SetValue MethodThe SetValue method sets the contents of the specified control to the value indicated. SyntaxcontrolVar.SetValue (controlValue) ReturnsUsageThe GetValue and SetValue methods work only for controls that are associated with business component fields. Therefore, these methods are not applicable to labels. SetValue sets the contents of a control. The user can still change those contents before they are committed to the BusComp field. SetValue does not validate the format of the data. Data validation occurs at the time user commits the record by stepping off the field/record or saving the record. SetValue can also set the value for a read-only control. However, such value is lost when the record is committed. Also, these methods only work on form applets. Used WithExampleThe following code shows the use of GetValue and SetValue: function Applet_PreInvokeMethod (name, inputPropSet) // Example of changing the value of the Abstract control to uppercase var ctlName = "Abstract"; // Example of changing the value of a checkbox control var ctlName = "Billable Flag"; // Example of changing the value of a date/time control var ctlName = "Agent Committed"; |
Siebel Object Interfaces Reference | Copyright © 2008, Oracle. All rights reserved. | |