你似乎是在谈论的CRM解决方案是这样的
http://www.wave-access.com/Public_en/ms_crm_gamification_product.aspx
这显然是不支持的。 但是,他们通过向功能区添加虚拟按钮来实现此功能,特别是“宝石菜单”。 此按钮命令链接到web资源中的JS功能。 该按钮始终隐藏,但JS文件始终加载。
应该指出的是,你的JS被加载到Main.aspx(根文件) 从那里它的注入HTML元素或JavaScript的问题到所需的框架。 (导航或内容)
这里是要添加到解决方案的RibbonDiffXML。
<RibbonDiffXml>
<CustomActions>
<CustomAction Id="Dummy.CustomAction" Location="Mscrm.Jewel.Controls1._children" Sequence="41">
<CommandUIDefinition>
<Button Id="Dummy" Command="Dummy.Command" Sequence="50" ToolTipTitle="$LocLabels:Dummy.LabelText" LabelText="$LocLabels:Dummy.LabelText" ToolTipDescription="$LocLabels:Dummy.Description" TemplateAlias="isv" />
</CommandUIDefinition>
</CustomAction>
</CustomActions>
<Templates>
<RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
</Templates>
<CommandDefinitions>
<CommandDefinition Id="Dummy.Command">
<EnableRules />
<DisplayRules>
<DisplayRule Id="Dummy.Command.DisplayRule.PageRule" />
</DisplayRules>
<Actions>
<JavaScriptFunction Library="$webresource:MyGlobal.js" FunctionName="Anything" />
</Actions>
</CommandDefinition>
</CommandDefinitions>
<RuleDefinitions>
<TabDisplayRules />
<DisplayRules>
<DisplayRule Id="Dummy.Command.DisplayRule.PageRule">
<PageRule Address="aaaa" />
</DisplayRule>
</DisplayRules>
<EnableRules />
</RuleDefinitions>
<LocLabels>
<LocLabel Id="Dummy.Description">
<Titles>
<Title languagecode="1033" description="Description" />
</Titles>
</LocLabel>
<LocLabel Id="Dummy.LabelText">
<Titles>
<Title languagecode="1033" description="Description" />
</Titles>
</LocLabel>
</LocLabels>
这正好在customizations.xml 您可能还需要通过增加应用丝带作为解决方案组件的根ImportExportXml元素的UI
你能不能张贴一个链接?听起来像是一个不受支持的定制 –
您是否在使用您下载和安装的解决方案寻求帮助,或者帮助重现与您见过的示例类似的东西? (在这种情况下,如何链接到实际的示例网页?) – AdamV
我需要做出类似的东西。 @詹姆斯伍德:我想我从商店得到它,不知道;-) – CoYoTe