METADATA VALUE()

From Lianjapedia
Revision as of 07:46, 21 March 2017 by Yvonne.milne (Talk | contribs)

Jump to: navigation, search

Purpose

Function to return the value of the specified METADATA attribute

Syntax

METADATA_VALUE(<cAttribute>, <cSource>)

See Also

ACLASS(), ADDPROPERTY(), ALTER TABLE, AMEMBERS(), COLUMNMETADATA(), COMPOBJ(), CREATE TABLE, CREATEOBJECT(), DATABASEMETADATA(), DEFINE CLASS, DISPLAY CLASSES, DODEFAULT(), FOREACH, JSON_DECODE(), JSON_DECODE_FILE(), JSON_ENCODE(), Lianja MetaData API, LIST CLASSES, LOADOBJECT(), METADATA_DECODE(), METADATA_ENCODE(), METADATA_FINDTYPE(), NEWOBJECT(), OBJECT(), PRINT_JSON(), PRINT_HTML(), PRINT_R(), PRINT_XML(), REMOVEPROPERTY(), REQUIRE_ONCE(), SAVEOBJECT(), SQL SELECT, TABLEMETADATA(), TABLEMETADATAVERSION()

Description

The METADATA_VALUE() function is used to return the value of the specified METADATA attribute <cAttribute> from the source <cSource> as a character string.

Argument Description
<cAttribute> The attribute name as a character string.
<cSource> The MetaData source character string.

METADATA_VALUE() returns an empty string if <cAttribute> does not exist or if the condition does not match.

Example

? databasemetadata("docdb")
// purpose=documentation;createddate=20170227;createdversion=3.4;distribution=internal
cCreatedVersion = metadata_value("createdversion",databasemetadata("docdb"))
? cCreatedVersion 
// 3.4