{"id":812,"date":"2024-10-23T17:35:36","date_gmt":"2024-10-23T09:35:36","guid":{"rendered":"https:\/\/dev-d365fo.pantheonsite.io\/?p=812"},"modified":"2024-10-23T17:35:38","modified_gmt":"2024-10-23T09:35:38","slug":"how-to-create-a-filter-on-display-method-using-view-in-d365fo","status":"publish","type":"post","link":"https:\/\/dev-d365fo.pantheonsite.io\/how-to-create-a-filter-on-display-method-using-view-in-d365fo\/","title":{"rendered":"\u5982\u4f55D365FO\u4f7f\u7528\u89c6\u56fe\u4f7fDisplay\u65b9\u6cd5\u53ef\u4ee5\u88ab\u8fc7\u6ee4(How to create a filter on display method using view in D365FO)"},"content":{"rendered":"\n

\u57fa\u4e8eDisplay\u7684\u65b9\u6cd5\u7684\u8868\u5355\u5b57\u6bb5\u4e0d\u53ef\u8fc7\u6ee4\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u5ba2\u6237\u5e0c\u671b\u8fd9\u4e9b\u5b57\u6bb5\u53ef\u8fc7\u6ee4\uff08Filter on display method\uff09\u3002\u6709\u4e24\u79cd\u65b9\u6cd5\u53ef\u4ee5\u4f7f\u663e\u793a\u5b57\u6bb5\u53ef\u8fc7\u6ee4\uff0c\u6211\u4eec\u5c06\u5728\u672c\u535a\u5ba2\u4e2d\u4ec5\u89e3\u91ca\u6700\u4f73\u65b9\u6cd5\uff08\u4f7f\u7528\u6700\u4f73\u5b9e\u8df5\uff09\u3002<\/p>\n\n\n\n

\u5728\u6211\u4eec\u7684\u6848\u4f8b\u4e2d\uff0c\u4f9b\u5e94\u5546\u540d\u79f0\u5b57\u6bb5\u662f\u4e00\u4e2a\u57fa\u4e8eDisplay\u65b9\u6cd5\u7684\u5b57\u6bb5\uff0c\u5e76\u4e14\u4e0d\u53ef\u8fc7\u6ee4\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

1.\u521b\u5efa\u4e00\u4e2a\u89c6\u56fe\uff1a<\/p>\n\n\n\n

\u2013 metadata: \u6211\u4eec\u9700\u8981\u83b7\u53d6\u5c06\u66ff\u6362\u663e\u793a\u5b57\u6bb5\u7684\u5b57\u6bb5\u4ee5\u53ca\u5c06\u7528\u4e8e\u4e0e\u8868\u5355\u6570\u636e\u6e90\u521b\u5efa\u5173\u7cfb\u7684\u5b57\u6bb5\u7684\u8868\u3002\uff08\u5728\u6211\u4eec\u7684\u4f8b\u5b50\u4e2d\u662f VendTable \u548c DirPartyTable\uff09<\/p>\n\n\n\n

\u2013 fields: \u5c06\u66ff\u6362\u663e\u793a\u5b57\u6bb5\u7684\u5b57\u6bb5\u548c\u6211\u4eec\u5c06\u7528\u4e8e\u4e0e\u8868\u5355\u6570\u636e\u6e90\u521b\u5efa\u5173\u7cfb\u7684\u5b57\u6bb5\u3002\uff08\u5728\u6211\u4eec\u7684\u4f8b\u5b50\u4e2d\u662f Name \u548c AccountNum\uff09<\/p>\n\n\n\n

\"\"
\u89c6\u56fe<\/figcaption><\/figure>\n\n\n\n

2.\u5728 FormDatasource\uff08\u6211\u4eec\u7684\u6848\u4f8b PurchLine\uff09\u8868\u4e0a\uff0c\u6211\u4eec\u9700\u8981\u6dfb\u52a0\u4e00\u4e2a\u4e0e\u6211\u4eec\u521b\u5efa\u7684 VendTableName \u89c6\u56fe\u7684\u65b0\u5173\u7cfb\u3002<\/p>\n\n\n\n

\"\"
\u6dfb\u52a0\u4e0e\u89c6\u56fe\u7684\u65b0\u5173\u7cfb<\/figcaption><\/figure>\n\n\n\n

3. \u5728\u6211\u4eec\u7684\u8868\u5355\u4e0a\u6dfb\u52a0\u89c6\u56fe VendTableName \u4f5c\u4e3a\u6570\u636e\u6e90\uff0c\u5e76\u5728 VendTableName FormDatasouce \u5c5e\u6027\u4e0a\u4e0e\u4e3b\u6570\u636e\u6e90\uff08PurchLine\uff09\u521b\u5efa\u8fde\u63a5\u3002<\/p>\n\n\n\n

\"\"
\u6dfb\u52a0\u89c6\u56fe VendTableName \u4f5c\u4e3a\u6570\u636e\u6e90<\/figcaption><\/figure>\n\n\n\n
\"\"
create a join with the primary datasource<\/figcaption><\/figure>\n\n\n\n

4. \u6700\u540e\u4e00\u6b65\u662f\u5728\u8868\u5355\u7f51\u683c\u4e0a\u6dfb\u52a0\u6211\u4eec\u60f3\u8981\u7684\u89c6\u56fe\u6570\u636e\u5b57\u6bb5\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

\u8f93\u51fa\u7ed3\u679c:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

\u57fa\u4e8eDisplay\u7684\u65b9\u6cd5\u7684\u8868\u5355\u5b57\u6bb5\u4e0d\u53ef\u8fc7\u6ee4\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u5ba2\u6237\u5e0c\u671b\u8fd9\u4e9b\u5b57\u6bb5\u53ef\u8fc7\u6ee4\uff08Filter on display method\uff09\u3002\u6709\u4e24\u79cd\u65b9\u6cd5\u53ef\u4ee5\u4f7f\u663e\u793a\u5b57\u6bb5\u53ef\u8fc7\u6ee4\uff0c\u6211\u4eec\u5c06\u5728\u672c\u535a\u5ba2\u4e2d\u4ec5\u89e3\u91ca\u6700\u4f73\u65b9\u6cd5\uff08\u4f7f\u7528\u6700\u4f73\u5b9e\u8df5\uff09\u3002 \u5728\u6211\u4eec\u7684\u6848\u4f8b\u4e2d\uff0c\u4f9b\u5e94\u5546\u540d\u79f0\u5b57\u6bb5\u662f\u4e00\u4e2a\u57fa\u4e8eDisplay\u65b9\u6cd5\u7684\u5b57\u6bb5\uff0c\u5e76\u4e14\u4e0d\u53ef\u8fc7\u6ee4\u3002 1.\u521b\u5efa\u4e00\u4e2a\u89c6\u56fe\uff1a \u2013 metadata: \u6211\u4eec\u9700\u8981\u83b7\u53d6\u5c06\u66ff\u6362\u663e\u793a\u5b57\u6bb5\u7684\u5b57\u6bb5\u4ee5\u53ca\u5c06\u7528\u4e8e\u4e0e\u8868\u5355\u6570\u636e\u6e90\u521b\u5efa\u5173\u7cfb\u7684\u5b57\u6bb5\u7684\u8868\u3002\uff08\u5728\u6211\u4eec\u7684\u4f8b\u5b50\u4e2d\u662f VendTable \u548c DirPartyTable\uff09 \u2013 fields: \u5c06\u66ff\u6362\u663e\u793a\u5b57\u6bb5\u7684\u5b57\u6bb5\u548c\u6211\u4eec\u5c06\u7528\u4e8e\u4e0e\u8868\u5355\u6570\u636e\u6e90\u521b\u5efa\u5173\u7cfb\u7684\u5b57\u6bb5\u3002\uff08\u5728\u6211\u4eec\u7684\u4f8b\u5b50\u4e2d\u662f Name \u548c AccountNum\uff09 2.\u5728 FormDatasource\uff08\u6211\u4eec\u7684\u6848\u4f8b PurchLine\uff09\u8868\u4e0a\uff0c\u6211\u4eec\u9700\u8981\u6dfb\u52a0\u4e00\u4e2a\u4e0e\u6211\u4eec\u521b\u5efa\u7684 VendTableName \u89c6\u56fe\u7684\u65b0\u5173\u7cfb\u3002 3. \u5728\u6211\u4eec\u7684\u8868\u5355\u4e0a\u6dfb\u52a0\u89c6\u56fe VendTableName \u4f5c\u4e3a\u6570\u636e\u6e90\uff0c\u5e76\u5728 VendTableName FormDatasouce \u5c5e\u6027\u4e0a\u4e0e\u4e3b\u6570\u636e\u6e90\uff08PurchLine\uff09\u521b\u5efa\u8fde\u63a5\u3002 4. \u6700\u540e\u4e00\u6b65\u662f\u5728\u8868\u5355\u7f51\u683c\u4e0a\u6dfb\u52a0\u6211\u4eec\u60f3\u8981\u7684\u89c6\u56fe\u6570\u636e\u5b57\u6bb5\u3002 \u8f93\u51fa\u7ed3\u679c:<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[10],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/dev-d365fo.pantheonsite.io\/wp-json\/wp\/v2\/posts\/812"}],"collection":[{"href":"https:\/\/dev-d365fo.pantheonsite.io\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev-d365fo.pantheonsite.io\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev-d365fo.pantheonsite.io\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dev-d365fo.pantheonsite.io\/wp-json\/wp\/v2\/comments?post=812"}],"version-history":[{"count":14,"href":"https:\/\/dev-d365fo.pantheonsite.io\/wp-json\/wp\/v2\/posts\/812\/revisions"}],"predecessor-version":[{"id":855,"href":"https:\/\/dev-d365fo.pantheonsite.io\/wp-json\/wp\/v2\/posts\/812\/revisions\/855"}],"wp:attachment":[{"href":"https:\/\/dev-d365fo.pantheonsite.io\/wp-json\/wp\/v2\/media?parent=812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev-d365fo.pantheonsite.io\/wp-json\/wp\/v2\/categories?post=812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev-d365fo.pantheonsite.io\/wp-json\/wp\/v2\/tags?post=812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}