FileMaker - 如何在屏幕上列出不同的值?
我希望在另一个字段中列出重复字段的不同值(在浏览模式下)。情况如下:
我有一个包含国家/地区名称的字段。该字段中的国家/地区名称可能会重复,因此当使用“列表”功能时,我会得到类似“法国、法国、法国、德国、德国、匈牙利”的内容。 如何创建一个字段来列出我的国家/地区字段中的所有值,但将其分组为“法国、德国、匈牙利”?
如果我可以直接使用 SQL 查询来干扰 FileMaker 数据库,我将使用 GROUP BY 语句。
I would like to have the distinct values of a repeating field listed in another field (in browse mode). The case is as follows:
I have a field that contains country names. The country names in this field may repeat themselves, thus when using the "List" function I get something like "France, France, France, Germany, Germany, Hungary".
How can I create a field that lists all the values from my country field, but has it grouped as "France, Germany, Hungary"?
In the case I could directly use a SQL query to interfere with the FileMaker databse I would use the GROUP BY statement.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要对每条记录中的所有值进行汇总,请执行以下操作:
ValueListItems ( Get(FileName) ; "Countries" )
如果您想查找仅当前记录的值:
如果您希望列表随着重复字段值的更改而更新,请确保不存储该字段的计算结果。
To make a summary of all the values across every record, do as follows:
Set the calculation to type 'Text' and with the following code:
ValueListItems ( Get(FileName) ; "Countries" )
If you'd like to find the value for only the current record:
If you'd like the list to update as the repeating field value changes, make certain that you Do Not Store Calculation Results for the field.