2011-07-06 6 views
2

カスタムエンティティの "メイン"リボンにカスタムボタンを追加しようとしています!私はhttp://mscrmshop.blogspot.com/2011/06/how-to-start-dialog-from-application_08.htmlで説明されている例に従っています...しかし、私はまだ次のエラーが発生しています:リボンアイテム 'Sample.ave_student.MainTab.MyURL.CustomAction'はリボンコントロールid = 'Mscrm.HomepageGrid.ave_student.MainTab .Workflow.Controls '。CRM 2011 - アプリケーションリボンがインポート中にエラーが発生する

マイXML:

<ImportExportXml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
    <Entities></Entities> 
    <Roles></Roles> 
    <Workflows></Workflows> 
    <FieldSecurityProfiles></FieldSecurityProfiles> 
    <Templates /> 
    <RibbonDiffXml> 
    <CustomActions> 
     <CustomAction Id="Sample.ave_student.MainTab.MyURL.CustomAction" Location="Mscrm.HomepageGrid.ave_student.MainTab.Workflow.Controls._children" Sequence="41"> 
      <CommandUIDefinition> 
       <Button Id="Sample.ave_student.MainTab.MyURL.Button" Command="javascript.Command" LabelText="eID" ToolTipTitle="eID" ToolTipDescription="eID" TemplateAlias="o1" Image16by16="$webresource:ave_eid16x16" Image32by32="$webresource:ave_eid32x32" /> 
      </CommandUIDefinition> 
     </CustomAction> 
    </CustomActions> 
    <Templates> 
     <RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates> 
    </Templates> 
    <CommandDefinitions> 
     <CommandDefinition Id="javascript.Command"> 
      <EnableRules> 
       <EnableRule Id="Mscrm.Enabled"/> 
      </EnableRules> 
      <DisplayRules /> 
      <Actions> 
       <JavaScriptFunction Library="$webresource:ave_eidlauncher" FunctionName="launcheid"> 
       </JavaScriptFunction> 
      </Actions> 
     </CommandDefinition>  
    </CommandDefinitions> 
    <RuleDefinitions> 
     <TabDisplayRules /> 
     <DisplayRules /> 
     <EnableRules /> 
    </RuleDefinitions> 
    <LocLabels /> 
    </RibbonDiffXml> 
    <EntityMaps /> 
    <EntityRelationships /> 
    <OrganizationSettings /> 
    <optionsets /> 
    <Languages> 
    <Language>1033</Language> 
    <Language>1036</Language> 
    </Languages> 
</ImportExportXml> 

は私が間違って何をしているのですか?

種類よろしく、

フレデリック

答えて

4

アプリケーションリボンは、例で編集されています。アプリケーションリボンXMLは、すべてのエンティティにカスタマイズを適用します。そのため、作者は、エンティティに明示的に名前を付ける代わりに{!EntityLogicalName}を使用しました。単一のエンティティにボタンを追加する場合は、エクスポートする前にアプリケーションリボンではなくエンティティをソリューションに追加する必要があります。

このarticleが役立ちます。

関連する問題