文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Unidac:解决“trying to modify read-only Field”问题!

Unidac:解决“trying to modify read-only Field”问题!

时间:2010-12-19  来源:毛小毛

当后台使用UniDAC+CDS,关联视图或自定义函数,为了数据一致性,有可能需要在前台界面上修改CDS相关的自定义函数输出的字段,即便是将 该字段设置为 readonly为false,或将其字段的 FieldDefs属性的attributes的faReadOnly去掉,系统也会抛出一个异常:trying to modify read-only Field。


解决问题很简单,将TUniQuery.Options.SetFieldsReadOnly为false即可。

查一下TUniQuery.Options.SetFieldsReadOnly的帮助,这样写道:

If True, dataset sets the ReadOnly property to True for all fields that do not belong to UpdatingTable or can not be updated. Set this option for datasets that use automatic generation of the update SQL statements only.

相关阅读 更多 +
排行榜 更多 +
《逃离鸭科夫》艾莉丝嘟嘟可替换宠物MOD

《逃离鸭科夫》艾莉丝嘟嘟可替换宠物MOD

下载
《逃离鸭科夫》轨道打击爆炸MOD

《逃离鸭科夫》轨道打击爆炸MOD

下载
《生化危机4:重制版》原神元素战争荧替换阿什莉MOD

《生化危机4:重制版》原神元素战争荧替换阿什莉MOD

下载