Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » How can i retrieve a byte[] field from database?
icon3.gif  How can i retrieve a byte[] field from database? [message #1759732] Mon, 17 April 2017 19:43
marco santos is currently offline marco santosFriend
Messages: 9
Registered: March 2017
Junior Member
Hello,

I am working with jasper reports on scout, i successfully generated a report and saved on a database, but now i need to show the pdf in the proper TablePage
I tried this:
@Order(2000)
		public class FileColumn extends AbstractColumn<byte[]> {
			
			@Override
			protected String getConfiguredHeaderText() {
				return TEXTS.get("File");
			}
			
			@Override
			protected boolean getConfiguredHtmlEnabled() {
				return true;
			}

			@Override
			protected int getConfiguredWidth() {
				return 100;
			}

			@Override
			protected boolean getConfiguredVisible() {
				return true;
			}

			@Override
		      protected void execDecorateCell(Cell cell, ITableRow row) {
		        StringBuilder linkBuilder = new StringBuilder();
		        linkBuilder.append(getLinkDocumentColumn().getValue(row));
		        String encodedHtml = HTML.link(linkBuilder, TEXTS.get("Open")).addAttribute("target", "_blank").toHtml();
		        cell.setHtmlEnabled(true);
		        cell.setText(encodedHtml);
		      }
		}


But didn't work, does anyone knows how to do it?
Previous Topic:[Blog Post] Overriding a method in Eclipse IDE and (non-Javadoc) comment lines
Next Topic:Eclipse neon error
Goto Forum:
  


Current Time: Wed Jan 15 05:43:56 GMT 2025

Powered by FUDForum. Page generated in 0.05075 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top