SysUpdatePropertyString
Updates the named global property with the given string value. Note that the property must already be created for the app.
Service | Operation |
---|---|
globalApp | SYS_UPDATE_PROPERTY_STRING |
Method Parameters
Parameter | Description |
---|---|
name | The name of the property to update |
value | The string value to set the property to |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var globalAppProxy = bridge.getGlobalAppServiceProxy();
var propertyName = "initialFaction";
var stringValue = "Protectors";
var postResult = globalAppProxy.sysUpdatePropertyString( propertyName, stringValue );
if (postResult.status == 200) {
// Success!
}
{
"service": "globalApp",
"operation": "SYS_UPDATE_PROPERTY_STRING",
"data": {
"name": "initialHealth",
"value": "Protectors"
}
}
JSON Response
{
"status": 200,
"data": null
}