Skip to main content

%iKnow.Objects.MetadataValue

Class %iKnow.Objects.MetadataValue Extends %Persistent [ Deprecated, StorageStrategy = iKnowStorage, System = 4 ]

Note: the use of this class is no longer recommended for accessing elements of a specific domain. For those scenarios, %iKnow.Tables.Utils offers a more flexible and customizable way of projecting iKnow domain data to SQL

This is a read-only object representation wrapping the internal iKnow data structures for Metadata field values.

This class can be used from ObjectScript or SQL to access a single or small number of entries, but the storage mappings are not meant to support elaborate or complex queries targeting this SQL table.

Please use the predefined queries in %iKnow.Queries.MetadataAPI and other query classes to consult metadata as the internal global structures are designed to optimize performance for these queries rather than general-purpose access.

Parameters

READONLY

Parameter READONLY = 1;

Properties

DomainId

Property DomainId As %Integer;

FieldId

Property FieldId As %Integer;

SourceId

Property SourceId As %Integer;

ValueInternal

Property ValueInternal As %String(MAXLEN = 2000) [ Internal, Private ];

Value

Property Value As %String(MAXLEN = 2000) [ Calculated, SqlComputeCode = {set {Value} = $s($lg(^IRIS.IK.Mdt.FieldId({DomainId},{FieldId}),4)<=1:{ValueInternal}, 1:^IRIS.IK.Mdt.UniValueId({DomainId},{ValueInternal})) }, SqlComputed ];

Field

Property Field As %iKnow.Objects.MetadataField [ Calculated, SqlComputeCode = {set {Field} = {DomainId} _"||"_ {FieldId} }, SqlComputed ];