Welcome to Office Zealot Sign in | Join | Help

Julie's Office Dev Blog

Sorta like yoga... just less flexible.
Two Tidbits By Request

In follow-up to my previous post regarding the ability to set custom status column fields for Sharepoint workflows, I've been asked about the inability to drop the "SetState" activity onto a Sequential Workflow in Visual Studio.  Most likely, if you are having the problem that you can't drag and drop the SetState activity onto your workflow canvas, you are selecting the wrong SetState activity.  It is confusing because there are two SetState activities.  One belongs to the Windows Workflow Foundation.  This SetState is for changing the physical state of a State Machine workflow.  The other SetState belongs to the Sharepoint Workflow activities and it sets the "state" which is really the status (ie., "In Progress" or "Completed" or, better yet, "Failed To Start") column text for a Sharepoint Workflow.

 

-------------------------

 By client request, I'm adding a little blurb on CSS for Sharepoint 2007 design.  I handed off the master page and custom stylesheet to my client but I had left the global links buttons with a darker font than they wanted.  They couldn't get the font to change appropriately to white no matter how many times they changed ms-globallinks.  This is because it isn't ms-globallinks :)

 .ms-HoverCellInActive a, .ms-SpLinkButtonInActive a{
      
 color: #FFFFFF !important;
}

 

Posted: Friday, February 16, 2007 8:17 AM by jkremer
Filed under:

Comments

kiran bellala said:

Very good tip.

Thanks Julie

# March 23, 2007 12:11 PM

jiongz said:

Hi,

I develop five tasks sequence workflow, each stage I want to set the diffrent status (rather then In Progress only). I saw this article is best one, I followed you instruction, there is no problem for dragdroping setState activity (belongs to sharepoint.workflow) and compilation, but once reaching the activity, will get system error. I saw the other article by microsoft. it describs the activity can be used in state machine workflow only. Is this true?

Could you mind to give the hint?

thanks

jiong  

# June 3, 2007 11:01 PM

jiongz said:

Hi

my name is jiongz who submit last commnent.

I found what's wrong for setState activity.

Should using:

your_stateactivity_name = (Int32)Microsoft.SharePoint.Workflow.SPWorkflowStatus.Max + number (defined in workflow template).

to point out first message, the number is 0.

Cheers

jiong

# June 4, 2007 12:55 AM
Anonymous comments are disabled