Description:
The SetInfo method modifies the value of a system attribute.
This is a synchronous method.
Syntax:
SetInfo(parameters:Object):Object
Arguments:
parameters:
This is an object that specifies the new value for the system attribute. For more information about the object properties and how to define them, see section Parameters for modifying a system attribute value.
Return value:
The SetInfo method returns an error code and an
error message.
|
Property |
Description |
Value |
|---|---|---|
|
|
This is a number that specifies a predefined error code. |
|
|
|
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;