WSPBuilder - Changing the Solution Name

13. August 2010 09:55

I like using WSPBuilder for my SharePoint projects and if you do much SharePoint development, it is an absolute must have tool.  One of the issues I ran into with the IDE in Visual Studio 2008 is when you create the WSP it was giving it a name that I did not care for.  If you renamed it and then try using the deploy command you will get an error.  Thanks to “Bill Simser | Name that WSP” blog, it turns out it very simple to define the naming of the file.

 

He does it a bit different and probably explains it better than me; the concept is the same.  I keep a folder of code that I often reuse (i.e. config files).  I copied over the WSPBuilder.exe.config file to this folder; my root config file was at “C:\Program Files\WSPTools\WSPBuilderExtensions”.  I added the key (Read More)

How to Output jQuery Ajax XML to the Page

4. August 2010 09:16

When I am developing jQuery applications against SharePoint lists, I often need to see the output of the raw XML that is returned from the server.  I am mostly interested in the values that are not part of the default schema.  To see the output I create an html page that has a div tag in the body on the complete event of the ajax call I set the div text to the xml responseText.  By doing this the div text will html encode the output to the page.  I normally will copy the text and put it in Visual Studio to help format the output to make it more readable.  Read more to see the sample code or download the file; don’t forget to update the url to your to your target site..... More...

SharePoint Custom Edit Form Attachment Fix (Workaround)

25. June 2010 13:58

If you have ever tried to make a Custom Edit form using SharePoint Designer you will come to find out that two things will happen.  One you will not see the Attachments in the list and secondly you will not be able to attach a file.  This post is not intended to tell you how to make a custom edit form but rather fix the Attachment issues.  If you don’t know how to customize list forms you may consider visiting here

 

The solution involves using jQuery (http://www.jQuery.com).  Before I get into how I resolved it let me share what the problem is and if you have a better solution other than jQuery; well good for you.

 

When you hide the web part on the list form, the children become hidden too.  If you look at the source of the page you will see all the elements of the web part are still in th4e document, they are just not visible.  So when you click on the “Attach File” button it is making the table with the list data to not be visible, sets the table with the upload dialog to be visible and sets the focus on the file input.  Because the parent span element is hidden the children never become visible.  Read More to see the workaround.....

SharePoint People Editor onChange Event

30. March 2010 08:29

Like many people that develop SharePoint Application, I use the PeopleEditor user control.  Nice little control that you can put on the page if you want to be able to select people\groups just like it does in SharePoint pages. 


Recently I had a web form that had a control (PeopleEditor) for closed by and a corresponding textbox on it was closed date.  What I wanted is that when the Closed By value changed the Closed Date textbox would default to the current date.  The OnValueChangedClientScript event worked to an extent.  It was truly on the value though but if you were to delete the value the script did not fire.  If the value was not resolved right away then the script did not run, so in short it did not run until a value was resolved.  I should point out as I recall the script reacted as I wanted in FireFox.  All my SP Users are on IE; if you are wondering why I use FireFox when all my users are IE, I do it for client side debugging with FireBug.


I created a solution with jQuery and the biggest thing I really don’t like about it is that I had to hard code server control ids, because I was unable to find the property that would give it to me in the <%= %>.  Right or wrong this is what I did, I am sure there are other ways of doing it. Read More....