October 2008 - Posts

Upcoming Magenic Webinar:Real World SharePoint - Customer Facing Apps
30 October 08 06:29 PM | Blogging about SharePoint: Posts
Published: 10/30/2008 3:28 PM
Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Bad English is Good Syntax
23 October 08 05:02 PM | Blogging about SharePoint: Posts
Body:

In our development and integration environment, I am working on a workflow that sleeps inside a while loop.  We read the sleep interval from the web.config, and for testing have it sleep for only a minute.  However, the shortest real interval that it will sleep is the frequency of the timer (sptimerv3.exe) job that executes the workflow on wake up.  By default, it's 5 minutes. You can verify that by the stsadm -o getproperty -propertyname job-workflow -url <url to web app>.

To set it down to one minute, the syntax is "every 1 minutes between 0 and 59".  Grammatically incorrect but it works.

 

image

Also, not that if you don't specify the URL parameter, you will get an xml fragment back that says the property doesn't exist.

--Michael

Published: 10/23/2008 2:02 PM
Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Chicago SharePoint User Group Meeting this Thursday!
20 October 08 04:49 PM | Blogging about SharePoint: Posts
Published: 10/20/2008 1:49 PM
Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Search Keyword to search for just sites: ContentClass:STS_Web
16 October 08 12:06 PM | Blogging about SharePoint: Posts
Body:

I know I'm overdue to respond to some blog comments you all have been kind enough to leave, but in the mean time I want to share this item I came across.

I had a requirement (one of several) from a business user that had a site hierarchy with a site (Projects) that had many subsites (Project 1, Project 2, Project 3...) and wanted a searchable list of these sites.  In the process of figuring out the best way to meet this requirements, I discovered this:

You know how you can specify properties in a keyword search?  Property:PropertyValue.  Well, there is a property called ContentClass that you can use to specify sites only. The property value is STS_Web.

Without the ContentClass filter:

image

With it:

image

 

--

Category: MOSS 2007
Published: 10/16/2008 9:06 AM
Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Filed under:
How do I view tasks due in the next 10 days?
04 October 08 10:47 AM | Blogging about SharePoint: Posts
Body:

A client of mine is a project manager and wanted to create a view of his SharePoint task list that showed items due in the next 10 days.

The problem: The filter options in a view let you compare Due Date to [Today] but not to "[Today] + 10".  You can't have a formula in the "right-hand side" (bottom box) of you filter expression. We wanted to say "Due Date is less than ([Today]+10)" but it wouldn't accept the phrase [Today]+10.

However, you can create a calculated value column that uses a formula.

In other words, we wanted to say:

due date < Today + 10

but instead we can say:

due date - 10 < Today

So we added a Calculated Value column to the Tasks list.  I named the column DueDateMinusTen, and gave it the formula of "[Due Date] - 10", and said that it returned a date.  No need to add it to any views except for testing purposes. One interesting thing that we saw was that if Due Date was empty, DueDateMinusTen was 12/20/1899.  Huh?  Yes - because the null value for a date is really 1/1/1900. 

 

Now that we have the column, we can filter any of our views by using the filter expression DueDateMinusTen < [Today].

 

Oops, no time for pictures. Maybe later!

 

--Michael

Category: SharePoint – WSS and MOSS
Published: 10/4/2008 7:47 AM
Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks