I am generating a PDF in my application, I want to view the pdf. I am doing something like below.
Code: Select all
var filePath = tables.QUOT_DOCS.getColumnValueOnRow(tables.QUOT_DOCS.FILE_PATH, tables.QUOT_DOCS.getCurrentRow());
var format = filePath.toString().split(".").pop();
if (FileServices.existsFile(filePath)) {
var url = "http://" + system.variables.$UFS_SERVER_NAME.value + ":3030/ufs/FileStream?type=path&filepath=" + filePath + "&format=" + format;
log("### Called URL : " + url);
var parms = {};
parms.returl = form.getReturnUrl();
form.callUrl(url, parms);
Code: Select all
http://10.2.1.168:3030/ufs/FileStream?type=path&filepath=\\10.2.1.168\DocumentImages\Quote_Compare_1180.pdf&format=pdf
The PDF is available at the following location, and i am able to access the same by using the following.
Code: Select all
file://10.2.1.168/DocumentImages/Quote_Compare_1180.pdf