Sorry for the long explanation but I hope this will maybe put me on the right track. Thanks all in advance.
I am working to create a web app for police officer to perform house checks that have been requested by residents. Currently I have have two forms and three views.
Form A is a form the resident fills on the web. It has info like address name, etc
Form B is a officer check form has 4 fields Address, date/time checked(@now), comments, and who checked it.
On form A I have a button that is viewable only by the officers to initiate a new check. This should set a hidden field on Form A with the current date/time and open Form B copying the address from form a to form b.
I have done this in LS, but it doesn’t work on the web.
I have tried Java also, but can’t seem to get it right.
Below is what I have tried:
In Java :
document.forms[0].Last_Check.value= now();
opt = document.forms[0].ReqType.value;
window.location.href = “http://Server/apps/PD/Housewat.nsf/OfficerCheck?OpenForm&Check_Address=“+opt+””;
In LotusScript:
Dim ws As New NotesUIWorkspace
Dim db As NotesDatabase
Dim docHouseWatch As NotesDocument
Dim docOfficerCheck As NotesDocument
Dim uidoc As notesuidocument
Dim uidoc2 As NotesUIDocument
Dim nDT As Variant
Set db = ws.CurrentDatabase.Database
Set uidoc = ws.CurrentDocument
Set docHouseWatch= ws.currentdocument.document
Set docOfficerCheck = db.createdocument
nDT = Cstr(Now)
docOfficerCheck.Form = "OfficerCheck"
docOfficerCheck.Check_Address = docHouseWatch.Address(0)
docHouseWatch.Form = "HouseWatch"
doc.HouseWatch.Last_Check = nDT
Set uidoc = ws.EditDocument( True, docOfficerCheck, False )
Set uidoc2 = ws.EditDocument (True, docHouseWatch, False)