I have an agent that is taking data from a RDBMS and stuffing it into Notes. During the import I want to set a flag on a document so I can use it in a view. I started out using the following:
Call doc.ReplaceItemValue(“RGAFlag”, True)
When I referenced RGAFlag in a view I noticed it was blank. Perplexed, I ran it again and when I checked the variables in the debugger, the value for RGAFlag is “” after this line of code executed. The constant True, of course, evaluates to -1. If I use this instead, it sets the field as expected:
Call doc.ReplaceItemValue(“RGAFlag”, -1)
I obviously have a workaround, but has anyone else seen this, and can anyone explain what in the world is going on? Why is it not putting the value of True into the field?
Thanks,
Charles