Problem solve Get help with specific problems with your technologies, process and projects.

Transfer values from one field to another

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
	MsgBox "Could not access target document", 16, "Error"

End if

Dig Deeper on Lotus Notes Domino Administration Tools

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...