4

In workbox, Listing of workflow items can be customized using Registry.SetString("/Current_User/Workflow/FilterOption"). but how to clear this filteroption & rollback to default. currently while testing i'm using powershell console or codebehind to do this everytime but wondering whether it can be doable through clearing cache in 'admin/cache.aspx'. Any input on this ?

1 Answer 1

3

When you use Registry.SetString(key,value) or any other Registry.Set* you're setting in fact this value on user profile:

Sitecore.Context.User.Profile[key] = value;

Clearing the cache will not help you here. Even if you clear the value in cache, it will still be set on the profile and loaded from there if needed.


EDIT

I've written a blog post describing how you can work with Sitecore Registry and with simple Sitecore Registry Editor application.

4
  • thanks for the reply, i'm currently using powershell console to do this like [Sitecore.Web.UI.HtmlControls.Registry]::SetString("/Current_User/Workflow/TemplateFilter",'') and finding appropriate way to clear them while showing demo to clients :) Commented Jan 25, 2017 at 14:31
  • So you're not clearing the cache. You're clearing the registry value using code.
    – Marek Musielak
    Commented Jan 25, 2017 at 14:45
  • yes, believing clearing cache can clear the value & rollback to default entry. but this didnt workout. so using console to reset value :( Commented Jan 25, 2017 at 14:47
  • 1
    Cache is only another layer for caching so you don't need to get the value from the profile itself. You can add simple aspx page which will contains buttons for clearing what you need if you want to use something less hardcore than ps scripts ;)
    – Marek Musielak
    Commented Jan 25, 2017 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.