Tuesday, June 5, 2018

Enable/Disable Recall button in workflow details form

Goto Class ----->WorkflowStatusForm ------>OnActive method

write below logic

//Added by sarath for recall button will enable only for admin ...>>start
str              curUser;
curUser     = curUserId();
if(curUser == "axadmin" && statusTable.DocumentType == "Q&Q receipt header")
{
terminateButton.enabled(workflowStatusTreeInfo.parmStatus() ==WorkflowTrackingStatus::Pending || workflowStatusTreeInfo.parmStatus() == WorkflowTrackingStatus::Faulted);
}
else if (curUser != "axadmin" && statusTable.DocumentType == "Q&Q receipt header")
{
terminateButton.enabled(false);
}
//Added by sarath for recall button will enable only for admin ...>>end


No comments:

Post a Comment

TFS Work space configuration

Refer below link:  https://d365byjp.blogspot.com/2018/10/steps-to-configure-tfsvsts-workspace-in.html