Category Archives: Computewithform

>are your code affected by the 8.5.2 computewithform bug and how to fix it

>There is a bug in Domino 8.5.2 that affects the use of Computewithform. If you are using computewithform in your code you should read this. There is no alarm because there is a easy fix to the problem and I don’t think that many will be affected. IBM is working on a HotFix for this but it’s easy to fix so that many will not need it.

If you use computewithform directly after you have fetched a document object then you are affected but If you do something with the backend document before you do the computewithform.
there is no problem.
So check if you application is affected search the code for computewithform( and check if you do a replaceitemvalue, getitemvalue or other manipulation with the document.
But if your code look like this
set doc=db.getdocumentbyunid(UNID)
Call doc.computewithform(false,false)
Then just change the code to
set doc=db.getdocumentbyunid(UNID)
Call doc.replaceitemvalue(“Form”,doc.getitemvalue(“Form”))
Call doc.computewithform(false,false)
And you have fixed the bug so simple.
Enhanced by Zemanta