Difference between revisions of "TABLEMETADATA()"
Yvonne.milne (Talk | contribs) (Created page with "==Purpose== Function to return the METADATA string from the Active Data Dictionary associated with the active table ==Syntax== TABLEMETADATA() ==See Also== ACLASS(), A...") |
Yvonne.milne (Talk | contribs) |
||
Line 23: | Line 23: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | [[Category:Metadata | + | [[Category:Metadata API]] |
[[Category:Data Import]] | [[Category:Data Import]] | ||
[[Category:Lianja VFP Extensions]] | [[Category:Lianja VFP Extensions]] | ||
[[Category:VFP Function Extensions]] | [[Category:VFP Function Extensions]] |
Revision as of 13:35, 16 February 2016
Contents
Purpose
Function to return the METADATA string from the Active Data Dictionary associated with the active table
Syntax
TABLEMETADATA()
See Also
ACLASS(), ADDPROPERTY(), AMEMBERS(), COLUMNMETADATA(), COMPOBJ(), CREATEOBJECT(), DEFINE CLASS, DISPLAY CLASSES, DODEFAULT(), FOREACH, JSON_DECODE(), JSON_DECODE_FILE(), JSON_ENCODE(), 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, SOCKET_CLOSE(), SOCKET_LASTERROR(), SOCKET_OPEN(), SOCKET_PEEK(), SOCKET_READ(), SOCKET_SERVER(), SOCKET_WRITE(), WITH, XML_DECODE_FILE()
Description
The TABLEMETADATA() function is used to return the METADATA string from the Active Data Dictionary associated with the active table. This can be a JSON encoded complex object containing properties that are arrays of objects or nested objects. You can change the elements of the metadata object then update the Active Data Dictionary with the new metadata.
Example
open database southwind use customers omd = json_decode( tableMetaData() ) omd.searchpanelvisible = .t. use alter table customers metadata json_encode(omd)