Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Hide or Show a Field via Action Buttons

Posted on 2001-09-10
3
Medium Priority
?
1,002 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 260 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: 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

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

715 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