Yes, user meta data is key/value pairs you can attach globally to object types, ie, table or column or specific objects like column \"EmployeeID\".
Suppose you had user meta data stored at the table level, you can loop through it like this:
- Code: Select all
For Each objColumn in objTable.Columns
Set prop = objColumn.Properties(objColumn.Name)
output.writeLn prop.Key & \" = \" & prop.Value
Next
or if you had data an object you can access it directly like this
- Code: Select all
Dim str
str = objTable.Columns(\"HireDate\").Properties(\"MyKey\").Value
output.writeLn(str)
There are no business entity templates that use it because it's user meta data, it wouldn't know what to do with it, this might help you though:
Each Meta object such as a Column has these three collections
obj.Properties
A collection that can hold key/value pairs of your choosing
obj.GlobalProperties
A collection that can hold key/value pairs of your choosing for all Columns with the same Database
obj.AllProperties
A collection that combines the Properties and GlobalProperties Collections
There are two docking windows that you can use to enter data, one for Global and one for Local user data as well. Look for the buttons on the main toolbar with \"G\" and \"L\" on the them. There is a template in the other directory that demonstrates this as well.