我正在尝试从erpnext自定义网站获取数据和过滤数据。
当我获取doctype的字段时,我使用网址: - https://runga.rungamatteegroup.com/api/resource/Tea%20Invoice?fields=["name","grade","status","invpr","invsuf","estatename","dop"]
我得到的数据绝对正常。
当我通过过滤获取数据时,使用网址: - https://runga.rungamatteegroup.com/api/resource/Tea%20Invoice/?filters=[["Tea%20Invoice",%20"status",%20"=",%20"Sold%20&%20Delivered"]]
我得到的数据绝对正常。
当我尝试合并字段并在网址中过滤为查询字符串时,我无法将它们合并在一起。网址是: -
https://runga.rungamatteegroup.com/api/resource/Tea%20Invoice/?fields=["status","name","dop"]?filters=[["Tea%20Invoice",%20"status",%20"=",%20"Sold%20&%20Delivered"]]
我正在尝试这个来获取过滤数据的字段。因为获取所有数据然后过滤将非常繁忙。
答案 0 :(得分:0)
https://runga.rungamatteegroup.com/api/resource/Tea%20Invoice/?fields=["status","name","dop"]&filters=[["Tea%20Invoice",%20"status",%20"=",%20"Sold%20&%20Delivered"]]
这将起作用