Domino 9 und frühere Versionen > ND8: Entwicklung
Problem mit Validierung bei eigenen Schaltflächen in DialogBox
udo187:
Hallo !
Die von mir verwendeten Schaltflächen sind auch vom Typ "Normal" und der Code liegt direkt auf der Schaltfläche.
Gruss Udo
Alexander 28:
Ja, schon. Aber wie kriege ich die Dialogbox dazu einmal True und einmal False zurückzugeben, wenn beide Buttons vom Typ 'Normal' sind?
Mitch:
Mit NotesUiWorkspace.RefreshParentNote vor dem Close. Das simuliert in Dialogen den OK-Button. Ohne das käme "false" zurück.
Aus der Hilfe:
--- Zitat ---If your button calls this method and then closes the dialog (e.g. with NotesUIDocument.Close), the NotesUIWorkspace.DialogBox method in the caller will return True, as if the user had clicked OK.
--- Ende Zitat ---
Beste Grüße,
Mitch
Alexander 28:
ahh ja, prima. das war mal ein guter tipp ...
danke
koehlerbv:
--- Zitat von: Alexander 28 am 14.05.13 - 14:57:19 ---ahh ja, prima. das war mal ein guter tipp ...
--- Ende Zitat ---
Das heisst im Gegenzug, die anderen Tipps hier sind eher Quatsch und wertlos. Wirklich?
Bernhard
Navigation
[0] Themen-Index
[#] Nächste Seite
[*] Vorherige Sete
Zur normalen Ansicht wechseln