Use SharePoint Manager to get the column’s GUID
Then write a console app to remove this column. Multiple column of the same name will break code.
Bruce Ng's software development blog
An archive of solutions of programming problems I have faced in my career
Use SharePoint Manager to get the column’s GUID
Then write a console app to remove this column. Multiple column of the same name will break code.
Another way is to actually update the list item inside the workflow, usually assigning the same value to the field will work and results in no change to the list item.
Please note that workflow status is set asynchronously, meaning if you make the workflow trigger the event receiver and inside event receiver you read the workflow status, the workflow status is not guaranteed to be correct at the time as the update happens asynchronously.
The best way to read the eventual workflow status is to write it to a list item’s field and read from there in the event receiver.
Use this code?
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" ClientIDMode="Static" OnClientClick="disableButton();"/> <asp:Button ID="ButtonDummy" runat="server" Text="Button" ClientIDMode="Static" OnClientClick='return false;' style="display:none;"/>
function disableButton() { $("#Button1").hide(); $("#ButtonDummy").show(); return true; }
Solution:
Add this code to the .ascx file
<script type=”text/javascript”>
function setFormSubmitToFalse() {
setTimeout(function () { _spFormOnSubmitCalled = false; }, 3000);
return true;
}
</script>
Then, for the download button, add the code to call this function after user clicks it
OnClientClick=”setFormSubmitToFalse”
Another way is to refresh the page on client after certain time
onclientclick="timedRefresh(2000)" then in your html.. <script type="text/JavaScript"> <!-- function timedRefresh(timeoutPeriod) { setTimeout("location.reload(true);",timeoutPeriod); } // -->
If Workflow Service Application is not displayed, enabled it by launching the Farm Configuration Wizard.
Convert to List<> instead.