Friday, February 10, 2012

Jquery UI -Autocomplete with Server side data

Good article
Example inside Document.ready
    $('controlname').autocomplete({
        source: function (request, response) {
            $.ajax({
                type: "POST",
                url: "pagename/methodname" , //"search.aspx/getClientNames"
                data: "{}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                // This explicitly disables any browser caching.
                dataFilter: function (data) { return data; },
                success: function (data) {
                    response($.map(data.d, function (item) {
                        return {
                            value: item
                        }
                    })) // response
                }, // success
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    alert(textStatus);
                }
            }); // ajax
        },
        minLength: 2
    });// autocomplete

Friday, February 3, 2012

Approaches to integrate ASP.NET web application into SharePoint

Good article here

  • SharePoint Application page approach
  • User control Approach
  • Web part page approach
  • Simple IFRAME approach

Friday, January 27, 2012

SharePoint Calculated field - Compare 3 Date columns

SharePoint Calculated field - Compare 3 Date columns
The logic
if ([Revised Due Date] = "")
set val = [Chartered Due Date]
else if([Chartered Due Date]="")
set val = [Requested Due Date]
else if([Requested Due Date]="")
set val =" NA")
the formulae
=IF(OR([Revised Due Date]<>"",[Chartered Due Date]<>"", [Requested Due Date]<>""), MAX([Revised Due Date],[Chartered Due Date]
,[Requested Due Date]), "NA")

Thursday, January 26, 2012

Getting XML Data From a SharePoint List


  • {0} – The URL to your site.  This could be the root web or a child site.
  • {1} – The GUID for your list. 
  • {2}- The GUID of the view - optional

Thursday, December 29, 2011

To Access SharePoint fields in JQuery

To Access SharePoint fields in JQuery
By default we can access by
$("input[title='title name']") 
or
$("input[VALUE='OK']")    // for OK button

If we modify to  Sharepoint List form field
See the source of the form and find out the ID in SPD.
Example $("#[id*='ff2_1']")     // 2nd  field.

Tuesday, December 27, 2011

SharePoint Infopath Forms Library missing

I have created a new 2010 portal with publishing features template. And tried to create a forms library, ohh gosh!! where is the Form Library under 'Create'. Searched the settings in 'Central Administration', everything seems to be right there.
Got an idea... go to InfoPath Designer and publish a new form template from there to this portal.
Every thing went on smooth except the it has created a simple document library instead forms library.Very Bad.

Ohhh may be i might have missed some thing  let me check the site settings
  • Site Collection Features –> Office SharePoint Server Enterprise Site Collection features
  • Site Features –> Office SharePoint Server Enterprise Site features
No luck dude, still no forms library.

After lot of search & struggling around... found out that
  • Site Features –> Team Collaboration Lists
thats SharePoint!. :)

Friday, December 9, 2011

Dime, cent, Pennie and Nickel

In US coins
a dime  = 10 cents (10 ¢)
a quarter  = 25 cents (25 ¢)
a pennie  = 1 cent  (1¢)
a nickel  = 5 cents (5¢)