<%@ LANGUAGE = JavaScript %>
<% /*
     $Revision$
     $Id$

     File:        ins_state_history_delete.asp
*/ %>
<%
var JSON_Result = true;
%>

<!-- #include file="../Shared/common.inc" -->
<!-- #include file="ins.inc" -->

<%
protectRequest.validateToken();
/***** Get webform parameters *****/
var ins_state_history_key_arr = getFParamIntArray("ins_state_history_key");
var message = "";
var authparams = user.checkAutorisation("WEB_PRSSYS");
/***** End get webform parameters *****/

var result = {};
// Sensorwaarden verwijderen.
var sql = "DELETE"
        + "  FROM ins_deel_state_history"
        + " WHERE ins_deel_state_history_key IN (" + ins_state_history_key_arr.join(",") + ")";
var err = Oracle.Execute(sql, true);
if (err.friendlyMsg)
  abort_with_warning(err.friendlyMsg);

result.success = true;

Response.Write(JSON.stringify(result));
%>
<% ASPPAGE_END(); %>
