Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Disable Printing while in edit mode but enable printing in read mode (non-web)

Posted on 2003-03-06
8
Medium Priority
?
247 Views
Last Modified: 2013-12-18
In Notes 5.07.
I need to disable the documents from printing in edit mode but want to enable printing in read mode.
I tried putting $KeepPrivate as "1" or "0" in querymodechange and postmodechange event of form. I don't know what i am doing wrong but it didnot work. Please suggest. Any API function would greatly help too.

Thanks !
0
Comment
Question by:navgup
  • 4
  • 2
  • 2
8 Comments
 
LVL 5

Expert Comment

by:AndrewJayPollack
ID: 8086010
Navgup, I think to do this you'll have to trigger a form reload - a closing of the window and re-opening of it through your code in order for the client to recognize your changes to the $keepprivate field..
0
 
LVL 4

Expert Comment

by:pratigan
ID: 8087920
YOu can also use the @[RefreshAllDocs] to reload all the  documents.  I at times setup a view to display just the documents I want ot refresh and then run an agent that contains the refreshalldocs or refreshselecteddocs..
:)
0
 
LVL 5

Expert Comment

by:AndrewJayPollack
ID: 8088030
That will work in a view, or on the database as a whole, but not while looking at a single document in and wanting its value to update.

@Command([ViewRefreshFields]) MIGHT work, I haven't tried it, but I suspect he's going to need to close and reopen the uiworkspace document itself.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 4

Expert Comment

by:pratigan
ID: 8088354
Hello Andrew,
I agree with you if he's having a problem with one document.  I was under the impression he has multiple documents already created that he needed to add this change to.
Thanks !
Paul
0
 

Author Comment

by:navgup
ID: 8106055
Thanks for the input. but nothing helped so far. Any other suggestions.
0
 
LVL 5

Accepted Solution

by:
AndrewJayPollack earned 300 total points
ID: 8106569
the changemode event gives you source as notesuidocument right?

so, if the document is in read mode, do this:

source.close()
source.open(true)

if its in edit mode, do this:

source.close()
source.open(False)
0
 

Author Comment

by:navgup
ID: 8154331
No help.. still finding difficult to set the values on the fly..
0
 
LVL 5

Expert Comment

by:AndrewJayPollack
ID: 8154348
unfortunately, changing this value takes no effect unless the document is reloaded.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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…
  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…
Screencast - Getting to Know the Pipeline
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Suggested Courses

581 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