ajl7519
asked on
Popup on Field Selection in Lotus Notes
Hello,
I would like to have a Yes|No popup window when some selects a certain item in a dialog list field. For instance, if the user selects "Scanner Setup", I would like to have a popup with Yes|No where yes opens a Notes form. Originally I had a button, but I want to make sure the user selects after they request "Scanner Setup."
Thanks in advance.
I would like to have a Yes|No popup window when some selects a certain item in a dialog list field. For instance, if the user selects "Scanner Setup", I would like to have a popup with Yes|No where yes opens a Notes form. Originally I had a button, but I want to make sure the user selects after they request "Scanner Setup."
Thanks in advance.
You could try to set the field to "Refresh form when field value changes", and use the PostRecalc event of the form to compare the current value to "Scanner Setup", in which case you can start your new form.
ASKER
Thanks for the reply.
Well, I have the field to refresh to display a new dialog field list dependent on the choice. I am bit new to Lotus Scripting. The form I am trying to open is an existing form. I was trying to have an Exiting function, but I can't seem to get it down. Here is the beginning part I have got so far.
Thanks
Well, I have the field to refresh to display a new dialog field list dependent on the choice. I am bit new to Lotus Scripting. The form I am trying to open is an existing form. I was trying to have an Exiting function, but I can't seem to get it down. Here is the beginning part I have got so far.
Thanks
Sub Exiting(Source As Field)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
Dim openDoc As Integer
If (uidoc.fieldgettext("ServiceType") = "Scanner Setup") Then
openDoc = ws.Prompt (PROMPT_YESNO, _
"Scanner Setup", "Click Yes to open Scanner Setup Instructions")
If openScan = 1 Then
%REM
Code I would use to open form
%END REM
Else
%REM
Code to cancel
%END REM
End If
End If
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This is a ticketing database that users can fill out their requests in. For instance on the scan setup I want them to get the instructions once they select that request. Ever request ask for different information for the user to input based on what they are requesting. There are a lot of issues that can be solved without my intervention--I would like to be able include fixes when users make certain requests.
Maybe a button is the way to go or even sending a link to the instructions in the email the ticketing mailbox sends out when the ticket is submitted.
Maybe a button is the way to go or even sending a link to the instructions in the email the ticketing mailbox sends out when the ticket is submitted.
Why open a new form or document when a selection is made? In the PostRecalc, you could do a DbLookup for a document in your database that contains help text. You could put that text in the current form, with the selection field, just as a reminder. That seems doable and not too time-consuming. Do you have open space left in your form, for that informational text?
ASKER
The form is pretty dense, so I have decided to use a mail template to send out the instructions out to the user. I think that will be the best way to not confuse the users. Once I complete my part I will send the instructions to the users.
Thanks for your help.
Thanks for your help.
You're welcome. Maybe it's worthwhile to add a feature to your application that prevents the same mail with instructions to be sent more than once. Or that a button is visible for the user to request the mail or so? Or as a doclink? Remember, mail is much more volatile than a document database...