CurrentScriptResult Property
General info
Label |
Current Script Result |
Description |
Current Script Result |
Data type |
String |
Type |
Regular |
Code |
5258 |
Symbolic name |
MODEL_PROP_CURRENTSCRIPTRESULT |
Lua access code |
inmation.model.properties.CurrentScriptResult |
Available since |
1.46.3.6448 |
- Parent properties
Attributes
Name | Tooltip |
---|---|
PROP_VISIBLE | The property is visible in DataStudio and can be read by the inmation APIs |
PROP_VOLATILE | The property exists during runtime of the service only and is not saved to the image |
Examples
Read from or write to the CurrentScriptResult
property.
-- Read from the CurrentScriptResult
inmation.getvalue("<OBJECT FULL PATH>.CurrentScriptResult")
-- Write to the CurrentScriptResult
inmation.setvalue("<OBJECT FULL PATH>.CurrentScriptResult", "new value")
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "so", Password = "inmation" };
StatelessInterface sli = new StatelessInterface(tcpcfg);
// Read from the CurrentScriptResult
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.CurrentScriptResult"));
// Write to the CurrentScriptResult
Result result = sli.WriteValue(sc, new WriteItem("new value", "<OBJECT FULL PATH>.CurrentScriptResult"));