hallo,
ich habe einen agenten geschrieben der aus einer anderen Datenbank datne holen soll (urlaubsdaten) und in dieser datenbank zur weiteren Verwendung speichern soll.
Ich habe den Eindruck das dieser Agent sehr sehr langsam ist.
Kann das an einer "seltsamen" programmierung liegen?
hier mein codestück:
REM erstmal alle Urlaubsformulare löschen
searchform$ = {FORM = "Urlaub"}
Set collection = db.Search(searchform$, Nothing, 0)
Call collection.RemoveAll(True)
REM Jetzt die Urlaubsdaten aus der Formulardatenbank holen
searchform$ = {FORM = "ORDER"}
Set collection = formular.Search(searchform$, Nothing, 0)
Set formulardoc = collection.GetFirstDocument()
While Not(formulardoc Is Nothing)
Set doc = db.CreateDocument
doc.Form = "Urlaub"
doc.Name = Evaluate("@NameLookup([NOUPDATE];""" & formulardoc.GetItemValue("CreatedBy")(0) & """;""LastName"")")
doc.Startdatum = formulardoc.GetItemValue("vom_1")
doc.Enddatum = formulardoc.GetItemValue("bis_1")
Call doc.ComputeWithForm(False,False)
Call doc.Save(True, True)
Set formulardoc= collection.GetNextDocument(formulardoc)
Wend
------------------------------
Hat jemand eine idee?