SetInfo()

Description:

The SetInfo method modifies the value of a system attribute.

This is a synchronous method.

Syntax:

SetInfo(parameters:Object):Object

Arguments:

Return value:

The SetInfo method returns an error code and an error message.

Table: Return value properties for SetInfo

Property

Description

Value

ErrorCode

This is a number that specifies a predefined error code.

See Service API error codes.

ErrorMessage

This is a text string that describes the error.

Remarks:

Only some system attributes can be modified. To find out which system attributes support SetInfo, see section Supported system attributes (entities and keys).

Example code:

The following sample code illustrates how to modify the value of a system attribute:

import com.nokia.lib.Service;
var sysInfo = new Service("Service.SysInfo", "ISysInfo");
var systemData = {Status:1};
var inParams = {Entity:"General", Key:"PredictiveText", SystemData:systemData};
var outParams = sysInfo.SetInfo(inParams);
var errorId = outParams.ErrorCode;