Dynamics Axe 可附加查找
我有一个表,其中为字段设置了关系,可以进行查找。 在 validateWrite() 中,如果正在验证该字段,我将返回 true,这样就不会抛出任何错误。
现在我想允许用户添加“逗号”并再次下拉,选择另一个(或相同)值,但是选择时它会附加到原始值。
我尝试在 Modified() 方法中执行此操作,附加 this.Orig() 的文本,但是 this.Orig() 检索数据库中最后保存的记录,而不是当前值。
查询选择窗口就是一个例子,它是标准的 Axe 表单并允许这样做。
那么这可能吗?
I Have a table with a relationship set for a field which gives me the lookup.
Within the validateWrite(), i am returning true if that field is being validated, so that it doesn't throw any error.
Now I want to allow the user to add a "comma" and drop down again, selecting another (or same) value, however when selected it appends to the original value.
I have tried doing this in the Modified() method, appending the text of the this.Orig(), however this.Orig() retrieves the last saved record in the Database, and not the current value.
An example of this is the Query selection window, which is a standard Ax form and allows for this.
So is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该将
ReplaceOnLookup
属性设置为“否”,这将允许用户将查找值附加到该字段。You should set the
ReplaceOnLookup
attribute to No, which will allow the user to append lookup values to the field.