@deletefield - not working?

Hi there,

I have a number of fields on a form for processing while the form is open and also for closing processing (setting readers fields etc) but then I want to delete them. They’re a mixture of editable, computed, computed when composed. When I use either “FIELD xxx := @DeleteField” or “@Set(“xxx”;@DeleteField)” in the QuerySave or QueryClose event the fields still remain on the saved document and in the case of the computed ones with values as well. The only way I’ve found of deleting them is by using LotusScript in the QueryClose event using RemoveItem and then doing a doc.save … am I missing something? Shouldn’t @DeleteField delete the field? Or can it not be used in the QuerySave/Close events? It wouldn’t be so bad if it at least cleared the field to “” but for computed fields it doesn’t. Any ideas?

Thanks, Derek

Subject: @deletefield - not working?

@DeleteField is working perfectly, then the fields are being re-added to the document by the form. The reason the LS in the QueryClose is working is because it’s looking at the back-end document only and ignoring the form. Formula Language does not/can not separate the UI document from the back-end document.

Subject: @deletefield - not working?

Derek,

This is wrong… @Set(“xxx”;@DeleteField)

It should be… @SetField(“xxx”;@DeleteField)

Ken