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

How can I change a parent field to its original value when a response doc is no longer in view?

I'm a newbie in Web development using Domino Designer. I have a parent form, frmIn and a response form, frmCheckOut. I've set the frmCheckOut to change the value of the parent Status field from "Available" to "Check Out."

I used the formula @SetDocField( $Ref; "Status"; "Check Out" ) in the input translation of the Status field in frmCheckOut. I placed the parent and response doc in the same view. My problem is: How do I change back the parent field to "Available" if the response doc is no longer in the view?

The view has this selection formula: select frmIn | frmCheckOut & dtReturn=""

So I didn't actually delete the response doc. I can't use querydocumentdelete and querydocumentundelete functions.

My main purpose is to change back the parent field if it doesn't have a response doc in the field. Can this be done? I've checked out a lot of forums and asked some programmers but my problem is still unsolved. Please help. Thank you very much.
I would have a look at the WebQuerySave event on the response form if I were you. You put in an agent name there, and the agent will run when the document is (about to be) saved. In that agent put some code that sets Status and the like on the parent document.

If that is not useable in your situation, you could put in a scheduled agent that runs on a fixed schedule, checking all main documents to see if they need to have their status fields changed.

Dig Deeper on Web Development for Lotus Notes Domino

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