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

How can I update documents in a subform?

I am a beginner of Notes development. My question is how to update documents in a subform (inserted under main form) like an audit trail record -- to log time, users and fields and update them on the main document. Thanks and regards.
Fields on a subform behave pretty much identically to fields on the main form. When you edit a document, the fields in the main form are not stored in a different location than the fields on the subform -- they are all saved in the same document. So, you can just write a Querysave event (either in the form or in the subform) and refer to fields on the main form and fields on the subform in the same way, without worrying which are which.

I also considered that you might not be talking about subforms -- perhaps you're actually asking about response documents. If that's the case, please resubmit your question with additional details about how your data is organized and what you want to accomplish.

It sounds like you want to make an audit trail that shows who edited the main document and what fields they changed. This is complex functionality to program, not something you would want to attempt on your own as a novice developer. However, this has already been done for you, and you can download it here.

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 ...