2017-09-16 51 views

回答

1

解決方案:

  • 首先創建一個視圖,並得到他的GUID,保存記事本,並刪除 視圖。
  • 創建一個解決方案,導入您從中刪除「快速查找視圖」並將其導出的選定實體。打開Customization.xml並將XML添加到以下路徑。

XML路徑:ImportExportXml/Entities/Entity/SavedQueries

<savedquery> 
     <IsCustomizable>1</IsCustomizable> 
     <CanBeDeleted>0</CanBeDeleted> 
     <isquickfindquery>1</isquickfindquery> 
     <isprivate>0</isprivate> 
     <isdefault>1</isdefault> 
     <returnedtypecode>Entitytypecode</returnedtypecode> 
     <savedqueryid>View Guid</savedqueryid> 
     <layoutxml> 
      <grid name="resultset" object=" Entitytypecode " jump="FieldName" select="1" icon="1" preview="1"> 
      <row name="result" id="Entity Primary Key "> 
       <cell name="name" width="300" /> 
       <cell name="createdon" width="125" /> 
      </row> 
      </grid> 
     </layoutxml> 
     <querytype>4</querytype> 
     <fetchxml> 
      <fetch version="1.0" mapping="logical"> 
      <entity name="Entity Name"> 
       <attribute name="Entity Primary Key" /> 
       <attribute name="name" /> 
       <attribute name="createdon" /> 
       <filter type="and"> 
       <condition attribute="statecode" operator="eq" value="0" /> 
       </filter> 
       <filter type="or" isquickfindfields="1"> 
       <condition attribute="name" operator="like" value="{0}" /> 
       </filter> 
      </entity> 
      </fetch> 
     </fetchxml> 
     <IntroducedVersion>1.0</IntroducedVersion> 
     <LocalizedNames> 
      <LocalizedName description="Quick Find Active" languagecode="1033" /> 
     </LocalizedNames> 
     </savedquery> 

保存文件。 上傳解決方案併發布它。

+0

最佳實踐:先備份系統並知道如何恢復它,並且只在沙箱系統上進行開發。作爲輔助保護措施,請在開始使用系統之前導出並備份默認解決方案。通過這種方式,如果您開始在解決方案文件中嘗試更改XML,那麼您需要將原始配置作爲參考,以備需要將其部分恢復或僅恢復整個配置。 – Eccountable

+0

在進行解決方案更改之前,我會進行備份。 很多感謝您的建議。 –

+0

如果更改此行 0 轉換爲 1 該視圖不會被刪除 –