Dynamic view creation in lotus notes….

5 pts.
Tags:
Lotus Notes View
Lotus Script
Hi, I created a view at run time using lotus script. But I am not able to open that view just after its creation. I need to close the application and reopen it, then only the newly created view is getting it the work space object. Following is my code, Please help me...... Dim s As New NotesSession Dim ws As New NotesUIWorkspace Dim db As NotesDatabase Dim v As NotesView Dim uiv As NotesUIView Dim uidoc As NotesUIDocument Dim form As NotesForm Dim uidb As NotesUIDatabase Set db = s.CurrentDatabase Set uidoc=ws.CurrentDocument Set uidb=ws.GetCurrentDatabase Set v=db.CreateView("tempView") v.SelectionFormula="SELECT form='frmAddMember'" v.Refresh ws.ViewRefresh db.DelayUpdates=False Call ws.OutlineReload("","") Call ws.ReloadWindow 'Call ws.RefreshParentNote Set db=Nothing Set uidb=ws.GetCurrentDatabase Set v=Nothing Set uidb=Nothing Set db= s.CurrentDatabase Set v=db.GetView("tempView") 'Msgbox v.AllEntries.Count Call ws.OpenDatabase("","Test.nsf","tempView") Call uidb.OpenView(v.Name,"",1)
ASKED: March 30, 2012  2:20 PM
UPDATED: April 10, 2012  7:15 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Try with modifying last 3 lines as
Call ws.OpenDatabase(“”,”testing.nsf”,”tempView”)
Set uidb1=ws.GetCurrentDatabase
Call uidb1.OpenView(v.Name, ,True)

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following