自定义列表表单和功能区 [英] Custom List Form and Ribbon

查看:90
本文介绍了自定义列表表单和功能区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了一个带有Web部件的应用程序页面,该页面可自定义列表的编辑/显示/新形式.

i have build an application page with a web part that customize the edit/display/new form of my list.

我尝试管理功能区,并且能够向应用程序页面添加一些代码以使其显示:

I try to manage the ribbon, and i was able to add some code to the application page to make it appear :

currentRibbon.Minimized = false;
currentRibbon.MakeTabAvailable("Ribbon.ListForm.Edit");
currentRibbon.SetInitialTabId("Ribbon.ListForm.Edit", string.Empty);

问题是,功能区显示的选项卡很好,但是它被禁用并且具有比普通功能区显示的更多的动作.

The problem, the ribbon display the good tab, but is disabled and have more action that the normal one display.

上下文功能区应该在哪里管理?应用程序页面还是Webpart?

The contextual Ribbon should be manage by where?  The application page or the webpart?

我该如何使我的动作进入功能区?任何地方都有示例代码吗?

Ho can i enable my actions into the ribbon?  Any sample code anywhere?

谢谢

推荐答案

更多信息,我一直在搜索

More infos, i keep searching

h t t p s://www.add-in-express.com/docs/sharepoint-ribbon-designer-tips.php#showing

h t t p s : / / w ww.add-in-express.com/docs/sharepoint-ribbon-designer-tips.php#showing

",上面的代码在服务器场解决方案中也无法很好地工作:
已选择,但没有被激活. "

"The code above doesn't work very well in farm solutions, either: the tab gets
selected but it doesn't get activated. "

这正是我遇到的问题.

(从url中删除空格,我不知道为什么我不能发布url并一直说我不是验证用户)

(remove the space from the url, i dont know why i cant post url it keep saying that im not a validate user)


这篇关于自定义列表表单和功能区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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