I am getting the following error. It is alerting the item type but name values are not displayed.
Error in function
SPServices.SPFilterDropdown
Parameter
relationshipListColumn: Name
Message
Not found in relationshipList {268E4AA4-6897-4C81-9C61-17609433DEE6}
Click to continue
__Below is the code that I used.__
<script src="/JavaScripts/jquery-1.8.2.js"></script>
<script src="/JavaScripts/jquery.SPServices-0.7.2.min.js"></script><script type="text/javascript">
$(document).ready(function () {
alert("hello");
$("select[title='ItemType1']").change(function() {
var stext=$("select[title='ItemType1']").val();
alert(stext);
$().SPServices.SPFilterDropdown({
relationshipList: "MasterList",
relationshipListColumn: "Name",
columnName: "Name",
CAMLQuery: "<Eq><FieldRef Name='Item Type' /><Value Type='Text'>"+stext+"</Value></Eq>",
completefunc: null,
debug: false
});
});
});</script>
Please help! I appreciate your time!
Comments: In the future, please posts questions like this in the discussions. It's usually not a problem with SPServices, but something we just need to kick around. In the script above, you show debug: false, but it must have been true when you got that error. I think that the error (which comes form the SpFilterDropdown function itself) is reasonably clear. The Name column isn't found in the list with the GUID 268E4AA4-6897-4C81-9C61-17609433DEE6. Check your column name. Also remember that the function requres the StaticName for the relationshipListColumn, as noted in the docs. M.
Error in function
SPServices.SPFilterDropdown
Parameter
relationshipListColumn: Name
Message
Not found in relationshipList {268E4AA4-6897-4C81-9C61-17609433DEE6}
Click to continue
__Below is the code that I used.__
<script src="/JavaScripts/jquery-1.8.2.js"></script>
<script src="/JavaScripts/jquery.SPServices-0.7.2.min.js"></script><script type="text/javascript">
$(document).ready(function () {
alert("hello");
$("select[title='ItemType1']").change(function() {
var stext=$("select[title='ItemType1']").val();
alert(stext);
$().SPServices.SPFilterDropdown({
relationshipList: "MasterList",
relationshipListColumn: "Name",
columnName: "Name",
CAMLQuery: "<Eq><FieldRef Name='Item Type' /><Value Type='Text'>"+stext+"</Value></Eq>",
completefunc: null,
debug: false
});
});
});</script>
Please help! I appreciate your time!
Comments: In the future, please posts questions like this in the discussions. It's usually not a problem with SPServices, but something we just need to kick around. In the script above, you show debug: false, but it must have been true when you got that error. I think that the error (which comes form the SpFilterDropdown function itself) is reasonably clear. The Name column isn't found in the list with the GUID 268E4AA4-6897-4C81-9C61-17609433DEE6. Check your column name. Also remember that the function requres the StaticName for the relationshipListColumn, as noted in the docs. M.