36 lines
841 B
Plaintext
36 lines
841 B
Plaintext
<%@ LANGUAGE = JavaScript %>
|
|
<% /*
|
|
$Revision$
|
|
$Id$
|
|
|
|
File: widget_delete.asp
|
|
Description: Verwijderen
|
|
|
|
Parameters:
|
|
Context: Vanuit show-schermen
|
|
Result: JSON object
|
|
Note:
|
|
|
|
*/
|
|
DOCTYPE_Disable = 1;
|
|
%>
|
|
<!--#include file="../Shared/common.inc"-->
|
|
<!--#include file="../Shared/json2.js" -->
|
|
<%
|
|
protectRequest.validateToken();
|
|
var widget_key = getFParamInt( "widget_key", -1 );
|
|
var authparams = user.checkAutorisation("WEB_PRSSYS");
|
|
|
|
sql = "DELETE FROM fac_widget"
|
|
+ " WHERE fac_widget_key = " + widget_key;
|
|
|
|
result = { success: true};
|
|
var err = Oracle.Execute(sql, true);
|
|
if (err.friendlyMsg)
|
|
{
|
|
result.message = err.friendlyMsg;
|
|
result.success = false;
|
|
}
|
|
|
|
Response.Write(JSON.stringify(result));
|
|
%> |