Solved

Hide or Show a Field via Action Buttons

Posted on 2001-09-10
3
998 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
[X]
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
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

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

For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

710 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