I need to create MergeField with "{Parent_FullName}" template (not like standart "{MergeField Parent_FullName}" ).
Is it possible to create CustomMergeField with Empty FieldTypeName? I tried to make it a standard way, but it crashed when i create CustomMergeField object
PS I just try to find more easy way how to do this (like override few properties or method)
Is it possible to create CustomMergeField with Empty FieldTypeName? I tried to make it a standard way, but it crashed when i create CustomMergeField object
public
class
CustomMergeField : MergeField {
private
const
string
CustomFieldName =
string
.Empty;
static
CustomMergeField() {
CodeBasedFieldFactory.RegisterFieldType(CustomMergeField.CustomFieldName, () => {
return
new
CustomMergeField(); });
}
public
override
string
FieldTypeName {
get
{
return
CustomMergeField.CustomFieldName;
}
}
PS I just try to find more easy way how to do this (like override few properties or method)