Kinetic Web browser Print Preview

But with a little coding magic… all of your dreams can come true! :3

PrintPreview

Quite honestly, this is a hacky solution that would need to be implemented on every report. Epicor should really just fix their shit because it is doable.

You’ll need this BAQ to make it work.
SysRptLst.baq (14.0 KB)

Create a view to hold the BAQ data.

Create an event that triggers after SubmitToAgent

Call your BAQ.

Add a widget that has an expression field (I use condition because I can put console writes on true/false to show if it’s working in the log).

Condition expression:

eval ("var byteString = window.atob('{SysRptList.SysRptLst_RptData}');let int8Array = new Uint8Array(new ArrayBuffer(byteString.length));for (let i = 0; i < byteString.length; i++) { int8Array[i] = byteString.charCodeAt(i);}let documentBlob = new Blob([int8Array], { type: 'application/pdf' });let fileURL = URL.createObjectURL(documentBlob);console.log(fileURL); window.open(fileURL,'_blank');")
11 Likes