突出显示 InfoPath 中已更改的字段
我可以通过将条件格式设置为“如果值不为空,则将此字段设置为黄色”来突出显示 InfoPath 中的“新”字段,
但我想要做的是在值更改时突出显示字段。也就是说,当它从 Web 服务中提取的值不是该字段的当前值时。
所讨论的表格有大量字段。所以我不想为每个字段使用某种标志字段。
I am able to highlight fields in InfoPath if they are "new" by setting the conditional formatting to "set this field to yellow if the value is not blank"
What I'm trying to do though is highlight fields when the value is changed. That is, when the value it pulled from the webservice is not the current value of the field.
The forms in question have a large number of fields. So I would prefer not to use some sort of flag field for each field.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
到目前为止我所做的,对于非重复字段,我为每个非重复字段添加了一个“标志字段”。
然后在字段上设置一条规则,当更改时将标志字段设置为“true”,并在字段上设置条件格式,如果标志字段为“true”,则将背景设置为黄色。
这可行,但需要表单上的每个字段都有一个标志字段。
还没有弄清楚如何处理重复字段。
确实找出了重复字段。
我们向重复的数据源对象添加了一个名为 IsDirty 的字段。然后在重复部分中遵循相同的过程,在字段上设置一条规则,即当值更改时,isdirty 设置为 true。然后是条件格式,如果 Isdirty==true,则将该字段的背景设置为黄色。
What I've done so far, for non-repeating fields, I've added a "flag field" for each non-repeating field.
Then set a rule on the field that when it's been changed to set the flag field to "true" and set conditional formatting on the field that if the flag field is "true" then set the background to yellow.
This works, but requires a flag field for each field on the form.
Haven't figured out how to do repeating fields yet.
Did figure out repeating fields.
We've added a field called IsDirty to the data source object that repeats. then followed the same process in the repeating sections, on the field set a rule that when the value's changedthe isdirty is set to true. Then a conditional formatting that if Isdirty==true, se the field's background to yellow.