I need to open every document in a view on the screen in turn, and then immediately save it again.
I think this must use a notesuiview, but I can’t get this to work.
Anybody point me in the right direction ?
Thanks
Victor
I need to open every document in a view on the screen in turn, and then immediately save it again.
I think this must use a notesuiview, but I can’t get this to work.
Anybody point me in the right direction ?
Thanks
Victor
Subject: How to open all documents in a view
No you can simply use the NotesView class do that however adding my two cents here…I’ve tried it with pretty bad results (this was a couple years ago, so may be the problem was fixed). It would open the document, refresh (which is what I wanted to do), and uidoc.save it. It worked for a dozen or so documents and then the agent would zonk out. I have to run it again, and again, and again…I finally gave up and just rolled up my sleeves and had to do what I needed to do from script.
Mike Robinson
Subject: How to open all documents in a view
What are you actually trying to accomplish by doing this? Chances are that there is a back-end way to pull it off.
Subject: RE: How to open all documents in a view
I agree; I’ll bet this is an attempt at finding the most difficult method possible of reinventing @command([toolsrefreshalldocs]).
Subject: RE: How to open all documents in a view
I am wanting to run this on the Domino Directory.
I have an agent which appends information onto the FullName field, which works fine for all records, but with the side-affect that the content of this field is subsequently in fully quallified format (CN=Vic/OU=MyArea…)
When I manually open a doc which has been processed and then immediately save it, the format of this field is corrected.
I can see that there is a field translation formula running on the FullName field, and this is the only way I can get it to work.
I have tried using ComputeWithForm, but this does not appear to work.
So, all I need is a little bit of LS to open each doc in turn, refresh it and then save it.
This will be a one-off operation.
Cheers
V
Subject: The contents of the fullname field (and all Names fields) are ALWAYS in fully-distinguished canonical format.
I’m guessing that by “the format of this field is corrected” you mean fully-distinguished abbreviated. (eg: Vic/OU=MyArea.) Perhaps you’re confused about how Names fields work. They store fully-qualified canonical names like CN=Vic/OU=MyArea, but the Names field object in a form always displays fully-distinguished abbreviated.
Therefore, I’m wondering if the solution to your issue is to leave it alone, since it’s already correct? What makes you think the format is wrong?