Difference between revisions of "Form Delete Record Button"

From All n One's bxp software Wixi

Jump to: navigation, search
(Created page with "From time to time in campaigns it may become necessary to delete a record and all of its contact history. This function is dangerous for data consistency so should only be im...")
 
m (Philip Lacey moved page Campaign Database Delete Record Button to Form Delete Record Button without leaving a redirect)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
From time to time in campaigns it may become necessary to delete a record and all of its contact history.  This function is dangerous for data consistency so should only be implemented carefully.   
 
From time to time in campaigns it may become necessary to delete a record and all of its contact history.  This function is dangerous for data consistency so should only be implemented carefully.   
 +
  
 
Access must be granted to users to the Main Menu > Database Management > Data Deletion section in order to have the functionality access.
 
Access must be granted to users to the Main Menu > Database Management > Data Deletion section in order to have the functionality access.
Line 7: Line 8:
  
  
Simply modify the intCampaign_Id to be the
+
<source lang="html4strict">
 +
<input type=button name=btnDelete id=btnDelete class='cssButton_Red' style='width:100%;' value='Delete this record' onclick="window.location='../campaign/userCampaign_DeleteGroup-details.asp?intCampaign_Id=' + document.getElementById('intCampaign_Id').value + '&intCDA_Id=' + document.getElementById('intCDA_Id').value;" />
 +
</source>
 +
 
  
<source language="html4strict">
+
[[Category:Module Specific:Form Management]]
<input type=button name=btnDelete id=btnDelete class='cssButton_Red' style='width:100%;' value='Delete this record' onclick="window.location='../campaign/userCampaign_DeleteGroup-details.asp?intCampaign_Id=' + document.getElementById('intCampaign_Id').value + '&intCDA_Id='+document.getElementById('intCDA_Id').value;" />
+
[[Category:Topic:Security]]
</source>
 

Latest revision as of 00:31, 10 November 2014

From time to time in campaigns it may become necessary to delete a record and all of its contact history. This function is dangerous for data consistency so should only be implemented carefully.


Access must be granted to users to the Main Menu > Database Management > Data Deletion section in order to have the functionality access.


Within in the script simply add to the "Notes" part of a section header or other appropriate type the following HTML.


<input type=button name=btnDelete id=btnDelete class='cssButton_Red' style='width:100%;' value='Delete this record' onclick="window.location='../campaign/userCampaign_DeleteGroup-details.asp?intCampaign_Id=' + document.getElementById('intCampaign_Id').value + '&intCDA_Id=' + document.getElementById('intCDA_Id').value;" />