ALM | Requirements Management | Testing | Project Planning | Bug Tracking | Modeling | Version Control | VoIP IP PBX Phone System
Home | Latest Versions | Product Presentations | Download Free Evaluation | Blog | Developers Forum | Delta 1000 Gateway


Plastic SCM Version Control

Discussion Forum for StarTeam Users


Re: Following a Shortcut (STW)


[ Follow Ups ] [ Post Followup ] [ Discussion Forum for StarTeam Users]

Posted by Greg Spall on May 30, 2003 at 13:18:42:

In Reply to: Following a Shortcut (STW) posted by Akeel Nazir on May 29, 2003 at 06:28:30:

: How do I follow a shortcut programatically. I'm trying to mass-checkout files from StarTeam 5.2 repository, but shortcuts is a potential bottleneck. Please let me know if anyone has some code written for a similar task.

: Warm Regards
: Akeel

I don't know if this helps (different versions ..)

But I have StarTeam 5.1, and using the SDK:

IstFile object has a property: References.

It's a collection; you can systematically rip through that list (essentially an array), and find the items you're looking for.

For example:
(In PowerBuilder)

(Passed in: oleobject aole_File )

oleobject lole_Item
Long ll_FileTotal
Long ll_Counter

ll_FileTotal = aole_File.References.Count()

FOR ll_Counter = 1 TO ll_FileTotal
lole_Item = aole_File.References.Item[ll_Counter - 1]

IF lole_Item.View.Name = "yyy" THEN

// process file ...
// if it exists in the view: "yyy"

END IF
NEXT



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:


[ Follow Ups ] [ Post Followup ] [ Discussion Forum for StarTeam Users]

| Home | Modeling | Integrated Development ALM | Version Control | VoIP IP PBX Phone System | Download Free Evaluation | Blog | Developers Forum |Delta 1000 |

Fox Consult, P. O. Box 78, 194 22 Upplands Vรคsby, Sweden. Telephone +46-8-626 8100. Skype: fox.consult
For general information, please send an e-mail to: Info. For sales inquiries contact: Sales.
If you have questions about our web site, please contact Webmaster. Copyright Fox Consult, 1994-2010.