Add new Values to Context

Aug 16, 2010 at 7:19 PM

it´s possible to do this?

The UII Activity "Set Context"  if set in the automation just update from existing or create a new value?

 

Aug 17, 2010 at 7:56 PM

Solved

Aug 18, 2010 at 9:46 PM

So a few things on this.. Just to get this down for folks to see.

The HAT UII Activity "SETCONTEXT" takes 2 parameters.
The Key and the Value.

If the Key exists in the current context,  the value is updated
if the key does not exist in the current context, the Key is created and the value is updated.

If you are using Context in a Hosted control, or web application adapter, 
You need to create a new instance of the context from the original,
Set your new value in your new instance,
Then call FireContextChange ( ContextEventArgs args ) - Hosted controls or AdapterFireContextChange( ContextEventArgs ) - web and application adapters.

MattB - MSFT

 

 

 

Aug 19, 2010 at 2:30 PM

Hi Matt!

Thanks for the help!

I did exactly what you said.