Found a work around : Defined attribute in EF template e.g. Tagname and use substitution parameters to get value ('.\Elements[.]|AttributeTagName'). Used %@Attribute% in the naming pattern to fix it. I can reference element using %element% in naming pattern but due to restriction of "|" symbol in naming pattern I can't use Attribute name.
Please suggest if there is any direct method to achieve the same.
I think you have to use the workaround you suggested.
3 of 3 people found this helpful
Could you use the same syntax that you used for the EF attribute configuration in the Naming Pattern field: %@.\Elements[.]|AttributeTagName%. I set up a quick example and this works for me (AF 2018 SP1).
Attributes on the test element:
EF Template config; note the first substitution parameter in the naming pattern:
After triggering a few EFs to test, I see the value of the TagName attribute in the EF name:
Please let us know if this is what you are after or if there is some other roadblock.
Thank you for above example. It worked really well .
It is really helpful to me,
Now I just want to show the Element's some alphabets like as string builder, could we use that into naming pattern of event frame templates?
Like as below,
Element Name:- DEPOSITION-01
I want to show "DEP-01".
There are no string functions to apply in the Naming Pattern field. You would need to build the string in an attribute on the element using string builder or the string functions in analysis and then use the method above to pull this attribute value into the naming pattern.
Please keep us posted on your progress.