computeWithForm method

来源:互联网 发布:腾讯云数据库连不上 编辑:程序博客网 时间:2024/05/18 03:58

今天看agent的时候看到有一句代码:

TmpRC = NewDoc.ComputeWithForm(True, False)

很奇怪,重来没有见过,所以查了以下help.

official explanation: Validates a document by executing the default value, translation, and validation formulas, if any are defined in the document form.

大概的意思是:

它会将form里面的可以compute的field全部计算一次,根据field的所用到的formula.

所以这句代码的用处应该就是跟新一些文档中的计算域.

原创粉丝点击