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])

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 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

GetCurrentValue.

Siebel SmartScript Administration Guide