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: Just figured this one out. It's all in how the sp team changed both the html elements and the global variables. Below is the changes that I made starting at line 2156 of ALPHA 5 (I just commented what I changed so you can easily see what I did): ``` MultiLookupPickerdata = columnSelect.Obj.closest("span").find("input[id$='MultiLookup_data']");//MultiLookupPicker$data']"); //master = window[columnSelect.Obj.closest("tr").find("button[id$='AddButton']").attr("id").replace(/AddButton/,'MultiLookupPicker_m')]; master = window[columnSelect.Obj.closest("tr").find("input[id$='AddButton']").attr("id").replace(/AddButton/,'MultiLookup_m')]; ``` I am assuming there will be other updates throughout that need this as well. Now I want to figure out how to get this to work in the datasheet views!
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: Just figured this one out. It's all in how the sp team changed both the html elements and the global variables. Below is the changes that I made starting at line 2156 of ALPHA 5 (I just commented what I changed so you can easily see what I did): ``` MultiLookupPickerdata = columnSelect.Obj.closest("span").find("input[id$='MultiLookup_data']");//MultiLookupPicker$data']"); //master = window[columnSelect.Obj.closest("tr").find("button[id$='AddButton']").attr("id").replace(/AddButton/,'MultiLookupPicker_m')]; master = window[columnSelect.Obj.closest("tr").find("input[id$='AddButton']").attr("id").replace(/AddButton/,'MultiLookup_m')]; ``` I am assuming there will be other updates throughout that need this as well. Now I want to figure out how to get this to work in the datasheet views!