Technical information
Programming - Asset Management
76
RMS Enterprise - NetLinx Programmer’s Guide
The following code snippet provides an example of registering asset metadata properties. A final submission method call is
required to submit the queued asset metadata properties to the RMS server.
// this is a new asset registration, register all
// asset metadata properties now.
RmsAssetMetadataEnqueueBoolean(assetClientKey,
'touch.panel.g4',
'G4 Enabled',
panelInfo.isG4Panel);
RmsAssetMetadataEnqueueBoolean(assetClientKey,
'touch.panel.headless',
'Headless',
panelInfo.isHeadlessPanel);
RmsAssetMetadataEnqueueBoolean(assetClientKey,
'touch.panel.dockable',
'Dockable',
panelInfo.hasDock);
RmsAssetMetadataEnqueueBoolean(assetClientKey,
'touch.panel.battery',
'Battery',
panelInfo.hasBattery);
// submit metadata for registration now
RmsAssetMetadataSubmit(assetClientKey);
Asset Metadata Properties - Required Information (Cont.)
Data Type (String) Data type for this asset metadata property value. The following set of constants are defined for the
available data types in the RmsApi.axi Include File.
// RMS Metadata Property Data Types
RMS_METADATA_TYPE_STRING = 'STRING';
RMS_METADATA_TYPE_MEMO = 'MEMO';
RMS_METADATA_TYPE_BOOLEAN = 'BOOLEAN';
RMS_METADATA_TYPE_NUMBER = 'NUMBER';
RMS_METADATA_TYPE_DECIMAL = 'DECIMAL';
RMS_METADATA_TYPE_DATE = 'DATE';
RMS_METADATA_TYPE_TIME = 'TIME';
RMS_METADATA_TYPE_HYPERLINK = 'HYPERLINK';
RMS_METADATA_TYPE_DATETIME = 'DATETIME';
Read Only (Boolean) Defines if this asset parameter threshold is enabled by default.
Hyperlink Name (String) This metadata property attribute is only required when defining a metadata property of data type: Hyper-
link. This field should contain the hyperlink display name/text.
Hyperlink URL (String) This metadata property attribute is only required when defining a metadata property of data type: Hyper-
link. This field should contain the hyperlink URL address.