简体   繁体   English

sharepoint列表/文档库栏目中如何添加脚本

[英]How to Add a Script in column of sharepoint list / document library

I need a code in sharepoint online, that triggers a script to open a file, where the location of file in local computer.我需要 sharepoint 在线代码,触发脚本打开文件,文件在本地计算机中的位置。 In my opinion, this code like button/image/hyperlink/etc, in the background is Javascript/JQUERY (event click) and this button will be placed in a specific column (in the example below the name of column is "FileLocation") in sharepoint list / sharepoint document library.在我看来,像按钮/图像/超链接/等这样的代码,在后台是 Javascript/JQUERY(事件点击)并且这个按钮将被放置在一个特定的列中(在下面的例子中,列的名称是“FileLocation”)在 sharepoint 列表 / sharepoint 文档库中。 like screen shoot below.就像下面的屏幕截图。

我的 SharePoint Online 列表

You can insert JS/Jquery script or change the Dom elements on the field through SPFx Field extension .您可以插入 JS/Jquery 脚本或通过SPFx Field extension更改字段上的 Dom 元素。

And you can open lcoal file using js as below:您可以使用 js 打开 lcoal 文件,如下所示:

Besides, some browsers will specifically block local file access this way for security reasons.此外,出于安全原因,某些浏览器会专门阻止以这种方式访问本地文件。

BR BR

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将下拉选择的值添加到共享点列表中的共享点查找列 - How to add dropdown selected value to sharepoint lookup column in sharepoint list 如何从HTML文档向共享点列表添加项目? - How to add items to sharepoint list from a html document? SharePoint Rest文档库 - SharePoint Rest Document library SharePoint REST API 用于 Sharepoint 在线检索超过 5000 个项目的列表/文档库中的项目 - SharePoint REST API for Sharepoint online retrieving items from a list/document library which exceeds 5000 items 如何从 Sharepoint 文档库文件夹中检索文件 - How to retrieve files from Sharepoint Document library Folders 如何使用Javascript在Sharepoint 2007文档库中创建新文件 - How to create a new file in Sharepoint 2007 document library using Javascript 如何使用rest在sharepoint文档库中展开lookupfield - How to expand a lookupfield in a sharepoint document library using rest Sharepoint-Java脚本-从列表中的人员选择器栏中获取价值 - Sharepoint - Java Script - Get value from people picker column in a list 如何使用SpServices将新字段添加到共享点列表 - How to add new Field to sharepoint list with SpServices 如何将附件文档转换成表格或从 sharepoint 列表下载到本地 - How to get attachment document into form or download it to local from sharepoint List
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM