and privilege control functions.
*/
XM.ModelClassMixin = {
+ getReportUrl: function (action, modelName, id) {
+ var reportUrl = "/generate-report?nameSpace=%@&type=%@&id=%@".f(
+ modelName.prefix(), modelName.suffix(), id);
+
+ if (action) {
+ reportUrl = reportUrl + "&action=" + action;
+ }
+ return reportUrl;
+ },
+
/**
Use this function to find out whether a user can create records before