Visning basert på arbeidsflyt-status

Ønsker du å filtrere innhold i en en visning basert på arbeidsflyter og deres status?
Du kan filtrere data i visningen ved å bruke disse verdier i filtret for arbeidsflyten:

NotStarted = 0  FailedOnStart = 1  InProgress = 2  ErrorOccurred = 3

StoppedByUser = 4  Completed = 5 FailedOnStartRetrying = 6

ErrorOccurredRetrying = 7  ViewQueryOverflow = 8  Max = 15

Canceled = 15  Approved = 0×10 (16)  Rejected = 0×11 (17)

This item cannot be deleted because it is still referenced by other pages

If you are trying to delete any page or masterpage form the masterpage-galleri and getting this error «This item cannot be deleted because it is still referenced by other pages». Here is the fix. Create a new folder in the masterpage library and using SPD or explorer view drag the file over to this folder. Now delete the folder, so this will also delete the page you are trying to delete.

Make sure you don’t have any site using this pagelayouts or masterpage.

 

sharepoint event receiver checkbox yes/no

May be you want to run a list event during adding/ updating items. Following codes help to grab the yes/no value from checkbox.

base.ItemAdding(properties);

bool CheckBoxValue = (Convert.ToBoolean(properties.AfterProperties[“Order”]));

if (CheckBoxValue == true)

{properties.AfterProperties[“Comment”] = “My new comment”;}