Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: SPCascadeDropdowns not woking in SharePoint 2013 Office 365

$
0
0
The error you're getting from my debug code is:

Problem: Parentcolumn Dominante grondslag
Message: column not found

Both the parentColumn and the childColumn should be the DisplayNames. Since you have a space in "Dominante grondsl", I assume that's the DisplayName?

Here's the function that's looking for the column:
    function DropdownCtl(colName) {
        // Simple
        if((this.Obj = $("select[Title='" + colName + "']")).length === 1) {
            this.Type = "S";
        // Compound
        } else if((this.Obj = $("input[Title='" + colName + "']")).length === 1) {
            this.Type = "C";
        // Multi-select: This will find the multi-select column control in English and most other languages sites where the Title looks like 'Column Name possible values'
        } else if((this.Obj = $("select[ID$='SelectCandidate'][Title^='" + colName + " ']")).length === 1) {
            this.Type = "M";
        // Multi-select: This will find the multi-select column control on a Russian site (and perhaps others) where the Title looks like 'Выбранных значений: Column Name'
        } else if((this.Obj = $("select[ID$='SelectCandidate'][Title$=': " + colName + "']")).length === 1) {
            this.Type = "M";
        // Multi-select: This will find the multi-select column control on a German site (and perhaps others) where the Title looks like 'Mögliche Werte für "Column name".'
        } else if((this.Obj = $("select[ID$='SelectCandidate'][Title$='\"" + colName + "\".']")).length === 1) {
            this.Type = "M";
        // Multi-select: This will find the multi-select column control on a Italian site (and perhaps others) where the Title looks like "Valori possibili Column name"
        } else if((this.Obj = $("select[ID$='SelectCandidate'][Title$=' " + colName + "']")).length === 1) {
            this.Type = "M";
        } else {
            this.Type = null;
        }
    } // End of function DropdownCtl
If "Dominante grondslag" isn't multi-select, the code is looking first for a select element with the Title="Dominante grondslag" and if that is not there, then an input element with the Title="Dominante grondslag". Can you look at the DOM to see if one of those is present?

M.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>