// N.B. this file is preceded wit 02 as it is based on GenerateReport // which we may want to add some JS for at some point, that would be 01 // TODO: may want to change this into an object, but i'm not sure if there is much purpose to // that as all we really need are specific functions to call in special cases, not like // fields/filters where we need full objects for each to do work with // potentially in the future may want this to be an object, but for now it seems like it would be too much // setup namespace Zymonic.Action.ScreenReport = {}; // function call by filter action reports to get user confirmation message // returns: 'Y' can continue, 'C' can continue with confirmation, 'N' cannot continue Zymonic.Action.ScreenReport.filterActionReportCanContinue = function(filter, limit, can_be_chunked) { var count = filter.getTotalCount(); if (count < limit) { return 'Y'; } else if (can_be_chunked) { return 'C'; } return 'N'; } // function call by filter action reports to get user confirmation message Zymonic.Action.ScreenReport.filterActionUserConfirmationMessage = function(filter, limit, message) { var count = filter.getTotalCount(); var user_message = sub_ll(message, { count: count, limit: limit }); return user_message; } // function call by filter action reports to get user error message Zymonic.Action.ScreenReport.filterActionUserErrorMessage = function(filter, limit, message) { var count = filter.getTotalCount(); var user_message = sub_ll(message, { count: count, limit: limit }); return user_message; }