clearcasecalibm-rational

Getting View Owner/Creator with Rational ClearCase Automation Library (CAL)


Has anyone here already worked with the Rational / IBM CAL and knows if at all, and how to check for a view's creator/owner (username)? Elements, Vobs etc all have an Owner/Creator, but for some reason views do not?


Solution

  • I have only do small VB scripts with CAL, as illustrated in this answer about label.

    After having checked cc_cal.chm (found in C:\Program Files\IBM, in the latest 7.1.0.1 version of ClearCase installation), I have found their ICCView interface very incomplete, and always prefered to patch the output of a classic:

    cleartool lsview -l -full -pro aTagViewName
    

    With that output, I am sure to find whatever information I need.


    The only other "pure CAL" way to get some views for a given username is for UCM views, where you can ask the stream for those (but that does not address directly your question)

     Dim Streams As CCStreams 
     Dim Stream As CCStream 
     Set Streams = Project.DevelopmentStreams(Name) 
     For Each Stream In Streams 
           Dim Views As CCViews 
           Set Views = Stream.Views(Name) 
           Dim View As CCView 
           For Each View In Views 
                 Str = Str & View.TagName & " in stream: " & _ 
                 Stream.Title & vbCrLf 
           Next 
     Next