Sunday, February 27, 2011

How to Use Filter method to filter the results (Bug Factory)

Connect to Bug Factory object using OTA API

Sub BugFilter()
Dim BugFact As BugFactory
Dim BugFilter As TDFilter
Dim BugList As list
Dim theBug As Bug
Dim i%, msg$

'Get the bug factory filter
'tdc is the global TDConnection object.
Set BugFact = tdc.BugFactory
Set BugFilter = BugFact.Filter

'Set the filter values
BugFilter.Filter("BG_STATUS") = "Closed"
BugFilter.Order("BG_PRIORITY") = 1
MsgBox BugFilter.Text

'Create a list of defects from the filter
' and show a few of them
Set BugList = BugFilter.NewList
msg = "Number of defects = " & BugList.Count & Chr(13)

For Each theBug In BugList
msg = msg & theBug.ID & ", " & theBug.Summary & ", " _
& theBug.Status & ", " & theBug.Priority & Chr(13)
i = i + 1
If i > 10 Then Exit For
Next
MsgBox msg
End Sub

11 comments:

  1. What's up to all, the contents existing at this site are really amazing for people knowledge, well, keep up the good work fellows.

    Have a look at my web site ... http://www.gather.com/viewArticle.action?articleId=281474981794557

    ReplyDelete
  2. Caption 17. Ironic they submit a image of Massive Blue w/American icons and yet
    (purposefully) neglect "..and the American Way!", regarding what he uses his superpowers to fight for.
    Bunch of communist bastards. It's not the Iranian way. Not the Cuban way. Not the Cambodian way. Not the Indian way. Not the Bulgarian way.

    my blog post: superman stamina techniques revealed

    ReplyDelete
  3. I am carrying out a paper on yoga and my points are how
    it is useful for guys, ladies, and youngsters. Are the rewards various enough to acquire a great paper from it or should I
    change my factors? In case you do believe this can be
    a good approach to lay out my paper, what will be the distinct
    positive aspects? Please give me some websites or other sources due to the fact regardless of
    how I lay it out, my paper has to be about yoga! Many thanks!


    my weblog attract beautiful girls

    ReplyDelete
  4. This is the sole internet site i used to be in a position to locate that
    was talking regarding the right things when i get off of this site i'm gonna eat meals high in protien and energy and consume a lot of water result in which is also 1 of my issues i dont consume adequate h2o and in 3 hrs from now i'm going to my Dr.
    workplace and talk to him about gaining weight i really n truely believe that
    is the best website someone can visit, to discover how to gain fat
    You are Amazing!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    THANK YOU Very Considerably

    Feel free to surf to my web blog: fast way to build muscle and burn fat

    ReplyDelete
  5. yo,shut the fuck up, no 1 wants to hear un useless comment.
    then go bck you fuckin where the hell your from

    Have a look at my web-site ... Dating Tips From Men

    ReplyDelete
  6. Get Free Pinterest Social Acoounts for all your software Usage.

    Free accounts prepared to go forall your needs Scale your campaigns.


    Look at my page ... adonis golden ratio training system download

    ReplyDelete
  7. i've met a sicilian lady studying erasmus in valencia, spain exactly where i've lately moved.

    i am american of northern decent (blond hair, blue eyes).

    when we initial satisfied, she couldn't even appear into my eyes and stuttered when she spoke to me. inside months we have been chatting at the bar and she was assisting me with my spanish. we would have a tiny also much to consume and she or he would stare into my eyes and i'd wish to kiss her, but she would not give me the chance.
    whenever i touched her, she shivered. we
    kissed around the last night prior to i went house for
    xmas. she was shy about this and stated how dangerous it was.
    i made the decision to be a gentleman and keep out
    till I came back again from property. i went residence for christmas for any
    thirty day period exactly where we wrote each other every single working day.
    when i returned, however, she was cooler to me.
    we still went to the bar, texted, and saw each and every other
    practically every single day. She still couldn't appear me within the eyes. one working day she informed me she was passionate but had awesome fingers, that she was a "chickens***" in her own words. we went out to play pool at a bar, i advised her how much i like her and how i realize she understands. i requested her if she felt comfy with me, she said sure, the first stranger she has at any time opened as much as. i advised her just how much our friendship means to me (which it really does!) and just how i cannot support but like her much more. at the finish on the evening she advised me she didn't want anything much more from me, not even
    a cigarette, was a little unkind about some things
    and walked property alone. i felt poor, just a little hurt, but woke
    to locate an extremely type message on my telephone.
    i stored my distance, but she drew me near at every single meal,
    bar, and conversation. i danced together with her final week.
    she held my hand on and off all night. what
    should i do with somebody that gives me such blended
    messages and will not open up up verbally to
    how she feels about me? Support! Italian Women!


    Here is my web site ... Subconsciously Attract Women

    ReplyDelete
  8. I had a tistaste for training,? I had been a superb student,
    I didn't disrupt course, but I hated the way all my teachers aside from 1 didn't let me to experiment, to enable my curiosity to wander
    free, they fed sights down my throat and didn't allow me to speak my mind. They said how factors happen but I desired to know why issues the way in which they are. I hated stuff becoming forced on me and not allowing any interest to expand.

    Also visit my web blog; how to attract women on plenty of fish

    ReplyDelete
  9. how to populate Requirements Treeview in QC using OTA

    ReplyDelete
  10. Hello to all, the contents existing at this site
    are really amazing for people knowledge, well, keep up the good work fellows.

    ReplyDelete