This is a really strange question, but does anyone know how to send a true value back to a script using custom button/hotspot actions in a dialogbox? Basically what i am trying to do is give a user the ability to take a dialogbox that is read-only and have them change it to another dialogbox that allows them to edit the information.
I tried to call the new dialogbox from the old dialogbox and then call uidoc.Close but that only created a new dialogbox over top of the old one, and didn’t close the original dialogbox, which is the behavior I was looking for. So I decided that maybe I should try and call the new dialogbox from the place where I called the read-only one if that dialogbox returned a “True” value, but I am having difficulty returning a “True” value from the first dialogbox because I have it set to not show the OK and Cancel buttons.
Can anyone help me out here? I’ve searched the forum for info on the RefreshParentNote method of the NotesUIWorkspace, but I am not sure how to apply it to what I am working on (and the documentation is pretty pathetic.) If anyone could point me in the right direction, i’d really appreciate it.
thanks.
brandt
Subject: Can anyone tell me how to pass a “True” value back to a form using custom hotspot actions in a dialogbox?
I think I’ve had the same problem and solved it by using environment variables (in notes.ini) to pass the information to the calling script that the next dialog should be open in edit mode. I guess that user-profile-document could be used for the same purpose.
So the general idea is - in the calling script:
-
display read-only-dialogbox (workspace.DialogBox(…)
-
when the dialogbox gets closed the control returns to this calling script and then we check for the presence of flag (environment variable, or some field in profile document ) and if flag is set we display the dialogbox in editmode
there might be a small flicker on screen with this approach when changing to edit mode in this way
hope that helps
Subject: RE: Can anyone tell me how to pass a “True” value back to a form using custom hotspot actions in a dialogbox?
Michal,
I ended up doing it easily by creating OK and Cancel buttons in the form, but I like this idea as well. Thanks for the help.
brandt
Subject: RE: Can anyone tell me how to pass a “True” value back to a form using custom hotspot actions in a dialogbox?
Brandt, how did you create the OK and Cancel buttons in the form?
I am calling a DialogBox via Lotusscript. I have the OK and Cancel buttons turned off also (since the customer wants to use graphic buttons that conform to their color and feel requirements or whatever you call it). But fields changed on the form by the user, or in the OK and Cancel buttons, or in the QuerySave or Postsave, are not updated in the NotesDocument after Lotusscript returns from the call (I have noNewFields and noFieldUpdate both set to False).
Thanks.
Subject: RE: Can anyone tell me how to pass a “True” value back to a form using custom hotspot actions in a dialogbox?
See if you can make sense of this (and of the link inside that page):
http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/eefa694fcdf6c62685256b0c005ffea3?OpenDocument
I have successfully used that method.