<script src="/path/to/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="/path/to/jquery.SPServices-0.7.1a.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
var listGUID = "{182E65D7-B53A-46AB-B3E5-B149BD4A13BF}";
var parentColumn = $().SPServices.SPGetStaticFromDisplay ({listName: listGUID, columnDisplayName: "Kategorien" });
var childColumn = $().SPServices.SPGetStaticFromDisplay ({listName: listGUID, columnDisplayName: "Titel" });
$().SPServices.SPCascadeDropdowns({
relationshipList:listGUID,
relationshipListParentColumn:parentColumn,
relationshipListChildColumn:childColumn,
parentColumn:"Kategorien",
childColumn:"Relevante Dokumente",
debug: true
});
});
</script>
The code is working only if I change the "Kategorien" column to single-select. So I think everything is ok with that code?! But If I change that column to mutli-select it does nothing (except that the UI element, which lists the items of "Relevante Dokumente", gets cleared). I'm using this code with SP2010 (German localisation).
Comments: I'm using SP2010. I've used the same piece of code somewhere else: var clientContext = SP.ClientContext.get_current(); without a problem. The only difference, I think, is that I initialized the function containing this piece of code with: ExecuteOrDelayUntilScriptLoaded(initScript,'SP.js'); At least it fixes my problem, if I init my code with this line. But it seems as this is too late, as "Fixed SPSetMultiSelectSizes" does not work?
<script src="/path/to/jquery.SPServices-0.7.1a.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
var listGUID = "{182E65D7-B53A-46AB-B3E5-B149BD4A13BF}";
var parentColumn = $().SPServices.SPGetStaticFromDisplay ({listName: listGUID, columnDisplayName: "Kategorien" });
var childColumn = $().SPServices.SPGetStaticFromDisplay ({listName: listGUID, columnDisplayName: "Titel" });
$().SPServices.SPCascadeDropdowns({
relationshipList:listGUID,
relationshipListParentColumn:parentColumn,
relationshipListChildColumn:childColumn,
parentColumn:"Kategorien",
childColumn:"Relevante Dokumente",
debug: true
});
});
</script>
The code is working only if I change the "Kategorien" column to single-select. So I think everything is ok with that code?! But If I change that column to mutli-select it does nothing (except that the UI element, which lists the items of "Relevante Dokumente", gets cleared). I'm using this code with SP2010 (German localisation).
Comments: I'm using SP2010. I've used the same piece of code somewhere else: var clientContext = SP.ClientContext.get_current(); without a problem. The only difference, I think, is that I initialized the function containing this piece of code with: ExecuteOrDelayUntilScriptLoaded(initScript,'SP.js'); At least it fixes my problem, if I init my code with this line. But it seems as this is too late, as "Fixed SPSetMultiSelectSizes" does not work?