Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

sharepoint - 如何从共享点列表项链接到文档库中的文件夹?(How to link to a folder in document library from sharepoint list item?)

Background:

(背景:)

I have an items on the sharepoint list.

(我在共享点列表上有一个项目。)

I also have a corresponding folder in a document library that contains documents about this item.

(我在文档库中还有一个对应的文件夹,其中包含有关此项目的文档。)

I want to be able to get to this folder straight from the item properties.

(我希望能够直接从项目属性进入此文件夹。)

I have tried to create a lookup column containing folder ID, but that doesn't help cause folder is not a type and it just doesn't work.

(我试图创建一个包含文件夹ID的查找列,但这无济于事,因为Folder不是一种类型,而只是行不通。)

Other solution would be to create link column but if I will create it staticly - after creating alternative mapping (and getting to the page from the internet for example) it won't work.

(其他解决方案是创建链接列,但是如果我将其静态创建-创建替代映射(例如,从Internet进入页面)后,它将无法正常工作。)

(so solution posted here won't work for me).

((因此此处发布的解决方案对我不起作用)。)

I want to create this link from sharepoint workflow.

(我想从SharePoint工作流中创建此链接。)

I have a custom action that can return any info about the folder I want (ID, URL etc).

(我有一个自定义操作,可以返回有关所需文件夹(ID,URL等)的任何信息。)

Question:

(题:)

How to link from sharepoint list item to a folder in document library?

(如何从共享点列表项链接到文档库中的文件夹?)

  ask by kyrisu translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I would personally try to avoid using folders.

(我个人会尝试避免使用文件夹。)

In numerous instance I've found they arn't worth the trouble and the key with SharePoint is not to reproduce the typical folder hierarchy that you'll find on a file system.

(在许多实例中,我发现它们毫无用处,而SharePoint的关键是不重现文件系统上常见的文件夹层次结构。)

Break away from that mess and do it the SharePoint way and put the documents straight into the list and use views and metadata to break up the documents into manageable groupings.

(摆脱混乱,以SharePoint方式进行处理,将文档直接放入列表中,并使用视图和元数据将文档分为可管理的分组。)

That said, a folder is it's own content type and it works perfectly well in a lookup column.

(也就是说,文件夹是它自己的内容类型,并且在查找列中可以很好地工作。)

You have to reference the list item id for the folder of course.

(您必须参考该文件夹的列表项ID。)

I just created a folder in a standard document library, added a lookup column to a custom list and successfully referenced the folder in a new item.

(我刚刚在标准文档库中创建了一个文件夹,在自定义列表中添加了查找列,并在新项目中成功引用了该文件夹。)

When I click the folder lookup then I get taken to the folder item, which contains an "Open" link that takes me to the documents contained within the folder.

(当我单击文件夹查找时,我将转到文件夹项,其中包含“打开”链接,该链接将我带到该文件夹??中包含的文档。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...