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

New Comment on "$().SPServices.SPFilterDropdown"

$
0
0
The SPServices has been such an invaluable help! Thank you so much. I am finding that there is a special case when I am trying to apply the SPFilterDropDown. The documentation states that it supports multi-select but I can't seem to get it to work. I have two identical fields set up one above the other. One is a single select drop-down, the other is a multi-select. Otherwise both set ups are the same. Both are "Lookup" fields into reference tables. The error message in the web browser (Internet Explorer 8, this is a corporate environment so I can’t upgrade or modify anything in the browser): Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1) Message: 'removeControl' is null or not an object Line: 2 Char: 3431 Code: 0 URI: http://*******.com/_layouts/groupeditempicker.js?rev=Cb56qvuNNklZSLDmzYmusA%3D%3D Version info: Chrome Version 34.0.1847.137 m also fails silently. SharePoint 2010 with Designer on Standard Edition. Library versions: jquery-1.11.0.min.js and jquery.SPServices-2014.01.js Any ideas? Thanks! Field 1 (single select): find the available project status labels in the "LU_Status" table where the LI is "Active" and present it in ascending sequence according to the "SortOrder" column. Provide the "Title" from the lookup table to the "Status" column in the custom form. Field 2 (multi-select): find the available names of groups that require training. This may be one or more of roughly 6 user types (Sales Agents, Managers etc). Get the “Title” from the reference table “LU_CommRole”, where the LI is “Active” and sort the list by the column “SortOrder”. Field 1 works perfectly in the custom data entry form. Field 2 generates a Java error and all code execution stops. Here is the JavaScript: $().SPServices.SPFilterDropdown({ relationshipWebURL: "", relationshipList: "LU_Status", relationshipListColumn: "Title", relationshipListSortAscending: true, relationshipListSortColumn: "SortOrder", columnName: "Status", listName: $().SPServices.SPListNameFromUrl(), promptText: "", CAMLQuery: "<Eq><FieldRef Name='Active'/><Value Type='Boolean'>1</Value></Eq>", CAMLQueryOptions: "<QueryOptions></QueryOptions>", completefunc: null, debug: false }); alert ("END Status"); $().SPServices.SPFilterDropdown({ relationshipWebURL: "", relationshipList: "LU_CommRole", relationshipListColumn: "Title", relationshipListSortAscending: true, relationshipListSortColumn: "SortOrder", columnName: "Roles Impacted", listName: $().SPServices.SPListNameFromUrl(), promptText: "", CAMLQuery: "<Eq><FieldRef Name='Active'/><Value Type='Boolean'>1</Value></Eq>", CAMLQueryOptions: "<QueryOptions></QueryOptions>", completefunc: null, debug: false }); alert ("END Communications Role"); Here is the HTML from the custom ASPX form: <tr> <td width="25%" class="ms-formlabel"><SharePoint:FieldDescription runat="server" id="ff5description{$Pos}" FieldName="Status" ControlMode="Edit" /></td> <td width="75%" class="ms-formbody"><xsl:comment>FieldName="Status"</xsl:comment><SharePoint:FormField runat="server" id="ff5{$Pos}" ControlMode="New" FieldName="Status" __designer:bind="{ddwrt:DataBind('i',concat('ff5',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Status')}" /></td> </tr> <tr> <td width="25%" class="ms-formlabel"><SharePoint:FieldDescription runat="server" id="ff22description{$Pos}" FieldName="Roles Impacted" ControlMode="Edit" /></td> <td width="75%" class="ms-formbody"><SharePoint:FormField runat="server" id="ff22{$Pos}" ControlMode="New" FieldName="Roles Impacted" __designer:bind="{ddwrt:DataBind('i',concat('ff22',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Roles_x0020_Impacted')}" /></td> </tr>

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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