使用javascript从另一个列表进行查找的默认多选查找值 [英] Default Multi-Select Lookup Value from another list's lookup using javascript
问题描述
您好,
我有两个列表,分别是列表A和列表B.两个列表都包含相同的多选查找列.列表B记录必须从列表A记录创建.列表A显示表单具有创建按钮,用于创建列表B记录并传递列表A记录ID 使用查询字符串.我想使用列表A ID(查询字符串)从列表A中选择值的多选查找列,并将其默认值设置为列表B.我想知道如何使用JavaScript做到这一点?
此致
Eric
Hello Eric,
我了解的是"LIST B"您需要很少的列值来进行查找,例如"Name" "ID"等,以自动同步或显示要在"LIST B"上定义的值
您可以尝试使用列表A"自动以信息路径"形式填充列值. ID参数.
我在我们的环境中做了类似的事情,但这是从用户个人资料"中提取用户信息.
https://blogs.technet.microsoft.com/anneste/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010/  ;
或者您也可以使用工作流程来设置"特定项目类似于"LIST A"的值
您可能需要尝试,但是工作流将是更简单的解决方案.
希望此帮助:)
Hi Support,
I have two Lists which are List A and List B. Both list contain the same multi-select lookup column. List B record must be created from List A record. List A display form has a create button to create List B record and pass the List A record ID using query string. I would like to get the multi-select lookup column selected value from List A using List A id (query string) and default the value to list B. I would like to know how to do it using JavaScript?
Regards,
Eric
Hello Eric,
What I understand is on "LIST B " you want few column value which is lookup eg "Name" "ID" etc to automatically get synced or display when value to defined on "LIST B"
You can try to Auto-populate the column value in Infopath form using "LIST A" ID parameter.
I did something similar on our environment, But that was to pull the user information from "User profile"
https://blogs.technet.microsoft.com/anneste/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010/
Or you can also use Workflow to "Set" particular item value similar to "LIST A"
You might have to experiment, But Workflow would be easier and simple solution.
Hope this Help :)
这篇关于使用javascript从另一个列表进行查找的默认多选查找值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!