Diweddaru eitem neu eitem Diweddarwyd Digwyddiad yn SharePoint 2007 digwydd ddwywaith, os ei gwneud yn ofynnol til opsiwn wedi ei alluogi ar gyfer y llyfrgell dogfennau.
Roedd y datrysiad dros dro canlynol o Gymorth Microsoft am y mater hwn.
Check the value of vti_sourcecontrolcheckedoutby
yn BeforeProperties a AfterProperties, if the both values are null then the event is triggered by check in else the event is triggered by other actions.
os (properties.AfterProperties[“vti_sourcecontrolcheckedoutby”] == null && properties.BeforeProperties[“vti_sourcecontrolcheckedoutby”] != Null)
{
//This is when the update event is triggered by check-in.
}
arall
{
//This is triggered by events other than check-in action.
}