Print files from list view of Module and Subpanel

How to add print file button in Action menu of  record.?

When the user selects records in the list view (module) or is viewing the records in the subpanel, clicking on the Print Files button will cause the files in those records to mass print.  (Makes it more of a one step process to print instead of having to open each file, open the download, print the download one at a time.)

Parents Reply
  •  generateAndPrint: function (model) { console.log("In Generate Print label");
                        if (_.isEmpty(model) === false) {
                            
                            var apiUrl = app.api.buildURL("printEmailFile", "create", requestParams, {});
                            var edocIds = [];
    
                            edocIds.push({
                                edocIds: this.model.get("id"),
                            });
    
                            var requestParams = {
                                edocIds: edocIds, 
                            }; 
    						console.log("edocIds Id  : "+this.model.get("id"));
    						console.log("API URL  : "+apiUrl);
                            app.api.call("create", apiUrl, requestParams, null, { success: this.printLabels.bind(this) });
                        }
                    },
                    printLabels: function (data) { console.log("==="+JSON.stringify(data));
                        if (_.isEmpty(data) === false) {
                           window.print();
                        }  
                    },

    I am using the window.print(); , but i don't know how to get the pdf content and print it. 

Children
No Data