Das Notes Forum

Domino 9 und frühere Versionen => ND6: Entwicklung => Thema gestartet von: geissbock am 11.07.07 - 15:20:38

Titel: Vorgabewert Optionsschaltfläche in Dialogbox
Beitrag von: geissbock am 11.07.07 - 15:20:38
Hallo,
folgendes Szenario:
Maske für Dialog mit einer Optionschaltfläche mit den 2 Auswahlwerten "Ja" und "Nein". Vorgabewert: "Nein".
Aufruf aus einem Script mit
Call ws.DialogBox _
   ("dlgWatchfall", True, True, False, False, False,  _
   False, "Watchfall", curdoc, True)

Die Optionschaltfläche ist nicht auf Nein gesetzt. Warum nicht? Wie kann ich hier einstellen, dass bei Aufruf der Dialogbox der Default auf Nein steht?
Danke & Gruß Klaus
Titel: Re: Vorgabewert Optionsschaltfläche in Dialogbox
Beitrag von: KiTaMann am 11.07.07 - 16:42:57
Hallo, Klaus,

hier ein Auszug aus der Designerhilfe zur Dialogboxmethode, der Dir weiterhelfen könnte:

Sharing of field values:

This method displays the current or specified document using a different form. This means:

If the form has field names in common with the document, the field values of the document are displayed in the dialog box.

If the user changes the value of any fields in the dialog box and clicks OK, the changes are reflected in the same fields on the document.

If the user enters a value for a field in the dialog box, and the document does not contain a field by that name, the value is added to the document, even if it is not displayed in the form, unless noNewFields is True.

Field sharing is not supported for rich text fields.


Titel: Re: Vorgabewert Optionsschaltfläche in Dialogbox
Beitrag von: geissbock am 11.07.07 - 16:55:40
Hallo,
vielen Dank. Das war genau der entscheidende Hinweis. Die Maske hatte ein Feld gleichen Namens ohne Vorgabewert. Hab den dort nun auch eingestellt und schon funktionierts.
Vielen Dank nochmal