srinivasan2425
Technical User
Hello , I really appreciate if someone could help me with this.
I have created extended Attributes called Conceptual data element name and conceptual data element code. I want conceptual data element code be calculated based on the conceptual data element name, just the same way as the code gets calculated based on name using .convert_name(%Name%) macro in powerdesigner. I tried following in extended attribute method script , but it’s throwing syntax error… I have tried various other ways to do it but I am unsuccessful… Appreciate if someone can help me with this.
I tried something like this in method script of extended attribute.
Sub %Method%(obj)
' Implement your method on <obj> here
Dim Value_Tx
Value_Tx=obj.getExtendedAttribute("Conceptual Data Element Name")
Value_Tx=.convert_name(Value_Tx,"_")
obj.setExtendedAttribute "BAC_Baseline_Metadata_physical.Conceptual Data Element Code", Value_Tx
End Sub
I have created extended Attributes called Conceptual data element name and conceptual data element code. I want conceptual data element code be calculated based on the conceptual data element name, just the same way as the code gets calculated based on name using .convert_name(%Name%) macro in powerdesigner. I tried following in extended attribute method script , but it’s throwing syntax error… I have tried various other ways to do it but I am unsuccessful… Appreciate if someone can help me with this.
I tried something like this in method script of extended attribute.
Sub %Method%(obj)
' Implement your method on <obj> here
Dim Value_Tx
Value_Tx=obj.getExtendedAttribute("Conceptual Data Element Name")
Value_Tx=.convert_name(Value_Tx,"_")
obj.setExtendedAttribute "BAC_Baseline_Metadata_physical.Conceptual Data Element Code", Value_Tx
End Sub