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
Related Q&A from Jens Bruntt
Web Development expert Jens Bruntt offers suggestions on how to programmatically copy and hide attachments in Lotus Notes rich-text fields. Continue Reading
Learn about an add-on Domino developers can use to programmatically edit rich-text field tables from within the Lotus Notes client. Continue Reading
Web Development expert Jens Bruntt outlines three potential issues to consider when troubleshooting Lotus Notes Domino tabbed table problems. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.