Using the Alpha (jquery.SPService-2013.01APLH2) code with SharePoint 2013 I have found several problems
FIrst threw a bunch of errors with use Strict -- removed use Strict and single select Cascade Dropdowns work but Multi-Select Dropdowns do not work -- throws the following error on Line 1466 master=
SCRIPT5007: Unable to get property 'replace' of undefined or null reference
// Find the important bits of the multi-select
if(childSelect.Type === "M") {
MultiLookupPickerdata = childSelect.Obj.closest("span").find("input[name$='MultiLookupPicker$data']");
master = window[childSelect.Obj.closest("tr").find("button[id$='AddButton']").attr("id").replace(/AddButton/,'MultiLookupPicker_m')];
currentSelection = childSelect.Obj.closest("span").find("select[ID$='SelectResult']");
}
with Use Strict I get the following errrors
SCRIPT5042: Variable undefined in strict mode
jquery.SPServices-2013.01ALPHA2.js, line 1361 character 7
childColumnStatic = $(this).attr("StaticName");
and even simple CascadeDropdowns do not work.
Comments: Thanks for providing the fix. I'm going to see how I can shoehorn this in the the next alpha so that you can test it. The trick will be to maintain backward compatibility. As for the "datasheet view", you mean the new "Quick Edit" mode, right? That's going to require a rethink of the function, I think. The good thing is that it isn't an AstiveX control anymore, just plain old HTML and script, so it's possible to work with it. M.
FIrst threw a bunch of errors with use Strict -- removed use Strict and single select Cascade Dropdowns work but Multi-Select Dropdowns do not work -- throws the following error on Line 1466 master=
SCRIPT5007: Unable to get property 'replace' of undefined or null reference
// Find the important bits of the multi-select
if(childSelect.Type === "M") {
MultiLookupPickerdata = childSelect.Obj.closest("span").find("input[name$='MultiLookupPicker$data']");
master = window[childSelect.Obj.closest("tr").find("button[id$='AddButton']").attr("id").replace(/AddButton/,'MultiLookupPicker_m')];
currentSelection = childSelect.Obj.closest("span").find("select[ID$='SelectResult']");
}
with Use Strict I get the following errrors
SCRIPT5042: Variable undefined in strict mode
jquery.SPServices-2013.01ALPHA2.js, line 1361 character 7
childColumnStatic = $(this).attr("StaticName");
and even simple CascadeDropdowns do not work.
Comments: Thanks for providing the fix. I'm going to see how I can shoehorn this in the the next alpha so that you can test it. The trick will be to maintain backward compatibility. As for the "datasheet view", you mean the new "Quick Edit" mode, right? That's going to require a rethink of the function, I think. The good thing is that it isn't an AstiveX control anymore, just plain old HTML and script, so it's possible to work with it. M.