日安,
我正在尝试为“编辑属性”表单功能区添加自定义操作按钮,但该按钮仍未显示。该解决方案将部署在服务器场级别和自定义列表中(本例中id为10001 )
<CustomAction Id="DocumentExchange"
Location="CommandUI.Ribbon.EditForm"
Title="element title"
RegistrationType="List"
RegistrationId="10001">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.DocLibListForm.Edit.Actions.Controls._children">
<Button
Id="ExchangeDocumentButton"
Sequence="1"
Command="ExchangeDocument"
LabelText="label text"
Image32by32="/_layouts/images/myIcon.png"
TemplateAlias="o2"
/>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="ExchangeDocument"
CommandAction="javascript:alert('Not implemmented functionality call');"
/>
</CommandUIHandlers>
</CommandUIExtension>
我想知道问题是否一定不是沙箱级别的部署解决方案,或者站点中缺少一些额外的解决方案配置。
非常感谢您的帮助。
发布于 2011-01-31 21:48:10
我重新创建了您的示例,该按钮显示在自定义文档库的编辑表单上,RegistrationId为10001。所以看起来没什么问题。
在我的测试环境中,自定义文档库和自定义操作位于一个项目和一个功能部件中,我将该功能的范围限定为Site。你是怎么组织这件事的?
有一件事:在xml中遗漏了CustomAction的结束标记。这是否存在于您的解决方案中?
您的解决方案中是否存在可能导致异常或其他问题的其他代码?
你好,安妮塔
发布于 2011-01-30 21:07:11
文档库的RegistrationId为101,你能试试吗?
希望这对你有帮助,安妮塔
https://stackoverflow.com/questions/4838326
复制相似问题