הצטרפו לקבוצות שלנו לקבלת עדכונים מרוכזים פעם בשבוע:

ווטסאפ:
http://wa.dwh.co.il
טלגרם:
http://telegram.dwh.co.il

אליאס במודל האובייקטים של הדיזיינר

More
16 years 8 months ago #3854 by ארז
כיצד מוסיפים ב VBA של הדיזיינר אליאס לטבלה קיימת?

Please התחברות to join the conversation.

More
16 years 8 months ago #3905 by Yoav
נסה להשתמש בבסיס הזה:

Option Explicit

Sub CreateAlias()
   
    Dim DesignerApp As Designer.Application
    Dim DesignerUniv As Designer.Universe
    Dim DesignerTbl As Designer.Table
    Dim AliasName As String
   
   
'Assign name of new alias (my aliases are stored in excel, you could just as easily hard-code an alias)
    AliasName = Worksheets("Sheet1").Range("A1").Value
    Set DesignerApp = New Designer.Application
    Set DesignerTbl = DesignerUniv.Tables(<existing universe table name or index value here>).CreateAlias(AliasName)

'Refresh and save
    DesignerUniv.RefreshStructure
    DesignerUniv.Save
    DesignerUniv.Close
    DesignerApp.Quit
   
    Set AliasName = Nothing
    Set DesignerApp = Nothing
    Set DesignerUniv = Nothing

Best Regards

Yoav Yahav

BI & DWH & SAP Business Objects

+972-52-3562982

bi.bobjects@gmail.com
thebobaba.blogspot.com/
www.bics.co.il/193657/sapbicoeeng
www.bo.dwh.co.il

Please התחברות to join the conversation.

Moderators: Yoav
Time to create page: 0.197 seconds