How To Show Originator on Plan Page

  • 1 January 2006
  • 2 replies
  • 30 views

Badge +2
Hi,

I don't have access to the KnowledgeBase -- so excuse my lack of research.

On my PlanPage I show the originator. This is also a datafield in my process. I tried setting the Originator intial value to [{K2.ProcessInstance.Originator.Name}] but that didn't work.

I'm writing in VB.Net. How can my PlanPage show the originator?

thanks

2 replies

Badge +7
I think the Originator value is only set when you post the plan page...

try this in you code (i'm sorry but only know the C#)

Context.User.Identity.Name (will give you Domainuser) or Environment.UserName (will give your just the name)

It will give you the name of the person who has launched the smart form
Badge +11
Tanguy is right - the Originator is only set once the Plan Page has been submitted.

Also, as far as I know, this is a Read-Only field and can't be changed once it is set. If you need to change or otherwise keep track of a different user, you'll have to save the info into a process level datafield.

Regards,
Ockert

Reply