Tag Info

New answers tagged

0

Sorry I wasn't reading your question clearly. The above script works if the user is explictly defined. However, there is no method in SPServices that expands group membership based on AD groups. You'll likely need server side code for that.


0

SharePoint lookup consist of 2 parts: ID of the item in the list and the Value. You can't set lookup only by the value because they are not the unique and can be the same with another item in this list. You should specify ID of the selected element.


0

Lookup Column needs to be treated differently. The value pair should be like valuepairs: [ ["Request_x0020_Type", ["1;#Test1","2;#Test2"]] ], Where 1 & 2 are corresponding ID values of Test1 and Test2.


0

You would do something like this (untested and going from memory): $().SPServices({ operation: "GetTagsofUser", userAccountName: $().SPServices.SPGetCurrentUser({fieldName: "Name", debug: false}), completefunc: function (xData, Status) { console.log(xData.responseText); } });


0

Try below, $().SPServices({ operation: "GetListItems", async: false, webURL: "http://abc", //Site collection URL which has the required List data listName: "Medi", //Your list name CAMLViewFields: "<ViewFields><FieldRef Name='Title' /></ViewFields>", //Add the internal names of required fields CAMLRowLimit: 10, ...


0

jQuery deferred object can solve your problem. https://learn.jquery.com/code-organization/deferreds/examples/ Using the above concept you can make the asynchronous calls work in synchronous way. Let me know if you have more questions.


0

Try this Query CAMLQuery: "<Query><Where><Eq><FieldRef Name='school_x0020_id'/><Value Type='Text'>4440</Value></Eq></Where></Query>",


0

I see a couple things, eq should be Eq is school id the name of your column? Make sure the casing is correct. Lookup values should be represented like: <Eq> <FieldRef Name='RelatedIssues' LookupId='True' /> <Value Type='Lookup'>4440</Value> </Eq> Also look at the Biwug CAML Designer for all your CAML querying needs.


0

Try changing your <eq> </eq> tags to <Eq> </Eq> I think case matters for those tags.


0

I managed to overcome the problem with the current checked out user check with the following workaround: First, I'm getting the id of the equivalent claims user (user.claimsId), using GetUserInfo function with userLoginName: "i:0#.w|" + user.login And then, I'm checking whether a document item's checkout user id is equal to the user.claimsId. Except ...


0

You can use the property defaultView: "month". This will display the calendar in Month View. Take a look at http://joshmccarty.com/2011/11/sharepoint-jquery-and-fullcalendar%E2%80%94now-with-spservices/ For changing month, first you need to calculate the start. Then you can use that value in camlQuery and camlOptions.


2

You can write an event receiver for your list that handles permissions of the item. You should use ItemAdded event receiver. Some links event receivers: https://msdn.microsoft.com/en-us/library/office/ms437502(v=office.14).aspx https://msdn.microsoft.com/en-us/library/office/ms453149(v=office.14).aspx and link about managing permissions ...



Top 50 recent answers are included