Hi All, Below is a function i wrote to clear the tick box and complete date of a sales process step if the action is cancelled. However when a user cancels a step (say step 3 for example) it removes the complete date and tick from step 1 instead of the step that was cancelled. Any other cancels following this then do not remove anything at all. Any ideas why?
function removeChecks()
Dim strKeyField, strReqStepID, strRegStepName
dim result
strKeyField = grdSalesProcess.GetCurrentField
result = DoUnCompleteStep(strKeyField)
grdSalesProcess.Refresh
grdSalesProcess.ExpandAll
UpdateStats(gstrSalesProcessID)
PostOppDetailView
RefreshOppDetailView
end function