SharePoint列表中的地图条目 [英] Map Entries In SharePoint List

查看:90
本文介绍了SharePoint列表中的地图条目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将列表项与其他列表项进行映射.两者都在同一列表中.

页面加载下拉列表将包含所有项目(下图中的第1点)

和字段(下图的点2)还将包含下拉菜单中的所有项目.

当用户从下拉列表中选择项目时,该项目将从字段2中删除.用户应该能够将字段2其余项目中的项目添加到字段3(下图中的点3),并在保存操作字段3中进行添加项目将使用下拉值进行映射并保存 在同一列表的各个列中.

如何实施?


解决方案

Pranoti嗨

我相信您使用的是自查找功能,并且启用了多重功能.

要实现所需的功能,必须使用javacript/jquery.

在下拉列表更改时绑定一个事件,当它触发时,您可以从第二列中删除该项目并将其保留在变量中.下次事件触发时,您可以从变量中插入该现有数据并将新数据保留在该变量中. /p>

要在表单页面中使用jquery,您需要编辑页面并添加contenteditor/script编辑器Webpart.

另一种方法是您可以为该字段创建自定义jslink并进行映射.互联网上有很多文章为字段渲染创建自定义jslink.下面有两篇

https://zimmergren.net/sp-2013-using-the-spfield-jslink-property-to-change-the-way-your-field-is-rendered-in-sharepoint-2013/
https://docs.microsoft.com/zh-cn/sharepoint/dev/general-development/how-to-customize-a-field-type-using-client-side-rendering

希望有帮助!


I want to map list item with other list items. both are in same list.

On page load drop-down will contain all the items(Point 1 in below image)

and field (point 2 in below image) will also contains all items which are there in drop-down.

when user selects item from drop-down, it will get removed from field 2. And user should able to add item from remaining items of Field 2 to Field 3(Point 3 in below image), and on save action field 3 items will get mapped with drop-down value and get saved in respective column of item of same list.

How to implement this? 


解决方案

Hi Pranoti

I believe you are using self look up and same with multi enabled.

To achieve what you want you have to use javacript/jquery.

Bind an event on dropdown change and when it fires you can remove that item from second column and keep it in variable.When next time the event fires you can insert that existing data from variable and keep new data in the variable.

To use jquery in forms page you need to edit the page and add contenteditor/script editor webpart.

Another way is that you can create custom jslink for that field and do the mapping.You have lot of articles in internet to create custom jslink for field rendering.Two of them are below

https://zimmergren.net/sp-2013-using-the-spfield-jslink-property-to-change-the-way-your-field-is-rendered-in-sharepoint-2013/
https://docs.microsoft.com/en-us/sharepoint/dev/general-development/how-to-customize-a-field-type-using-client-side-rendering

Hope it helps!


这篇关于SharePoint列表中的地图条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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