How can I transfer the values from one field to another field (the two fields are in different forms & different databases)? Can I use ASP or XML? Is it need any separate database connectivity? Or else I can use the Notes database?
The good news is this is fairly simple and can be done in numerous ways, the following LotusScript code illustrates one simple way to do it assuming that you want to move values from the currently selected document (source) to another document in the target database (target). It could easily be extended to support virtually any scenario for moving data.
Dim nsCurrent as New NotesSession Dim ndbSource as NotesDatabase, ndbTarget as NotesDatabase Dim nvwTarget as NotesView Dim ndocSource as NotesDocument, ndocTarget as NotesDocument Set ndbSource = nsCurrent.CurrentDatabase Set ndbTarget = nsCurrent.getDatabase(ndbSource.Server, "target.nsf") Set nvwTarget = ndbTarget.getView("target") Set ndocTarget = nvwTarget.getDocumentByKey("target",true) If Not ndocTarget is Nothing Then ndocTarget.targetFieldName=ndocSource.sourceFieldName Else MsgBox "Could not access target document", 16, "Error" End if
Related Q&A from Dave Hatter
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.