I was wonder if some can show me how to have a lotus script find a form in a view with a specific field value that matches a field in the current document and then take information from two fields in the current document and fill in the similar fields in the found document then save the edited document. I tried @functions and it didn’t work and trying to use script but get varient errors. Can somene show me haow to do this in lotuscript. I am trying to make the change in the backround with out opening the found form. any insight is appreciated. I am useing R703
Subject: RE: using lotuscript to find a document and update its field from current document using a button in form
You shouldn’t expect anyone to just write the code for you for free, but basically you need a NotesView object that points to a view that’s sorted by the field you want to find. GetDocumentByKey method will locate the desired document. Make your changes in the NotesDocument object using the ReplaceItemValue method. Use the NotesDocument.Save method to save. Read about each of these in the Designer help and you’ll find example code. It’s not hard.
Subject: RE: using lotuscript to find a document and update its field from current document using a button in form
andre i guess i worded it wrong I was wondering if what I wanted to do was possable were to start. your answer gave me what I was looking for and now have a proper starting point. I will look up these functions and example code and put the it together. again thanks for the information. new to scripting.
Subject: RE: using lotuscript to find a document and update its field from current document using a button in form
Tony, I agree with Andre (which I do most of the time, except when he favours DXL and I prefer C API functions) and I did hasitate whether or not I should reply on your post. But since it was not that complex and I wrote similar things many time, I did bother to enter a few lines of code.
Please do not enter the same post twice; you will find my sample in your other similar post.
Subject: RE: using lotuscript to find a document and update its field from current document using a button in form
Rob thanks for the assist. I tried to build a script but it was full of errors. I accidently selected post twice. I had a follow up question that was posted in the other entry maybe you could tell me what is wrong. Again thanks