Solved

Hide or Show a Field via Action Buttons

Posted on 2001-09-10
3
997 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Lotus notes forward mail problem 5 432
Mobile Iron iphone stop receiving new mails 6 1,427
Domino Smart Upgrade from Release 8.5.3 to 9.0.1 1 1,025
Lotus Domino Server 9 4 98
  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…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

740 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