自定义操作功能区共享点

问题描述

我需要在为Sharepoint Library开发的“库”选项卡下的自定义组中实现多个功能区按钮操作。 我们可以添加多个自定义操作脚本链接来使用javascript处理按钮事件吗?

    <Groups Id="Custom.Ribbon.Groups"> 
    <Group 
    Id="CustomGroupCommand" 
    Description="Contains 'remove status' items" 
    Title="Remove status messages" 
    Sequence="80" 
    Template="Ribbon.Templates.Flexible2"> 
    <Controls Id="Ribbon.custom.Controls"> 
        <Button 
            Id="Getdocument" 
            Command="alert1.Command" 
            Sequence="10" 
            Image16by16="/_layouts/images/warning16by16.gif" 
            Image32by32="/_layouts/images/CRIT_32.GIF" 
            Description="" 
            LabelText="Document Details" 
            Templatealias="o1"/> 
        <Button 
            Id="GetUser" 
            Command="alert2.Command" 
            Sequence="20" 
            Image16by16="/_layouts/images/warning16by16.gif" 
            Image32by32="/_layouts/images/CRIT_32.GIF" 
            Description="" 
            LabelText="Getuser" 
            Templatealias="o1"/> 
</Controls> 
</Group>
</CommandUIDeFinition>          
<CommandUIHandlers> 
    <CommandUIHandler 
        Command="alert1.Command" 
        CommandAction="javascript:GetDocument(); " />           
    <CommandUIHandler 
        Command="alert2.Command"  
        CommandAction="javascript: Getuser(); />
</CommandUIHandlers>        
</CommandUIExtension> 
</CustomAction> 
**<CustomAction 
    Id="Test1.Ribbon" Location="ScriptLink" ScriptSrc="_/path/Getdoc.js"/>
<CustomAction 
    Id="Test2.Ribbon" Location="ScriptLink" ScriptSrc="_/path/Getuser.js"/>** 
</Elements>

               

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)