EventCollection Property
General info
Label |
Collection |
Description |
The collection storing event data. |
Data type |
String |
Default value |
"Prod.Sync.EventData.UnCut" |
Type |
Regular |
Code |
12870 |
Symbolic name |
MODEL_PROP_EVENTCOLLECTION |
Lua access code |
syslib.model.properties.EventCollection |
Available since |
1.78 |
- Parent classes
Attributes
| Name | Tooltip |
|---|---|
| PROP_CONFIGURABLE | The property is configurable and can be changed with DataStudio and the various inmation APIs. |
| PROP_VISIBLE | The property is visible in DataStudio and can be read by the inmation APIs. |
| PROP_HAS_DEFAULT | The property has a default value as standard. |
Examples
Read from or write to the EventCollection property.
-- Read from the EventCollection
syslib.getvalue("<OBJECT FULL PATH>.EventCollection")
-- Write to the EventCollection
syslib.setvalue("<OBJECT FULL PATH>.EventCollection", "Prod.Sync.EventData.UnCut")
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);
// Read from the EventCollection
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.EventCollection"));
// Write to the EventCollection
Result result = sli.WriteValue(sc, new WriteItem("Prod.Sync.EventData.UnCut", "<OBJECT FULL PATH>.EventCollection"));