Posts

Showing posts from March, 2009

Ignore folder structure in Document Library - Use Metadata to filter, group and sort results

Image
The following screenshot (MOSS 2007) shows the setting that is required when creating a view to display all documents in the library, ignoring the directory structure. This page can be accessed from any document library or list by selecting "Modify this View" or "Create View" from the View dropdown menu. Using this feature can increase relevance of the items/results displayed from the library as sorting and grouping can be performed using metadata without displaying folders. When using this method, the directory structure is preserved. Posted as a solution to http://www.sharepointblogs.com/forums/p/20623/44064.aspx#44064 on 10/03/09

SharePoint XSL String Replacement Function

Creating a list view Web Part to display data from a look-up field containing multiple look-ups. I ran into a problem when creating a list view Web Part in SharePoint Designer that displays data from look-up fields. If the field only allowed a single look-up, the list view was easy to create with no customisation required for the Web Part to display properly. After adjusting the look-up column/field to allow multiple selections, the result was an "Unable to display Web Part" message. To allow the multiple selection look-ups to be listed I needed to customise the XSL template to list each value in the look-up field. The following XSL template I adapted from http://wwww.maya.com/local/doc/xslt/FAQ/html_format/xsl/sect2/replace.html l, which solved my problem. The data from the multiple selection lookup field is returned in a string format, with each selection delimited with a ";". The following function replaces each occurance of the first string ";" with ...

Get current time in Sharepoint Designer workflow

Get the current time in a standard SharePoint Designer workflow and assign to a workflow variable I was having trouble getting the current time in a SharePoint Designer workflow when testing against a date/time field of the current item. I noticed that when testing if the date was greater than [today] which is the only option to test against the current date, the time was ignored as [today] returned 12:00 AM as the time. To be a little more specific, I needed separate actions performed on the current item if the item's creation date/time + 4hrs was greater or less than the current time. In other words, the condition test was if it was created less than or greater than 4 hours ago. Being unable to select a [now] option to test against the current time, I was getting unexpected results. My solution (a little clunky, but works) to get the current time was to modify/update a temporary list item (update any filed with any value), wait a minute and then store the modification date in a w...

Privacy Policy

Third-party advertising companies are used to serve ads when you visit this blog. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here .

New SharePoint Admin & Development blog

This is my new SharePoint Administration and Development blog. Post will be related to anything administering and developing in the SharePoint environment with a focus on MOSS 2007 and related technologies. Please see my Web Development blog where I will be posting on various topics including: php application development, html javascript and css, xml/xslt, ASP.NET