The FAQ references getImageTag() but I also cannot figure out what the
- Code: Select all
<img src="theinternalURLOfYourBlobObject"
Anything would be much appreciated as I'm sure it must be quite simple.
Thanks in advance.
<img src="theinternalURLOfYourBlobObject"
{ foundset: myFoundSet, Logo: myLogo, currency: "$#,##0.00" }
var template = '<html><head></head><body><p>$myLogo</p></body></html>';
// no img tag needed, it will be generated for you
var context = {myLogo: plugins.VelocityReport.getByteMedia(foundset.logo)};
// parameter options are getByteMedia(bytes, [id], [width], [height], [cssClass]):
application.output(plugins.VelocityReport.evaluateWithContext(template, context));
var template = '<html><head></head><body><p>$myLogo</p></body></html>';
// no img tag needed, it will be generated for you
var context = {myLogo: plugins.VelocityReport.getByteMedia(solutionModel.getMedia('myLogo.png').bytes)};
// parameter options are getByteMedia(bytes, [id], [width], [height], [cssClass]):
application.output(plugins.VelocityReport.evaluateWithContext(template, context));
Return to Programming with Servoy
Users browsing this forum: No registered users and 11 guests