Refreshing a view question 6.5.1 - view not refreshed when command executed in lotusScript

Posted on 2005-03-01
Medium Priority
Last Modified: 2013-12-18
Hello...I do not have a lot of experience here....obviously...

I have a view that selects a specific form type with a status != "Deleted".......I double click to bring up the form and select a action button on this form that allows me to change the status to "Deleted".  I then exit the form and return to the view and the document is still visiable.  If I press f9 to refresh, it disappears.

I have tried executing a refresh of the view in the action button script (on the form), right after ths status is changed to "Deleted" and the doc is saved.

I follow it through debugger...the refresh is executed, but doesn't  happen.  The problem could be glaring, but I can't see it.....

Any help is appreciated....

view name is - Pymts by Check
SELECT FORM = "PP" & ProdREQ_Status != "Deleted"

On the PP form I have this button -

Sub Click(Source As Button)
      Dim workspace As New NotesUIWorkspace
      Dim uidoc As NotesUIDocument
      Dim doc As NotesDocument
      Dim response As Integer
      Dim db As NotesDatabase
      Dim session As New NotesSession
      Dim PBCview As NotesView
      Set db = session.CurrentDatabase
      Set PBCview = db.GetView("Pymts by Check")            
      Set uidoc = workspace.CurrentDocument
      Set doc = uidoc.document
      If ((doc.PP_Payment_Confirmed(0) = "No")) Then
            response = workspace.Prompt (PROMPT_YESNOCANCEL, "Delete Payment" , "DeleteThis Payment?")
            If response = 1 Then
                  Call uidoc.Close(True)
                  doc.ProdREQ_Status = "Deleted"
                  Call doc.Save(True,False)      
                  Messagebox "Payment Marked for Deletion", , "Delete Payment"
                  Call PBCview.Refresh
                  Exit Sub
            End If      
      End If      
      If ((doc.PP_Payment_Confirmed(0) = "Yes")) Then
            Messagebox "Payment Confirmed - Deletion Not Permitted", , "Delete Payment"
      End If
End Sub
Question by:BeastDan
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
LVL 14

Expert Comment

ID: 13432409
Is the "If conditon executed", if yes then try in the views property box,  set refresh index to automatic.


Author Comment

ID: 13433322
The If statement is executed...I set refresh index to automatic (per your suggestion) and yet it behaves identically.....not refreshing.
LVL 46

Accepted Solution

Sjef Bosman earned 500 total points
ID: 13433459
Call workspace.ViewRefresh to update the view.
Industry Leaders: 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!

LVL 14

Expert Comment

ID: 13434080
file := @Prompt([LOCALBROWSE]; "Select an mpg file"; "3");file

Put this in a button


LVL 14

Expert Comment

ID: 13434123
hey for attaching the file this is the code in the button:

@Command( [EditInsertFileAttachment] )

here untitled is the name of the richtext field

LVL 14

Expert Comment

ID: 13434132
oops wrong post sorry beastdan


Author Comment

ID: 13434231
that's ok.....

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

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…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

743 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