Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

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

Posted on 2006-10-24
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!
Question by:justkrissy
  • 4
  • 3
  • 2
LVL 46

Accepted Solution

Sjef Bosman earned 250 total points
ID: 17799862
The full syntax (copied from the Help db):

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.
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?
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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!
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))

Author Comment

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!
LVL 43

Expert Comment

by:Steve Knight
ID: 17807381
No problem
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.

Author Comment

ID: 17837562
Noted for future reference.


Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 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