Hello,
I just installed SP3 (i know, I'm a little late) and it seems to have broken my SPCascadeDropdowns...
The js error I'm getting is on line 1476 of jquery.SPServices-2014.01.js "Uncaught TypeError: Cannot read property 'push' of null". Here is the related code:
I'm not sure if this is conclusive on anything, and I'm not familiar enough with this code to confidently tweak it, so I thought I would see if any of the contributors to this project know what could be happening here.
Of course, let me know what other information could be helpful in figuring this out. The key seems to be that upgrading to SP2 coincided with this feature breaking.
I just installed SP3 (i know, I'm a little late) and it seems to have broken my SPCascadeDropdowns...
The js error I'm getting is on line 1476 of jquery.SPServices-2014.01.js "Uncaught TypeError: Cannot read property 'push' of null". Here is the related code:
// If this is the first child for this parent, then create the data object to hold the settings
if (typeof childColumns === "undefined") {
parentSelect.Obj.data("SPCascadeDropdownsChildColumns", [childColumn]);
// If we already have a data object for this parent, then add the setting for this child to it
} else {
childColumns.push(childColumn);
parentSelect.Obj.data("SPCascadeDropdownsChildColumns", childColumns);
thisParentSetUp = true;
}
To me, that looks like the "ChildColumns" object is not fully initialized yet, so I tested that theory. I added a "alert(typeof childColumns); right before the block above, and the first time it is encountered it is returning 'object' rather than 'undefined'.I'm not sure if this is conclusive on anything, and I'm not familiar enough with this code to confidently tweak it, so I thought I would see if any of the contributors to this project know what could be happening here.
Of course, let me know what other information could be helpful in figuring this out. The key seems to be that upgrading to SP2 coincided with this feature breaking.