在Dynamics CRM 2016中的自定义查找视图中找不到结果

时间:2018-09-11 08:46:26

标签: dynamics-crm customization lookup

我在CRM实体中编写了一个自定义查找过滤器。当CRM语言为英语时,一切正常。一旦将语言更改为瑞典语,查找过滤器就不会显示任何初始字符结果。

可能是什么问题?

fetchXml = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>"
                        + "<entity name='product'>"
                            + "<attribute name='name' />"
                            + "<attribute name='productid' />"
                            + "<attribute name='category' />"
                            + "<attribute name='externalid' />"
                            + "<order attribute='productnumber' descending='false' />"
                            + "<filter type='and'>"
                                + "<condition attribute='category' operator='in'>"
                                    + strValue
                                + "</condition>"
                                + "<condition attribute='type' operator='eq' value='1' />"
                            + "</filter>"
                        + "</entity>"
                    + "</fetch>";

        var layoutXml = "<grid name='resultset' object='1' jump='productid' select='1' icon='1' preview='1'>"
                                      + "<row name='result' id='productid'>"
                                          + "<cell name='name' width='300' />"
                                          + "<cell name='category' width='150' />"
                                          + "<cell name='productid' width='150' />"
                                      + "</row>"
                        + "</grid>";

        Xrm.Page.getControl("product").addCustomView(viewId, "product", viewDisplayName, fetchXml, layoutXml, true);

0 个答案:

没有答案
相关问题