Home : OpenNTF Main Bar > Reply | Reply 
TopicI can beat you guys!!!.... re: a big perfomance leak
NameAlex Hernandez

Ok, so your are talking about that.... I remember one of my first LS apps. before I dicover the FTSearch and the search methods ;-)

I needed to found documents based in a criteria and put links in a folder.

was something like this...

......... ' dim db, view and doc...

set view = db.GetView("TheViewName")
set doc = view.GetFirstDocument
while not doc is nothing
if doc.form(0) = "TheForm" then
if doc.fieldA(0) = "Something" then
if doc.fieldB(0) = 1 then
val1 = doc.fieldC(0)
val2 = doc.fieldD(0)
if val1 <= val2 then
if fieldF(0) = "Another Value" then
.........
call doc.putinfolder("TheFolder", true)
.........
end if
end if
end if
end if
end if

set doc = view.getnextdocument(doc)
wend



At least...... Shame on me!!!!!

;-)

Alex





**MORE BENIGN CONTEST** - Nathan T Freeman - 02-27-2002
  Making forms crawl 101 - Nathan T Freeman - 02-27-2002
    RE: Making forms crawl 101 - Robert L Shaver - 02-27-2002
      Lessons to learn... re: Making forms crawl 101 - Nathan T Freeman - 02-27-2002
        Field-based @dbLookup can be OK ... Lessons to lea... - Dovid Gross - 02-27-2002
        RE: Lessons to learn... re: Making forms crawl 101 - Stephen Lister - 02-28-2002
  Mindless object declarations - Luke Kolin - 02-27-2002
  RE: **MORE BENIGN CONTEST** - Villi Helgason - 02-27-2002
    RE: **MORE BENIGN CONTEST** - Nathan T Freeman - 02-28-2002
      RE: **MORE BENIGN CONTEST** - Villi Helgason - 02-28-2002
        RE: **MORE BENIGN CONTEST** - Nathan T Freeman - 02-28-2002
          RE: **MORE BENIGN CONTEST** - Luke Kolin - 02-28-2002
            Further considerations.... re: **MORE BENIGN CONTE... - Nathan T Freeman - 02-28-2002
              RE: Further considerations.... re: **MORE BENIGN C... - Luke Kolin - 02-28-2002
              Breakage ... Further considerations.... re: **MORE... - Dovid Gross - 02-28-2002
            @DbLookup? - Johan Alderud - 02-28-2002
              Please explain... Re: @DbLookup? - Vince Schuurman - 03-02-2002
                ok - Johan Alderud - 03-02-2002
                  ok.. Re: ok - Vince Schuurman - 03-05-2002
                    lol, could use one myself... :) eom - Johan Alderud - 03-05-2002
              RE: @DbLookup? - Meriadec MICHEL - 03-01-2002
          Subforms? - Colin Pretorius - 02-28-2002
            Sure... re: Subforms? - Nathan T Freeman - 03-03-2002
              RE: Sure... re: Subforms? - Colin Pretorius - 03-03-2002
                LOL... re: Sure... re: Subforms? - Nathan T Freeman - 03-04-2002
              RE: Sure... re: Subforms? - Villi Helgason - 03-03-2002
                RE: Sure... re: Subforms? - Nathan T Freeman - 03-06-2002
      Subforms ... **MORE BENIGN CONTEST** - Dovid Gross - 02-28-2002
        This is kinda interesting... re: Subforms ... **MO... - Nathan T Freeman - 03-02-2002
          RE: This is kinda interesting... re: Subforms ... ... - Luke Kolin - 03-03-2002
  The dog that didn't bark ... - Andrew Price - 02-28-2002
    **I declare, you must be more explicit than that .... - Dovid Gross - 02-28-2002
  Readers fields and replication... (re: **MORE BENI... - Rod Stauffer - 03-01-2002
    RE: Readers fields and replication... (re: **MORE ... - Stephen Lister - 03-01-2002
      Another good reason for using 2 Readers fields... ... - Vince Schuurman - 03-02-2002
    RE: Readers fields and replication... (re: **MORE ... - Vince Schuurman - 03-01-2002
      RE: Readers fields and replication... (re: **MORE ... - Nathan T Freeman - 03-01-2002
    Corollary: no author or servers as only readers ..... - Dovid Gross - 03-01-2002
      Good case... re: Corollary: no author or servers a... - Nathan T Freeman - 03-03-2002
  **Any DB with triple-digit-plus view count ... **M... - Dovid Gross - 02-27-2002
    *Nod*... re: **Any DB with triple-digit-plus view ... - Nathan T Freeman - 03-03-2002
      Not exactly ... *Nod*... re: **Any DB with triple-... - Dovid Gross - 03-03-2002
    how about 180 really complex views? - Joerg Michael - 03-03-2002
      Build a synopsis... re: how about 180 really compl... - Nathan T Freeman - 03-14-2002
        RE: Build a synopsis... re: how about 180 really c... - Joerg Michael - 03-14-2002
  Lookup from external view ... **MORE BENIGN CONTES... - Dovid Gross - 02-27-2002
    True for all design elements.... Re: Lookup from e... - Vince Schuurman - 03-03-2002
  Single stupidest thing on a complex form ... **MOR... - Dovid Gross - 02-27-2002
    Good call!... re: Single stupidest thing on a comp... - Nathan T Freeman - 03-03-2002
    You mean, like on the Server form in the R5 pubnam... - The Turtle - 03-03-2002
  And the iwnner is ... **MORE BENIGN CONTEST** - Dovid Gross - 02-27-2002
  RTFM, stoopid - Colin Pretorius - 02-27-2002
    RE: RTFM, stoopid - Dovid Gross - 03-03-2002
      Not sure what you're after.... re: RTFM, stoopid - Nathan T Freeman - 03-12-2002
        RE: Not sure what you're after.... re: RTFM, stoop... - Benoit Dubuc - 03-12-2002
          RE: Not sure what you're after.... re: RTFM, stoop... - Nathan T Freeman - 03-13-2002
  Suggestion.... Re:**MORE BENIGN CONTEST** - Vince Schuurman - 02-27-2002
  Overhead.. Re:**MORE BENIGN CONTEST** - Vince Schuurman - 02-27-2002
    ROFL... re: Overhead.. Re:**MORE BENIGN CONTEST** - Nathan T Freeman - 02-27-2002
    Priceless eom - Johan Alderud - 02-27-2002
  Computed Fields - Vince Schuurman - 02-27-2002
  a big perfomance leak - Werner Novak - 02-27-2002
    Guilty of this one.... re: a big perfomance leak - Nathan T Freeman - 02-27-2002
      You are here I can beat you guys!!!.... re: a big perfomance le... - Alex Hernandez - 02-27-2002
  RE: **MORE BENIGN CONTEST** - Alex Hernandez - 02-27-2002
    LOL re: LS, JS, etc... - Nathan T Freeman - 02-27-2002
  Read and edit-mode - Christian Gorni - 02-27-2002