# Tuesday, January 12, 2010

1) The first example is a custom field type that you can add to any document library and that returns the main properties of any document by
clicking on it in a fast and user-friendly way. Thanks to the jQuery code embedded in the CAML of the custom field type, the properties are returned via an AJAX query that calls lists.asmx to get the properties. 
This example is the main topic of the video and is rebuilt from scratch.

2). The secund example will be available for download and is overviewed during the video. It's a custom SharePoint calendar where users can type locations in a textbox. All the matching events are highlighted within the calendar directly (they blink) and direct links to the events are shown above the input textbox. 

Again, same principle than for the first example (query to lists.asmx) but this time the jQuery code is isolated in a separate JS file and both the jquery javascript file and the custom one are included OnPreRender of the custom calendar control.

To watch this video, click here.

posted on Tuesday, January 12, 2010 9:09:29 AM (GMT Standard Time, UTC+00:00)  #    Comments [1] Trackback
# Monday, June 08, 2009

TABLE.ms-recyclebin TD {
     background: #000000 url('<image_path>') repeat-x;
     border: 1px solid #FFFFFF;


TABLE.ms-recyclebin TD A{
     color: #FFFFFF;
}

posted on Monday, June 08, 2009 11:29:09 AM (GMT Daylight Time, UTC+01:00)  #    Comments [2] Trackback
# Saturday, June 06, 2009

Sharepoint End User Content Team writes an article that describes "How to create custom Sharepoint site theme". Nice article!

http://sharepoint.microsoft.com/blogs/GetThePoint/Lists/Posts/Post.aspx?ID=122 

posted on Saturday, June 06, 2009 11:27:47 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0] Trackback
# Friday, June 05, 2009

You can remove the home link from view with CSS.

The code for your alternate CSS file is:

td#zz1_TopNavigationMenun0 {
 display:none;

posted on Friday, June 05, 2009 11:27:23 AM (GMT Daylight Time, UTC+01:00)  #    Comments [1] Trackback
# Sunday, May 24, 2009
sitesWebServiceLists.Lists listService = new sitesWebServiceLists.Lists();
listService.Credentials =
System.Net.CredentialCache.DefaultCredentials;

listService.Url = http://MyServer/sites/MySiteCollection/_vti_bin/Lists.asmx;
System.Xml.XmlNode ndListView = listService.GetListAndView("MyList", "");
string strListID = ndListView.ChildNodes[0].Attributes["Name"].Value;
string strViewID = ndListView.ChildNodes[1].Attributes["Name"].Value;

System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
System.Xml.XmlElement batchElement = doc.CreateElement("Batch");
batchElement.SetAttribute("OnError", "Continue");
batchElement.SetAttribute("ListVersion", "1");

batchElement.SetAttribute("ViewName", strViewID);
batchElement.InnerXml = "<Method ID='1' Cmd='Update'>" +
   "<Field Name='ID'>6</Field>" +
   "<Field Name='Title'>Modified sixth item</Field></Method>" +
   "<Method ID='2' Cmd='Update'><Field Name='ID'>7</Field>" +
   "<Field Name='Title'>Modified seventh item</Field></Method>" +
   "<Method ID='3' Cmd='Delete'><Field Name='ID'>5</Field>" +
   "</Method><Method ID='4' Cmd='New'>" +
   "<Field Name='Title'>Added item</Field></Method>";

try
{
   listService.UpdateListItems(strListID, batchElement);
}
catch (SoapServerException ex)
{
   MessageBox.Show(ex.Message);
}
posted on Sunday, May 24, 2009 11:22:32 AM (GMT Daylight Time, UTC+01:00)  #    Comments [1] Trackback
# Friday, May 22, 2009

listsWS. Lists   listService = new listsWS. Lists() ;
listService.Url =  "http://litwareportal/<your_site>/_vti_bin/lists.asmx" ;
listService.Credentials =  new  System.Net.NetworkCredential( "Administrator" ,  "Pa$$w0rd" , "LITWAREINC" );

XmlDocument   doc =  new   XmlDocument () ;
XmlNode   viewFieldsParent = doc.CreateElement( "ViewFields" );
viewFieldsParent.InnerXml =
"<FieldRef Name=\"Author\"/>" +
"<FieldRef Name=\"BookName\"/>" +
"<FieldRef Name=\"PageCount\"/>";


XmlNode listItems = listService.GetListItems( "Books" ,  "" , null, viewFieldsParent,  "0" , null,  "" );

