在SharePoint中创建一个下拉菜单 [英] Create a drop down menu in SharePoint

查看:180
本文介绍了在SharePoint中创建一个下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在创建要批准的工作流.我正在使用Visual Studio 2008来开发工作流.当我们要编辑要批准或拒绝的表单时,我想在SharePoint任务中创建一个批准下拉菜单.并被拒绝.

Hi
I am creating the workflow for approval.And I am using visual studio 2008 for developing workflow.I want to create a the approval drop down menu in the SharePoint task when we want to edit form for approval or rejected it come in drop down menu Approval and Rejected.

If any buddy know the solution for that plz write it.

推荐答案

您可以使用自定义操作"将新菜单项添加到ECB.请参见上的添加编辑控制块菜单项"部分. > MSDN页面.

您可能想做这样的事情(这在SharePoint 2007和2010中都有效)

You can use "Custom Actions" to add a new menu item to the ECB. See the "Add an Edit Control Block Menu Item" section on this MSDN page.

You''d probably wanna do something like this (This works both in SharePoint 2007 and 2010)

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="Task.Approve"

                RegistrationType="List"

                RegistrationId="107"

                ImageUrl="Url of image of your menu item if any"

                Location="EditControlBlock"

                Title="Approve">
    <UrlAction Url="Url of page to load when the menu item is clicked"/>
  </CustomAction>
</Elements>


这篇关于在SharePoint中创建一个下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