Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to apply Name code conversion on Extended attributes using conversion table

Status
Not open for further replies.

srinivasan2425

Technical User
Jun 20, 2014
2
0
0
US
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


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top