Domino 9 und frühere Versionen > ND6: Entwicklung

attempt to execute nested form events

(1/2) > >>

adminnaddel:
Hallo liebe Gemeinde,

eine aufwendige Formel macht mir im QueryModeChange Event große Sorgen mit der Meldung:

attempt to execute nested form events

Dabei prüfe ich einfach nur, ob der aktuelle DAU darf oder net!

lg
Andy

adminnaddel:
Okay ... bin schlauer geworden, nachdem ich weiß, was nested heißt!

Aber verschachtelt hin und verschachtelt her ... schon dumm das es nicht im Event funzt!

lg
Andy

umi:
Wie machst Du es denn?
evtl. reicht es wenn Du Continue auf False setzt im Querymodechange.

adminnaddel:
Das ist ja lustig!
Dachte ich probiere es einfach mal mit LS und nehme mir einen kleinen Ausschnitt aus der Formel:

Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
   
   Dim ws As New NotesUIWorkspace   
   Dim session As New NotesSession   
   Dim db As NotesDatabase   
   Dim uidoc As NotesUIDocument
   Dim doc As NotesDocument
   Dim docProfile As NotesDocument
   
   Set uidoc = ws.CurrentDocument
   Set db = session.currentDatabase   
   Set docProfile = db.GetProfileDocument("($Konfiguration)")
   
   If docProfile.configAutoren(0) = "" Then   
      uidoc.EditMode = False
   End If
End Sub

Und bekomme doch dieselbe Fehlermeldung :-( Das ist doch bestimmt ein Trick :-)

lg
Andy

umi:
Hi
Du versuchst im QueryModeChange nochmals den Modus zu ändern. Daher das nested.


Versuch doch folgendes

--- Code: --- If docProfile.configAutoren(0) = "" Then
Continue = False
End If

--- Ende Code ---
anstatt:

--- Code: --- If docProfile.configAutoren(0) = "" Then
uidoc.EditMode = False
End If

--- Ende Code ---

Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln