Tag Info

Hot answers tagged

3

There is no built in way via the SharePoint JavaScript Object Model according to my research. Likely you will have to build your JavaScript to work with the SharePoint 2010 Alerts Web Service: http://msdn.microsoft.com/en-us/library/websvcalerts(v=office.14).aspx using JQuery or whatever framework calls from JavaScript on your page.


3

To view who has opened documents, you can run a Audit Log report. This is can achieved using the Audit Log reports You go to the following setting: Site Actions > Site Settings > Site Collection Administration > Audit Log reports. Check Configure audit settings for a site collection


2

Just wrap your code inside the uploadMyFile function into ExecuteOrDelayUntilScriptLoaded, as shown below: <script type="text/javascript"> $(document).ready(function() { $("#some-a-element").click(function uploadMyFile(directory)) { ExecuteOrDelayUntilScriptLoaded(function() { // something ...


1

Moving sites from SP 2007 to SP 2010 would require an upgrade of the content (content db). Plus both enviornments will need to be in sync before the migration can take place i.e. all the custom solutions will need to be deployed in SP 2010, all your custom site defs etc. This article shows how you can attach a content db from sp2007 to sp2010. ...


1

Good way to remove handlers from dialog's close button is using $clearHandlers Method. Check code below: function fValidateBeforeClose(event) { var isValid = true; //set IsValid value if(isValid) { //close dialog SP.UI.ModalDialog.get_childDialog().close(); } else { alert('Not valid'); } } function ...


1

Literally CAML query even in SharePoint 2013 doesn't have distinct function you can use, however I find this code that can help you, protected void btn_binddropdown_Click(object sender, EventArgs e) { try { SPList oList = SPContext.Current.Web.Lists["CAMLTEST"]; SPQuery query = new SPQuery(); ...


1

It looks possible: You can use the SharePoint .NET Framework CSOM to manage SharePoint users, groups, and user security. Retrieve all users in a SharePoint group This example retrieves information about all users from a SharePoint group named Members. // Starting with ClientContext, the constructor requires a URL to the // server running ...


1

After much debugging, found that I had assigned credentials outside this code block. For some reason, it did not throw an error for invalid credentials, even though it was trying to execute a query without the valid username and password. Throwing a null reference exception threw me off. Here's the code if it helps anybody: myCred.UserName = ...


1

have you found the solution? I am also facing the same challenge. Thanks. Update: I am facing same problem but I am able to print. Please refer This Link Hope this link will help others too. Please let me know if you can explore more. Thanks.



Only top voted, non community-wiki answers of a minimum length are eligible