chapmandu
04/28/2023, 7:55 AMzackster
04/28/2023, 9:57 AMthis ?chapmandu
04/28/2023, 10:27 AMjoechastain
04/28/2023, 11:32 AMgetMetaData(object) might work. It should return a bunch of stuff including the object's properties.joechastain
04/28/2023, 11:40 AMsknowlton
04/28/2023, 11:50 AMian.hickey
04/28/2023, 1:16 PMchapmandu
05/01/2023, 5:18 AM// Returns a struct of the object's property key/values
// NOTE: for local.meta.properties to exist, the properties must be declared with cfproperty
public static struct function getProperties(required object object) {
local.properties = {};
for (local.property in GetMetadata(arguments.object).properties;) {
local.properties[local.property.name] = arguments.object[local.property.name];
}
return local.properties;
}ian.hickey
05/01/2023, 7:38 PMsknowlton
05/01/2023, 7:52 PMobject[ methodName ]()ian.hickey
05/01/2023, 8:07 PM