Category: jQuery
-
How to get the count of items returned in jQuery Autocomplete
In this post I used jQuery to autocomplete an input box with results from CRM 2011. I wanted to give the number of results returned for the particular autocomplete query. I chose to use the autocomplete open: parameter to get the number of results returned, and I put that result in a div with an…
-
SharePoint 2010, Client OM, jQuery Autocomplete and BCS/External lists
In this previous post, I used jQuery/SOAP/SPServices to access a SharePoint BCS list (an external list). I wanted to do the same thing using the Client Object Model (Some call it Clien OM? Or maybe CSOM?). Below is the code to access contact data in a BCS connection to Microsoft CRM 2011, and use it…
-
Accessing SharePoint 2010 BCS lists via SOAP/WebServices for use in a jQuery autocomplete
So it seems that you can’t access BCS list data via REST, according to this article. But it seems that you can access the list data through SOAP. I used the code below to query a BCS list that points to a MSCRM 2011 backend (I know I could go right to CRM via REST,…
-
Pseudo workflow approval with out SharePoint Workflows.
I wanted to have a form that a person would submit (for an example a request of some type) and then it would be approved by the appropriate people. I find the built in workflow functionality too limiting and too difficult for users, so this is what I came up with: I would have one…
-
Using ajax to query XML in SharePoint Doc Lib, for use in a form’s input autocomplete
Long title, but I wanted to get across what I was trying to do. If I had and XML file in a document library (you could mail enable the doc lib, and send XML from a query in SQL server using the “FOR XML” statement!), could I use jquery to add Autocomplete values to an…
-
My CEWP JQuery code to play flash files in a Modal
I have Flash files in a Document Library. I wanted to have users click the flash files (swf) and have them open up in a hidden div, rather than opening in a different window. I added the code below to a CEWP:
-
Hide a field in a SharePoint edit form based on other values
We have a form (list) that we want to have everyone edit and give comments. Once everyone has edited the item, we want an “overall status” field to trigger a workflow (send extended email). Be we did not want the overall status to be changed until everyone has chimed in. To achieve this, we created…
-
How to make a field in a SharePoint Edit form readonly
Paul Galvin showed how to hide a field in a SharePoint. I wanted to use this code to make a field “read only” once a from has been submitted. Forgetting about DataSheet view (for now), we can put a Content Editor Webpart on the top of the EditFrom.aspx page (to add a CEWP to the…
-
How I created a “Copy to new item” functionality for a SharePoint list – Part 2
Second part. First Part can be found here. On the second page (NewForm.aspx), I grabbed out of the querystring the values for the source list item and the name of the list. I used this person’s query string parser. Then I used the following SOAP query : In the last three lines I changed the…
-
How I created a “Copy to new item” functionality for a SharePoint list – Part 1
I wanted to create a “copy to new item” functionality for a SharePoint list. Steps I came up with: The first thing I had to do was add a link to the context menu (I learned that it is called an ECB) and have it point to the NewForm.aspx. Once I got that, I could…
