Feature #121
Allow a getPreview() and getReport() from String
Start date:
08/05/2010
Due date:
% Done:
100%
Estimated time:
Browser (if web client):
Description
Instead of building from a template, use a String with the content of the xhtml.
Related issues
History
Updated by Patrick Talbot over 14 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 90
Working on it...
Almost done! Still need to do some extended tests and I will update the sample solution and the wiki with some usage explanations.
- fromString: a boolean, - if true the template will be read from the string provided, - if false or not present, will try to read a template file on the server as before,
- baseHREF: a URL, with fromString=true, if the xhtml provided in the String has external dependencies (css, images), giving a baseHREF will be needed for the plugin to find them. This is a URL which can be of the form http:// or https:// - or file:/// if the file is on the client side.
I have also deprecated the updatePreview() method of the plugin in favor of an update() method on the Viewer object returned by the previewToComponent() method.
From now on, the previewReport() will also return a Viewer object, thus updating the preview window will also be possible (in smart client only) using Viewer.update()
With such big changes and major possibilities added, I decided that this version will be labeled 1.3.0
Updated by Patrick Talbot over 14 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
Close with new version 1.3.0 - see Revision R369 to R371