WasteProducts Property

General info

Label

Waste Products

Description

Allows to reclassify regular products to waste product.

Data type

String

Default value

"{\"meta\":{\"id\":\"urn:id:41:4\"}}"

Type

TableSchemaBound

Code

6571

Symbolic name

MODEL_PROP_WASTEPRODUCTS

Lua access code

syslib.model.properties.WasteProducts

Available since

1.54

Parent properties

ProductOptions

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.

Schema Definition

Name: MaterialClassificationSchema

Description: Configuration of material classification

Columns
Column Data Type Nullable Unique Default Min Max Description
MaterialCode String true false
MaterialNamePattern String true false

Examples

Read from or write to the WasteProducts property.

  • Lua

  • C#

-- Read from the WasteProducts
syslib.getvalue("<OBJECT FULL PATH>.ProductOptions.WasteProducts")

-- Write to the WasteProducts
syslib.setvalue("<OBJECT FULL PATH>.ProductOptions.WasteProducts", '{"meta":{"id":"urn:id:22:2"},"data":{"Input":[1.0,2.0],"Value":["v1","v2"]}}')
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the WasteProducts
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.ProductOptions.WasteProducts"));
// Write to the WasteProducts
Result result = sli.WriteValue(sc, new WriteItem('{"meta":{"id":"urn:id:22:2"},"data":{"Input":[1.0,2.0],"Value":["v1","v2"]}}', "<OBJECT FULL PATH>.ProductOptions.WasteProducts"));