首先,我是JavaScript的新手。因此,在使用web部件的SharePoint中,D Jobs的下拉列表不会显示所有可选择的项目。它似乎只显示100个可选择的项目,但需要在下拉列表中显示所有150个项目。我不知道为什么。如有任何帮助,我们将不胜感激。这是剧本。
<script type="text/javascript"
src="https://Sharepoint/SiteAssets/jquery.js"></script>
<script type="text/javascript"
src="https://SharePoint/SiteAssets/HillbillyCascade.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var cascadeArray = new Array();
cascadeArray.push({
parentFormField: "Shop", //Display name on form of field from
parent list
childList: "D Jobs", //List name of child list
childLookupField: "Title", //Internal field name in Child List
used in lookup
childFormField: "D Job", //Display name on form of the child
field
parentFieldInChildList: "Shop0", //Internal field name in Child
List of the parent field
firstOptionText: "(Filtered by Shop)", dropDownItemCount:"999"
//Number of Items to Display on dropdown to remove 100 item limitation
});
$().HillbillyCascade(cascadeArray);
});
</script>
src="https://SahrePoint/SiteAssets/HillbillyCascade.js"></script>
我看到一个打字错误Sahre
,应该是Share