list Sharepoint 2010 - 自定义列表 - 使列项目可点击和可编辑
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10090687/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Sharepoint 2010 - Custom List - Make Column Item clickable and editable
提问by user1324283
I created a custom list with two columns: Name and City.
我创建了一个包含两列的自定义列表:名称和城市。
I want to make the items in column City clickable. Meaning, if I click on item 'Chicago' the view item form directly pops up which is usually accessible via "View Item".
我想让列 City 中的项目可点击。意思是,如果我单击“Chicago”项,则直接弹出查看项表单,通常可通过“查看项”访问。
I have seen this before, but don't know how to do that. Any ideas?
我以前见过这个,但不知道如何做到这一点。有任何想法吗?
回答by CBono
SharePoint allows you to do this with the Title
column, which is a default column for any list. What you want to do is set up your list and reuse the "Title" column for your "City" column. This is as simple as going to your List Settings screen and renaming the column (from the List Settings screen, click the "Title" column, then change the Column Name to "City" and save your changes).
SharePoint 允许您对Title
列执行此操作,该列是任何列表的默认列。您想要做的是设置您的列表并为您的“城市”列重复使用“标题”列。这就像转到“列表设置”屏幕并重命名列一样简单(从“列表设置”屏幕,单击“标题”列,然后将列名称更改为“城市”并保存更改)。
Next, set up a view for your list (modify the default one or create a new one). On the Edit View screen, one of your column choices will be "City (linked to item with edit menu)". Make sure that column is included in your view and you should have what you want.
接下来,为您的列表设置一个视图(修改默认视图或创建一个新视图)。在“编辑视图”屏幕上,您的列选项之一将是“城市(链接到带有编辑菜单的项目)”。确保该列包含在您的视图中,并且您应该拥有您想要的内容。
回答by user3543825
Hi For opening the view list details from the city ..You have to open the list view webpart in sharepoint designer select the list item from where you want to enable your view details right click there and tick the option for linking ti the list .
嗨,要从城市打开视图列表详细信息..您必须在 sharepoint 设计器中打开列表视图 webpart,选择要启用查看详细信息的列表项,右键单击该列表项,然后勾选链接列表的选项。