I have two symptoms that I suspect add up to a single problem.
A form contains a subform, and the QuerySave event of the subform may set values in a particular field (multi-value, text - call it field “A”).
For some documents only, two things occur:
-
On saving the document, the error “Only plain text can be used in this type of field” occurs. It displays four times, the second and fourth preceded by the words "Notes error: "
-
Field A has lost its summary flag. On the example I am looking at the field size is around 4KB
As a stopgap I have added a line to the end of the QuerySave script as follows:
Set item = doc.GetFirstItem(“A”)
.
.
.
item.IsSummary = True
When I save with debug turned on the errors appear only AFTER all script has finished running.
I did a search through the design using TeamStudio Configurator, and there is no mention (other than the recently-added one listed above) of “IsSummary” anywhere in the code
So my question is - Why is the SUMMARY flag getting lost, and is it related to the errors being displayed? Any in any case, how can I correct it?