2012-10-09 34 views
3

我不是CRM 2011中的新手,但我面临一个大问题......我发现了一些网络解决方案,使CRM中的一些评分/排名系统。当我在屏幕右上角的用户名旁边的顶部状态栏,功能区按钮栏上方看到星号时,我完全感到困惑。客户关系管理2011:全球JavaScript和状态栏中的按钮

enter image description here

当我点击这个按钮,我打开DIV与有关用户的一些信息,和分数他们。

  1. 在哪里可以把Java脚本功能(例如jQuery),可以在全球范围内执行?如何调用该函数,捕捉什么事件?我需要这个按钮/功能在CRM中的所有页面上都是活动的,就像这个一样。
  2. 这个地方在顶栏中的id是什么?我需要它从我的脚本中放置这个按钮。
+0

你能不能张贴一个链接?听起来像是一个不受支持的定制 –

+0

您是否在使用您下载和安装的解决方案寻求帮助,或者帮助重现与您见过的示例类似的东西? (在这种情况下,如何链接到实际的示例网页?) – AdamV

+0

我需要做出类似的东西。 @詹姆斯伍德:我想我从商店得到它,不知道;-) – CoYoTe

回答

6

你似乎是在谈论的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

+0

我试图按照你的建议,但对我来说,它不工作,隐藏按钮时不加载JavaScript文件。我不得不将该按钮添加到SubGrid/Grid/Dashboard部分,但仍然让我保留Settings区域。我也想隐藏按钮。你有什么想法吗? –

+0

“首饰”菜单在MS CRM 2013中不再可用:http://msdn.microsoft.com/en-us/library/gg309420.aspx但是,根据CRM Gamification Tool可用于MS CRM 2013的网站,你知道他们是如何把按钮放在那里吗? – shytikov

相关问题