Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum



PreviousPrevious NextNext

Carla Stuber 28.Jun.13 10:25 AM a Web browser
Notes Client 7.0.2 Windows XP

I have two columns in a view that I want to get data from a computed when composed field based upon script in the querysave of the form for that field.

Col1 (Processed Date) This would be the date stamp of a specific status (which will be the last status "Ready for EAS")
Col2 (Last Status) This would be the users name who made the last status that was made at any given time. (I dont know if this is possible)

This is an example of the Status History as it appears on the form:
6/26/2013 1:19:43 PM -- Jane Doe set Status to -- Ready for EAS
6/26/2013 1:19:33 PM -- Sue Sunshine set Status to -- Approved for AP
6/26/2013 9:15:24 AM -- Carla Stuber set Status to -- Submitted
6/26/2013 9:15:21 AM -- Carla Stuber set Status to -- Draft

Field name: StatusHistory
hidden field: initStatus (computed when composed)
Field Value: REM {Set and used in QuerySave};

QuerySave: Sub Querysave(Source As Notesuidocument, Continue As Variant)
'Update StatusHistory field

Dim session As New NotesSession
Dim doc As NotesDocument
Dim dateTime As New NotesDateTime( "" )
Dim user As String
Dim itemInit As NotesItem
Dim item As NotesItem
Dim tmpText As String
Dim endline As String

Set doc = source.Document
Call dateTime.SetNow
user = session.CommonUserName

'Update the StatusHistory field if the user changed the Status field. Reset the initStatus field for the next save.
Set item = doc.GetFirstItem( "lstStatus" )
Set itemInit = doc.GetFirstItem( "initStatus" )
If doc.HasItem("lstStatus") Then
If itemInit.text <> item.text Then
doc.StatusHistory = dateTime.LSLocalTime & " -- " & user & " set Status to -- " & item.text & Chr(13) & Chr(10) & doc.StatusHistory(0)
doc.initStatus = item.text
End If
End If
End Sub

Any suggestions or documentation someone can guide me to?
Thanks for any assistance!

Column View (Carla Stuber 28.Jun.13)
. . RE: Column View (Stan Rogers 28.Jun.13)
. . RE: Column View (Karl-Henry Mart... 1.Jul.13)
. . . . RE: Column View (Carla Stuber 1.Jul.13)

  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite