列表中的相关两列 [英] Related two Column in the List

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

问题描述

大家好,

我有一个包含两列的列表。

I have a list which contains two columns.

假设第1列是< Stage>和第2列是< Statue>

Let's say Column 1 is <Stage> and Column 2 is <Statue>

如果我在舞台上选择查询,然后在第2列中,雕像将显示选项< Prospect>和< Presentation>

If I choose Inquiry in the stage, and then in Column 2, the Statue would show options <Prospect> and <Presentation>

如果我选择商机,然后在第2列中,雕像将显示选项< Qualification>和<暂停>

If I choose Opportunity, and then in Column 2, the statue would show options <Qualification> and <On-Hold>

提前致谢。请问我应该怎么做才能实现这个目标?

Thanks in advance. May I ask how should I do that to achieve this?

推荐答案

嗨Gary,

根据您的描述,您希望创建级联下拉列表。我们大多数人都熟悉像Country,City这样的场景,根据之前下拉列表的选择逐个填充。 

From your description, you want to create cascading Dropdowns. Most of us are familiar with such scenarios like Country, City are filled up one by one depending on selection of previous dropdownlist. 

您可以使用SharePoint列表创建2级级联下拉列表Javascript。

You can create 2 level Cascading Dropdown list in SharePoint List using Javascript.

您需要将内容编辑器Web部件添加到要进行级联下拉列表的页面中。然后将以下文章中的脚本放入内容编辑器Web部件:

You need to add a Content Editor Web Part into the page where you want to make cascading dropdown work. Then put the script in below article into the content editor Web Part:

http://microsoftsharepointdevelopment2010.blogspot.sg/2013/01/working-with-cascading-dropdown-in.html

祝你好运,

Allen


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

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