Solved

Hide or Show a Field via Action Buttons

Posted on 2001-09-10
3
993 Views
Last Modified: 2013-12-18
In Lotus Notes R5, I have a form in which I wish the user to click an Action Button to allow that a particular field would be "shown" or "hidden", ie. toggling back and forth.  This would even be on the original form before the document is saved.

I have a completely hidden field called "TicketShow" which is set to either "0" (not show) or "1" (show) via action buttons.  

The field called "Ticket#" (Text, Editable) is the one which I want to either show or not show.   It has a hide formula which says to "hide paragraph if TicketShow is 0".  

The problem is that the document has to be SAVED each time before giving the desired effect.   Is there a way to refresh the screen based on the new value of the "TicketShow" field without having to do a File Save and File Close first?

Or perhaps I am making this more complicated than it needs to be...any other approaches are welcome.  Thanks.
0
Comment
Question by:blyons48
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
marilyng earned 65 total points
ID: 6471917
Blyons,
Is TicketShow an editable field?
Is the form set to refresh automatically?
Are your action buttons composed in script or formula?

YOu shouldn't have to save the form after the action button is pressed, just refresh it so the hidewhen formulas fire.

If the form isn't set to refresh fields automatically (consumes more resources) you can program it to refresh via the buttons.  

Button Formula:
Field TicketShow = 1 (..etc)
@Command( [RefreshHideFormulas] )

let me know if you need the script, instead.

marilyng

0
 

Author Comment

by:blyons48
ID: 6472163
The @Command([RefreshHideFormulas]) which you showed in the button formula was exactly what I was looking for.  It did the trick and made my code to work as desired.  It is curious that when I did a Lotus Notes help, using the search word of "refresh" it didn't find that command.   Nevertheless, you have helped me resolve my problem and I thank you.  Excellent answer.
0
 
LVL 18

Expert Comment

by:marilyng
ID: 6472544
happy to help!
marilyng
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

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