SetCurrentValue
SetCurrentValue is a procedure to set the value for the answer to a question.
Syntax
SetCurrentValue(value, [CurrencyCode, ExchangeDate])
| Argument | Description | 
|---|---|
| value | The answer value to be given for the current question. | 
| CurrencyCode | The currency code for the currency in which the answer is to be expressed if the question is a currency question. | 
| ExchangeDate | The exchange date for the currency if the question is a currency question. | 
Returns
Not applicable
Usage
The SetCurrentValue procedure sets the value for the question as if the user had entered it. All validation and branching are activated. If the question is a currency question (that is, the answer type is Currency), specify the currency code and exchange date 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, do not use SetCurrentValue() 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");
}