?
Solved

How to refresh the document after it has opened

Posted on 2003-02-19
6
Medium Priority
?
293 Views
Last Modified: 2013-12-18
Hello All
Is there anyway to refresh the actionbar in 4.64
or to refresh the doc automatically after it has opened.
Yes I have switched on Automatically refresh fields. I need to refresh the entire document ala F9 without pushing F9 and only after switching to Edit mode as not everyone has edit rights

Thanks

James
0
Comment
Question by:imjamesw
[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
  • 4
  • 2
6 Comments
 
LVL 7

Expert Comment

by:scottrma
ID: 7983130
Put @Command([ViewRefreshFields]) in the PostModeChange event of the form.

Regards,

Scott
0
 
LVL 7

Expert Comment

by:scottrma
ID: 7983154
Or this:

@If(@IsDocBeingEdited; @Command([ViewRefreshFields]); "")

in the form's PostModeChange event if you want the fields to be refreshed whenever the document is put into Edit Mode.

Regards,

Scott
0
 

Author Comment

by:imjamesw
ID: 7983258
I have a script in the PostModeChange

Also I have had limited succes by putting
 If source.EditMode Then Call source.refresh

in the PostRecalc

It works but I get an error:

Attempt to execute form events

James
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 7

Expert Comment

by:scottrma
ID: 7983329
It's probably just as well that you get the error in PostRecalc, as otherwise it might lead to an infinite loop or something (since PostRecalc executes after fields have been recalculated, but in this event you call uidoc.Refresh, which causes fields to be recalculated, which may in turn trigger the PostRecalc event again???).

What script code is currently in your PostModeChange? Perhaps it could be translated to do the same thing in formula language and then it could be combined with the @Command([ViewRefreshFields]) at the end of it?

Regards,

Scott
0
 

Author Comment

by:imjamesw
ID: 7983355
Here is the current PostModeChange script

Dim sourcedoc As Notesdocument
     Set sourcedoc = source.document
     If source.editmode Then
          sourcedoc.inuse = "Yes"
          Call sourcedoc.save (True, True)


James
0
 
LVL 7

Accepted Solution

by:
scottrma earned 800 total points
ID: 7984103
Try this for your PostModeChange:

@If(@IsDocBeingEdited; @SetField("inuse"; "Yes"); "");
@If(@IsDocBeingEdited; @Command([ViewRefreshFields]); "")

Let me know if this works for you.

Regards,

Scott
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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 Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

765 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