Hi,
How can I integrate a text box (text field) and a checkbox menu on the SAME popped-up window?
These examples shown below are from the help menu, but they’re implemented on two different popped-up windows.
@Prompt([OKCANCELEDITCOMBO]; “Select a Database”; “Select a database to open, or type a database specification.”; “Schedule”; “Schedule”:“Phone Book”: @Subset(@MailDbName;1))
@Prompt([OKCANCELEDIT]; “Enter Your Name”; “Type your name in the box below.”; @UserName)
Basically, I’d like to have a check-box menu for the users to select and a text box for the users to enter comments if they do have any. These have to be on the SAME popped-up window.
Thanks,
Mike Woo
Subject: How can I integrate a text box (text field) and a checkbox menu on the SAME popped up window?
You most likely will have to do this with a Dialogbox. Create a form with these items on it, and call it using @DialogBox or the lotus script equivalent. It makes the two fields you have in the dialog box, become information on that form, and you get that information the same way you do in Notes.
Subject: Is there anyway that I can avoid by creating another form and can achieve this with the Dialogbox?
Hi Greg,
Is there anyway that I can avoid by creating another form and can achieve this with the Dialogbox?
Thanks,
Mike woo
Subject: RE: Is there anyway that I can avoid by creating another form and can achieve this with the Dialogbox?
No. Creating a form, and calling it from the dialogbox command is the only way that I know of. It doesn’t store any information in that form, so it is re-usable for any other form that may need it. Why do you want to avoid creating a new form?
Subject: RE: Is there anyway that I can avoid by creating another form and can achieve this with the Dialogbox?
Hi Greg,
If the information is not stored on that form, how can I get the results from the users’ input?
Mike Woo
Subject: RE: Is there anyway that I can avoid by creating another form and can achieve this with the Dialogbox?
Sorry for the misunderstanding, it DOES becomes part of the parent document. Take a look at the help file or do a search on Dialogbox. You can call it via script or @function.
Subject: RE: Is there anyway that I can avoid by creating another form and can achieve this with the Dialogbox?
Hi Greg,
So in this case, I do have two forms, first form (has whatever I have) with buttons on the menu bar, then the second form has these two fields. So the input will be retrieved thru the first form (or main form).
Mike Woo.
Subject: RE: Is there anyway that I can avoid by creating another form and can achieve this with the Dialogbox?
Yep. Here is our scenario:
- I have a form with a bunch of fields
2)our dialog box is called dbxfieldentry that has those fields
3)tmpdoc is the name of the calling document.
- I have a function called dialogbox which checks for required fields and keeps the dialog open if not completed.
DialogBox:
If ws.DialogBox( "(DBXFieldEntry)", True, True, False, False, False, False, "Add Entry", tmpDoc) = False Then Exit Function
'Validation
If tmpDoc.Document(0) = "" Then
Msgbox "Document cannot be blank.",16,"Data Entry Error"
Goto DialogBox
End If
If tmpDoc.Version(0) = "" Then
Msgbox "Version cannot be blank.",16,"Data Entry Error"
Goto DialogBox
End If
If tmpDoc.Active(0) = "" Then
Msgbox "Active cannot be blank.",16,"Data Entry Error"
Goto DialogBox
End If
If tmpDoc.SendReceive(0) = "" Then
Msgbox "Send/Rec cannot be blank.",16,"Data Entry Error"
Goto DialogBox
End If
Subject: RE: Is there anyway that I can avoid by creating another form and can achieve this with the Dialogbox?
Yes, but – stop thinking in terms of forms. Forms are merely tools that you’re using to create and modify documents. It’s the documents you need to be concerned with. A dialogbox called using @Dialogbox operates against the current document, regarless of which (or indeed, any) form was used to create the document.