Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7613387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:08:32+00:00 2026-05-31T02:08:32+00:00

In my Lotus Notes application (classic, not using XPages), the user won’t be able

  • 0

In my Lotus Notes application (classic, not using XPages), the user won’t be able to edit documents directly.

Instead, modifications will happen dialog-based and triggered through actions on the form.

For example, I have an action invoking code similar to the following:

Dim ws As New NotesUIWorkspace
Dim result As String
Dim document As NotesDocument
Dim options(1 To 6) As String

'... - Fill options

Set document = ws.CurrentDocument.Document
result = ws.Prompt(PROMPT_OKCANCELCOMBO, "New Value", "Please choose the new value", document.Foo(0), options)

If result <> "" Then
    document.Foo = result

    Call document.ComputeWithForm(False, True)
    Call document.Save(True, False)
End If

This updates the value of Foo to the value the user chose in the dialog.

However, this new value is not shown to the user – the Form does not seem to be refreshed.
Reopening and closing the form does show the new value; it definitely gets updated.

The nearest I could get was the following code (inside the if-block):

ws.CurrentDocument.EditMode = True
document.Foo = result
Call ws.CurrentDocument.Save()
ws.CurrentDocument.EditMode = False

Nevertheless, this solution seems a bit suboptimal to me as I have to enter edit mode.

How can I refresh the form using Notes Script to reflect the change of the field without having to enter edit-mode?
Methods like ws.CurrentDocument.Refresh either don’t show any effect or raise errors as they can’t be used outside edit-mode.

Many thanks in advance for your ideas, tips and solutions!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:08:34+00:00Added an answer on May 31, 2026 at 2:08 am

    I found another solution avoiding entering edit-mode:

    As the documentation to Reload states:

    Modifications made to the back-end document outside the current
    editing session (for example, by an agent or another user) do not
    appear until the document is closed and reopened. You can close and
    reopen a front-end document with NotesUIDocument.Close(True) and
    NotesUIWorkspace.EditDocument.

    Thus, the document can be “refreshed” (with a bit of flickering) using:

    Dim ws As New NotesUIWorkspace
    Dim document As NotesDocument
    Set document = ws.CurrentDocument.Document
    '...
    Call ws.Currentdocument.Close(True)
    Call ws.Editdocument(False, document)   
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want add a new user in lotus notes using java program but i
Users are pasting text from Lotus Notes into my VBA application. This is then
I am making one application where i am reading mails from Lotus Notes. I
I am using Lotus Notes as my email client, and how to change the
I'm currently working on a Lotus Notes solution. We're just using Web forms so
i am using the apache commons httpclient in a lotus notes java agent and
For those who are not aware, Lotus Notes is a cool system, which has
I want to add logging capabilities in my Lotus Notes application. Basically I want
I plan to make an web application using XPages for the design (plus the
Some agents in an ancient Lotus Notes application has a difference in agent-enabled behaviour

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.