dynamics crm - CRM 2011 - addCustomView on Google Chrome -
i have been on crm 2011 project uses lot of custom views.
i figured out lookup custom views working in internet explorer. when try using google chrome (version 51.0.2704.84 m) simple not work.
i googled without luck.
is aware how solve issue?
i'm sure many of have faced same problem.
here code. emphasize works charm in ie.
var viewid = "{1dfb2b35-b07c-44d1-868d-258deeab88e1}"; var entityname = "tz_tipodefrete"; var viewdisplayname = "tipos de frete disponíveis"; var fetchxml = "<fetch distinct='false' mapping='logical' output-format='xml-platform' version='1.0'>" + "<entity name='tz_tipodefrete'>" + "<attribute name='tz_name'/>" + "<order descending='false' attribute='tz_ordem'/>" + "<filter type='and'>"; if (filtrar) fetchxml = fetchxml + "<condition attribute='tz_name' value='cliente retira e instala no ct' operator='ne'/>"; fetchxml = fetchxml + "<condition attribute='statecode' value='0' operator='eq'/>" + "</filter>" + "</entity>" + "</fetch>"; // build grid layout var layoutxml = "<grid name='resultset' object='1' jump='tz_name' select='1' icon='1' preview='1'>" + "<row name='result' id='tz_tipodefreteid'>" + "<cell name='tz_name' width='600' />" + "</row>" + "</grid>"; xrm.page.getcontrol("tz_tipodefrete").addcustomview(viewid, entityname, viewdisplayname, fetchxml, layoutxml, true); //desabilita opção usuário trocar de view. provável que pare de funcionar na migração para versão 2015 document.getelementbyid("tz_tipodefrete").setattribute("disableviewpicker", "1");
have tried taking brackets off guid? ex. var viewid = "1dfb2b35-b07c-44d1-868d-258deeab88e1"; in situations, helps.
Comments
Post a Comment