如何获取Sharepoint文档库“名称”字段列出显示形式 [英] How to get a Sharepoint document library "Name" field to list display form

查看:113
本文介绍了如何获取Sharepoint文档库“名称”字段列出显示形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个SharePoint托管应用。我有一个名为Job和文档库的列表,名为Resume。
$


当我在Resume库中上传文档时,我将从Job列表中选择作业作为查找列。



我触发状态机工作流程,因为电子邮件会向一个人发送一个链接,该链接将重定向到作业详细信息。



我需要一个链接,列表显示表格应该打开与工作相关的简历。



怎么可能。?? b


如果有人知道解决方案,请与我分享。



先谢谢。  

I have created a SharePoint hosted app. In that I have a list called Job and document library called Resume.

When I upload a document in the Resume library I will select the job from Job list as a lookup column.

And I trigger a state machine workflow, in that an email will send a person with a link which will redirect to the job details.

I need a link in that list display form should open the resume which is related to the job.

How its possible.??

If anyone knows the solution please share with me.

Thanks in advance.  

推荐答案

嗨Lindhna,

Hi Lindhna,

在作业列表显示表单中,我们可以使用REST API查询恢复文档路径如下:

In the job list display form, we can use REST API to query the resume document path like below:

_spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('Resume')/Items?


select = FileRef / FileRef&
select=FileRef/FileRef&


expand = job / Title"
expand=job/Title"

然后我们可以生成一个html超级链接来显示列表表单中的链接。

Then we can generate a html hyper link to display the link in the list form.

这是一个关于从Jquery ajax调用REST API的演示:

Here is a demo about calling REST API from Jquery ajax:

SharePoint 2013:使用jQuery Ajax处理REST API

谢谢

最好的问候


这篇关于如何获取Sharepoint文档库“名称”字段列出显示形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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