Hello All,I am trying to put code in a button on a web application to do a save for this document and create a new document but I dont get any error and no success here is my code
@Command( [RefreshWindow] );
@Command( [FileSave] );
@Command([ToolsRunMacro];“Save and New Detail”);
Here is the agent
Sub Initialize
Dim session As NotesSession
Set session = New NotesSession
Set db = session.currentdatabase
Set SettDoc = db.GetProfileDocument("Settings")
Dim doc As NotesDocument
Set doc=session.DocumentContext
Messagebox("1")
Dim detaildoc As NotesDocument
Set detaildoc=db.CreateDocument
detaildoc.form="Travel Request Detail"
Messagebox("2")
Call doc.CopyAllItems(detaildoc, True )
Call detaildoc.computewithform(False,False)
detaildoc.From=doc.To(0)
detaildoc.UNID=doc.UNID(0)
Messagebox("3")
Call doc.save(True,False)
Call detaildoc.Save(True,False)
End Sub
any advise will be great
Thanks
Dalia