foreach  ( XmlNode   item  in  listItems.SelectNodes( "//*[local-name()='row']" ))
{
Console .WriteLine( "Author: "  + item.Attributes.GetNamedItem( "ows_Author" ).Value);
Console .WriteLine( "Book Name: "  + item.Attributes.GetNamedItem( "ows_BookName" ).Value);
Console .WriteLine( "Page Count: "  + item.Attributes.GetNamedItem( "ows_PageCount" ).Value);
Console .WriteLine( "#####################################" );
}

Console .ReadLine();

posted on Friday, May 22, 2009 11:22:04 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0] Trackback
# Wednesday, May 20, 2009
SPWeb objWeb = SPContext.Current.Web;
SPNavigationNodeCollection topNavigationNodes = objWeb.Navigation.TopNavigationBar;
SPNavigationNode objItem = new SPNavigationNode("Başlık", "Adres", false);
topNavigationNodes.AddAsFirst(objItem); objWeb.Update();
posted on Wednesday, May 20, 2009 11:21:40 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0] Trackback
# Friday, April 17, 2009

If you create a workflow with using Microsoft Office Sharepoint Designer 2007, and you want to use "Send an EMail Activity" to send task reminders, workflow success reports, etc sometimes Sharepoint Designer does not allow you to copy other Send an EMail activities content. If you just create long HTML content to an activity you want to copy and paste it too.

If you have this issue clear the look-up references on your Send an EMail Activities content and try again. Now you can copy the content and paste it to your new activities body.

posted on Friday, April 17, 2009 11:08:44 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0] Trackback
# Monday, April 06, 2009

Starting now (April 2, 2009), SharePoint Designer 2007 will be available as a free download!

Free Download

posted on Monday, April 06, 2009 11:26:52 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0] Trackback
# Monday, March 30, 2009

Heather Solomoposts a new trick about altering Sharepoint menu's second level navigation arrow. Here are the steps :

    Open your master page. Switch to Code View. Search for "TopNavigationMenu".  Using Intellisense in the code view, or using the Properties pane, add the following property to the AspMenu tag:

    DynamicPopOutImageUrl="insert image URL/path here"

    So your code should look like:
    <SharePoint:AspMenu
          ID="TopNavigationMenu"
          Runat="server"
          DataSourceID="topSiteMap"
          blah blah.....
          DynamicPopOutImageUrl="/images/myimage.gif">
You can read full post by Heather here.
posted on Monday, March 30, 2009 9:58:07 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0] Trackback
# Wednesday, March 25, 2009

After you install Windows SharePoint Services 3.0 SP1, declarative workflows will not start automatically if the following conditions are true:

1. The Windows SharePoint Services Web application runs under a user's domain account.
2. The user logs in by using this domain account.
3. The site displays the user name as System Account.

Here is the link to the solution : 
http://kbalertz.com/947284/declarative-workflow-start-automatically-after-install-Windows-SharePoint-Services-Service.aspx
 

posted on Wednesday, March 25, 2009 9:56:32 AM (GMT Standard Time, UTC+00:00)  #    Comments [2] Trackback
# Saturday, March 21, 2009

To re-use a workflow in another list:

Create a new workflow on the new list.Create at least one step, one condition and one action in this workflow. This ensures that the files shown above are created and they will be replaced by the next operations.From the original workflow open the .xoml file as XML and copy the entire contents to the clipboard.Open the .xoml file for the new workflow and replace the entire contents with the copy from (3).Repeat this operation for the xoml.rules file.Double click the .xoml file for the new workflow to open the workflow in the Workflow Designer and clickCheck Workflow to verify no errors and then click Finish to ensure the workflow is saved.

Original post on  Nick Grattan 's blog
posted on Saturday, March 21, 2009 9:55:42 AM (GMT Standard Time, UTC+00:00)  #    Comments [0] Trackback
# Wednesday, March 11, 2009

Workflow Engine knows how to send e-mail to a column with “Allow multiple selections” but it’s the SharePoint Designer UI that doesn’t. If you want to send an email message to "People or Group" type field that includes "Allow Multiple Selection" you can do this via following instructions.

    Turn off “Allow multiple selections” for your column. Create your workflow. (Create a send an email action and select your people and group field) Finish your workflow and then publish it. Turn back on “Allow multiple selections”

Thats all :), It is an "hacky" solution but it works

posted on Wednesday, March 11, 2009 9:51:13 AM (GMT Standard Time, UTC+00:00)  #    Comments [0] Trackback