Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel SmartScript Administration Guide > Extending Scripts with Siebel VB and Siebel eScript > Other Preprogrammed SmartScript Question Methods >
SetCurrentValue
SetCurrentValue is a procedure to set the value for the answer to a question.
Syntax
SetCurrentValue(value, [CurrencyCode, ExchangeDate])
Returns
Not applicable
Usage
The SetCurrentValue procedure sets the value for the question as though the user had entered it. All validation and branching is activated. If the question is a currency question (that is, the answer type is "Currency"), the currency code and exchange date should also be specified in the function's parameters. The currency code and exchange date parameters are optional.
If a question is to be saved to a business component field, SetCurrentValue() should not be used for this question until after the SmartScript has been correctly positioned on that business component.
SetCurrentValue is declared as a string.
Siebel eScript Example
function Question_Enter (){
SetCurrentValue("Hello");
}
See Also
Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel SmartScript Administration Guide Published: 23 June 2003 |