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

Cross-referencing common fields in forms

I am looking for a script that can do the following.

I have two databases, A and B. Database A has two forms. Database B has one form. All three forms have a unique field on them.

I have a button on Form1, which, when clicked, will change the status of that form to "NA." When I am saving the document created with Form1 with the "NA" value, I want to search for the documents corresponding to the common field in the other two forms (one in the same DB and another in a different DB) and set the status field in those forms to "NA" also. Is this possible? If so, does anyone have a sample script? Please let me know.
Your best solution would be to have a view in each database sorted on the key value of the common field. When a document is opened for editing, I would save the value of the field in question for later reference.

In the post save event of the form being changed, check to see if the field value has changed. If it has, get a document collection of the documents in the current database with the key.

Check each document in the collection. If the field doesn't match the current saved value of the first document, update the document from the collection. Repeat this for a collection of documents with the key value in the second database.

Do you have comments on this Ask the Expert Q&A? Let us know.

Dig Deeper on Lotus Notes Domino Application Development

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.

-ADS BY GOOGLE

SearchWindowsServer

Search400

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

SearchDataCenter

SearchContentManagement

Close