How do you produce your HTML/PDF documents
Fairlight
fairlite at fairlite.com
Mon Aug 17 15:36:31 PDT 2020
Yeah, same concept, but fP is arguably one of the -least- efficient
languages in which to do it.
OneGate lets you define a field assignment file. Anywhere in the output it
sees the original 'token', it will substitute in the correct value from the
merge file. You aren't limited to a single syntax like you illustrated.
You could use a few dozen syntaxes in one document, if you like.
m->
On Mon, Aug 17, 2020 at 05:39:45PM -0400, Jose Lerebours via Filepro-list thus spoke:
> On 8/17/20 5:24 PM, Fairlight via Filepro-list wrote:
> > HTML and CSS, native open/writeline/close. As complex as necessary.
> > Actually, OneGate has merge functionality now, so I only need to write
> > out a merge file.
> A while back I wrote a filePro routine that one could call to scan
> through a given document, search for macros (that is what I called
> it) such as &fp###; or &fpaa; $fpwx; and the routine will replace
> the referenced macro with the value of the field (###) or the dummy
> variable (aa, wx ...).
>
> This came out of the need to produce receipt confirmation, work
> orders and the likes and send them via email (this goes back early 2K).
>
> I used arrays such as fields(999):1 and dummies(626):aa to reference
> source fields.
>
> What made this approach very flexible was the ability to produce any form,
> in any design and push it to the application without any changes to the
> filePro code. Those days use of WYSIWYG editors were very popular and so,
> I took full advantage of it.
>
> I do not recall if I defined the dummy array as global so that I could use
> the
> routine as a "call" or "chain" ... I tell you one thing, it was pretty slick
> and
> surprisingly simple and reliable solution to what, back then, seem like a
> big
> deal.
>
> So, if you had something like:
>
> <td>Name</td><td>&fp120;</td>
>
> &fp120; would had been replaced with whatever value field 120 held.
>
> Is your OneGate merge similar to this?
>
>
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
--
Audio panton, cogito singularis.
More information about the Filepro-list
mailing list