Commit 784bc4c1 authored by Daniel Quadras's avatar Daniel Quadras

Update ITMUserAuditTrailBrow.jsp

parent cb08c1ec
...@@ -154,8 +154,9 @@ function showPreviousPage(){ ...@@ -154,8 +154,9 @@ function showPreviousPage(){
BaseLogger.log("3",userInfo,null, "datanew daniel sessiondata before if nodatacheck"+sessiondata); BaseLogger.log("3",userInfo,null, "datanew daniel sessiondata before if nodatacheck"+sessiondata);
//condition to handle no data in datanew i.e audittrail //condition to handle no data in datanew i.e audittrail
if(noDataCheck) if(noDataCheck && sessiondata.trim().length() > 0)
{ {
BaseLogger.log("3",userInfo,null, "daniel inside first if condition");
String tagtoremove = "nodata"; String tagtoremove = "nodata";
BaseLogger.log("3",userInfo,null, "daniel tagtoremove"+tagtoremove); BaseLogger.log("3",userInfo,null, "daniel tagtoremove"+tagtoremove);
dataNew = dataNew.replaceAll("<" + tagtoremove + ">.*?</" + tagtoremove + ">", ""); dataNew = dataNew.replaceAll("<" + tagtoremove + ">.*?</" + tagtoremove + ">", "");
...@@ -197,6 +198,7 @@ function showPreviousPage(){ ...@@ -197,6 +198,7 @@ function showPreviousPage(){
//condition to check if sessiondata is empty and audtitrail has data //condition to check if sessiondata is empty and audtitrail has data
else if(noDataCheck==false && sessiondata.trim().length() == 0 || noDataCheck==false && sessiondata.equalsIgnoreCase(null) || noDataCheck==false && sessiondata.equalsIgnoreCase("")) else if(noDataCheck==false && sessiondata.trim().length() == 0 || noDataCheck==false && sessiondata.equalsIgnoreCase(null) || noDataCheck==false && sessiondata.equalsIgnoreCase(""))
{ {
BaseLogger.log("3",userInfo,null, "daniel inside first else if condition");
dataNew = dataNew.replaceAll("</DocumentRoot>", ""); dataNew = dataNew.replaceAll("</DocumentRoot>", "");
dataNew = dataNew.replaceAll("</Header0>", ""); dataNew = dataNew.replaceAll("</Header0>", "");
dataNew = dataNew.replaceAll("</group0>", ""); dataNew = dataNew.replaceAll("</group0>", "");
...@@ -233,6 +235,7 @@ function showPreviousPage(){ ...@@ -233,6 +235,7 @@ function showPreviousPage(){
//condition to hanlde both sessiondata and datanew having no data //condition to hanlde both sessiondata and datanew having no data
else if(sessiondata.trim().length() == 0 && noDataCheck) else if(sessiondata.trim().length() == 0 && noDataCheck)
{ {
BaseLogger.log("3",userInfo,null, "daniel inside second else if condition");
String tagtoremove = "nodata"; String tagtoremove = "nodata";
BaseLogger.log("3",userInfo,null, "daniel tagtoremove elseif condition 2nd else if"+tagtoremove); BaseLogger.log("3",userInfo,null, "daniel tagtoremove elseif condition 2nd else if"+tagtoremove);
dataNew = dataNew.replaceAll("<" + tagtoremove + ">.*?</" + tagtoremove + ">", ""); dataNew = dataNew.replaceAll("<" + tagtoremove + ">.*?</" + tagtoremove + ">", "");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment