|
Hi Nathan thanks for your time and attention.
I have nothing against HTML + CSS but what our customers appreciate and
want is the ability to modify the basic templates by entering what they
need both as data (coming from the management system) and the conditions
that control what or how to print certain sections of the documents. I
don't see how to do it via RPG if the conditions are in the template.
We found some good editors for HTML but they are not aware of data and
conditions management.
As I see it, I understand that your system is very good if people with a
higher level skill than the end user manage the templates. I'm wrong?
About performance, nowadays it's not a problem: we are plenty of unused
cores dedicated to Linux partitions.
Thanks again for sharing ideas.
--
Marco Facchinetti
Mr S.r.l.
Tel. 035 962885
Cel. 393 9620498
Skype: facchinettimarco
Il giorno mar 6 lug 2021 alle ore 05:57 Nathan Andelin <nandelin@xxxxxxxxx
ha scritto:
Hi Marco,or a
There are a number of advantages to using pure HTML and CSS as opposed to
using an alternative template language, which then may be compiled into a
Java Object that subsequently generates HTML as in the case of Jasper,
template language which may be subsequently interpreted and transformedmore
into HTML as in the case of Freemarker. Pure HTML combined with CSS is
robust and functional. Lots of educational resources for learning HTMLand
CSS. Lots of WYSIWYG editors. Pure HTML and CSS can be immediatelyinto
displayed in all types of browsers without first having to compile it
a software component or initiate a 3rd party transformer. Pure HTML andCSS
provides for "responsive design", which means that the layout canand
automatically adapt to different page sizes; or portrait vs. landscape.
Your applications may allow users to select page sizes or orientations
the layout will adapt accordingly, without the need for custom code. Thethe
design process is a lot faster when you eliminate the "engine" aspect of
alternatives.
When you use RPG to generate documents and reports as opposed to Java,
CPU consumption drops 20 to 50 times or so. Users definitely notice thatusing
reports generate quickly as opposed to lagging. Users of our student
information system often generate 5,000+ pages of student report cards in
PDF format without any problem. RPG enables robust conditional logic for
generating HTML files from HTML templates. Then a single function call
transforms the HTML file to a PDF file. There are lots of options for
JSON data sources within RPG.options
Nathan.
On Mon, Jul 5, 2021 at 8:54 AM Marco Facchinetti <
marco.facchinetti@xxxxxxxxx> wrote:
Hi Nathan, sorry for the late answer.about
Il giorno mer 30 giu 2021 alle ore 17:48 Nathan Andelin <
nandelin@xxxxxxxxx>
ha scritto:
Hi Marco,
I appreciate your feedback. Could you further explain your concern
generating documents vs. reports? Also explain what data-source
forandyou're interested in?They
Our target is to enable the end user to modify (or create) templates.
need to be able to handle basic text, formatting, tables, and bulleted
numbered lists. Furthermore, they must be able to insert placeholders
basedthe data and condition the presence or absence of certain sections
on(usually)
specific conditions. This last part is managed (today) by Freemarker.
An average document contains 70 to 90 pages, the final document
RPG20 to 30 pages. This is due to the application of the If clauses:'Yes']dangerous
[if OrderHeader.OrderType = 'Toys']
This order contains [if OrderHeader.Attributes.Dangerous =
[/if]Toys
[/if]
As for the data source we prefer to use Json.
In regard to generating documents, from my perspective that's what
templates are great for, whether generating HTML, XML, JSON, or other
formatted documents. A single program might generate any number of
formatted output streams based on the same data source; just use an
contentAPIgenerates
to merge the data source with whatever template might be selected.
Documents may be complex. For example, one of our applications
a
roughly 15 page education plan for students, which consists of
listfromeducation
something like 30 different data sources. The template for the
overplan is a single HTML file that has many sections.
How do you choose which sections to print and which not to print?
There are many WYSIWYG options for designing HTML templates. Ourpreference
is an old version of Dreamweaver. HTML provides pixel-level control
--layout and can be supplemented by CSS styles.I'll check if they have a usable version in a browser (javascript
compatible).
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.