FCLT#54761: AASA AiAi door te veel Audit records?
svn path=/Website/branches/v2018.1/; revision=39260
This commit is contained in:
@@ -53,13 +53,19 @@ function AUDIT_HISTORY_BUTTON(pbuttons, params)
|
||||
+ " AND " + id_veld + " = " + safe.quoted_sql(id_oms);
|
||||
}
|
||||
|
||||
var allshowed = true;
|
||||
if (sql != "")
|
||||
{
|
||||
var oRs = Oracle.Execute(sql);
|
||||
var oRs = Oracle.Execute(sql + " ORDER BY 1 DESC");
|
||||
while(!oRs.eof)
|
||||
{
|
||||
tablekey_array.push(oRs(0).Value);
|
||||
oRs.Movenext();
|
||||
if (tablekey_array.length == 100) // In een "IN" statement mogen maar maximaal 1000 keys. Maximaal nemen we hier de meest recente 100 keys.
|
||||
{
|
||||
allshowed = false; // Niet alle keys zitten nu in tablekey_array. Niet alle audit tracking kan dan worden opgevraagd.
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
%>
|
||||
@@ -84,7 +90,10 @@ function AUDIT_HISTORY_BUTTON(pbuttons, params)
|
||||
var cnt = oRs(0).Value;
|
||||
oRs.Close();
|
||||
if (cnt > 0)
|
||||
pbuttons.push({title: L("lcl_history") + " ({0})".format(cnt), action:"audit_history()", icon: "fa-history", id: "btn_audit_history" });
|
||||
pbuttons.push({title: L("lcl_history") + " ({0})".format(cnt + (allshowed? "" : "+")), // Een "+" geeft aan dat er meer audit tracking regels zijn dan is weergegeven.
|
||||
action:"audit_history()",
|
||||
icon: "fa-history",
|
||||
id: "btn_audit_history" });
|
||||
}
|
||||
}
|
||||
%>
|
||||
Reference in New Issue
Block a user