Solved

How do I assign an action button on a form to open a pop-up subform?

Posted on 2006-10-24
9
251 Views
Last Modified: 2013-12-18
I've tried using the following formula that I found here in another thread:

@DialogBox( subformname ; [AutoHorzFit] : [AutoVertFit] : [NoCancel] :
[NoNewFields] : [NoFieldUpdate] : [ReadOnly] ; title )

The subform is not opening when this is used.  I'm sure part of the problem is that I'm not sure what needs to be entered into the "title" part of the formula.

The form should remain open while the subform is up.

Thanks in advance!
0
Comment
Question by:justkrissy
  • 4
  • 3
  • 2
9 Comments
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 250 total points
ID: 17799862
The full syntax (copied from the Help db):
    @DialogBox( form ; [AUTOHORZFIT] : [AUTOVERTFIT] : [NOCANCEL] : [NONEWFIELDS] : [NOFIELDUPDATE] : [READONLY] : [SIZETOTABLE] : [NOOKCANCEL] : [OKCANCELATBOTTOM] ; title )

It could be my eyes, but I think you just invented a new keyword: NoCancel... I suppose you meant NoOkCancel ;-)

Title should just be text. I assume you want to use a dialog box to modify specified fields on the current document? That's what the Formula version is for. The LotusScript variant of DialogBox is a lot more flexible, in the sense that you can call up any document on the screen in a dialog box.
0
 
LVL 43

Assisted Solution

by:Steve Knight
Steve Knight earned 250 total points
ID: 17801280
It's there for me in your pasting ;-)  Nocancel does what it says on the tin... you just get the OK button.

Paste in your exact commandline, are you entering the subformname as "subformname" or taking the value of a variable set elsewhere for instance?
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17801285
Neither of us actually answered your title question.  The title is just the title that will appear above the window, it could simply be "My popup window" (complete with quotes), a variable or field or a combination, e.g.

"My popup window for " + ContactName
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17801287
Oops, now I can't read. Sjef did say it should be text.  I blame getting up at 5am!
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 17801411
And I blame solving problems after midnight :$ The NoCancel is there, in the list... Shame on me...

The formula seems correct therefore, so I assume it's some earlier code in the same button, or the form that isn't correct. Can you add some @Prompt statements, so you can see the progress? Suggested syntax:
    @Prompt([Ok]; "Variable xyz is "; @Text(xyz))
0
 

Author Comment

by:justkrissy
ID: 17806832
I had to split the points even on this one.  sjef gave excellent advice, but I never would have got the formula to work if dragon-it hadn't noted that I need to put the subform name in quotes!  That is why I couldn't get it to work.

Thanks a million to both of you... and thanks for responding to my question so quickly!
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17807381
No problem
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 17807822
Hey thanks! :)

By the way, you wrote in http:Q_22037789.html#17807491 "Can data-entry text fields be used on subforms or are they only for computed fields?":
> I figured it out....

As long as nobody else put a post in that question, you can delete it. Otherwise, you'd have to ask Community Support to remove it.
0
 

Author Comment

by:justkrissy
ID: 17837562
Noted for future reference.

Thanks!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now