Re: Make me smart about Write Pro

2019-10-12 Thread Kirk Brooks via 4D_Tech
Tom,

On Sat, Oct 12, 2019 at 12:47 PM Tom Benedict via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Another key concept to be aware of when working with Write Pro is that is
> that features are additive. In Write Classic all its features were
> available by default and you had to restrict or remove features as needed
> via code. In Write Pro only the most basic features are available by
> default leaving you to add the ones you want, via code.
>
Thank you for that tip.


> There is lots of documentation for Write Pro. Unfortunately it is spread
> through the 4D Write Pro Reference, 4D Language Reference, 4D Design
> Reference, 4D Tech Notes and the 4D Blog. You may wish to spend a few days
> (or weeks) browsing the various resources before you begin.
>
True and true. That's why I thought I'd start this discussion, to try to
get a sense of where to start.

I re-watched Caroline's preso from the 2018 Summit (on the blog
).
That's giving me a place to start. I was actually there for it but didn't
appreciate what her demo actually accomplished until I started attempting
it myself. Hence her comment after the demo runs and the room is quiet:
"Hey, that's pretty good isn't it?" In fact it is.

-- 
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

*Wittgenstein and the Computer *
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Make me smart about Write Pro

2019-10-12 Thread Tom Benedict via 4D_Tech
Another key concept to be aware of when working with Write Pro is that is that 
features are additive. In Write Classic all its features were available by 
default and you had to restrict or remove features as needed via code. In Write 
Pro only the most basic features are available by default leaving you to add 
the ones you want, via code.

Write Pro is very well suited to the “lease or contract” use case you described 
Kirk. You could have various template pieces for different parts of the 
contract which could be dragged into a WP area.

There is lots of documentation for Write Pro. Unfortunately it is spread 
through the 4D Write Pro Reference, 4D Language Reference, 4D Design Reference, 
4D Tech Notes and the 4D Blog. You may wish to spend a few days (or weeks) 
browsing the various resources before you begin. I’ve spent over 3 months 
converting our app to Write Pro and have only scratched the surface. The 4D 
technical team members on forums.4d.fr are quite responsive.

HTH,

Tom Benedict

> On Oct 12, 2019, at 11:38, Jeremy French via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi Kirk,
> 
> I think you would let the user create templates by:
> 
> 1) creating the template document in 4D Write; and
> 2) dragging value placeholders (you defined) into the document to retrieve 
> database information.
> 
> Unlike the legacy 4D Write, working programmatically with 4D Write Pro means:
> 
> 1) using Write Pro commands; and
> 2) mixing-in commands from the 4D language.
> 
> For embedding expressions in a Write Pro document, have you looked at these 
> Styled Text commands?
> 
> 1) ST INSERT EXPRESSION (to embed reference in template document)
> 2) ST COMPUTE EXPRESSION (to get reference values)
> 3) ST SET OPTIONS (to switch display of reference and value of reference)
> 
> Best regards,
> Jeremy French
> 
> 
>> On Oct 11, 2019, at 7:22 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>> my own template
>> management
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Make me smart about Write Pro

2019-10-12 Thread Jeremy French via 4D_Tech
Hi Kirk,

I think you would let the user create templates by:

1) creating the template document in 4D Write; and
2) dragging value placeholders (you defined) into the document to retrieve 
database information.

Unlike the legacy 4D Write, working programmatically with 4D Write Pro means:

1) using Write Pro commands; and
2) mixing-in commands from the 4D language.

For embedding expressions in a Write Pro document, have you looked at these 
Styled Text commands?

1) ST INSERT EXPRESSION (to embed reference in template document)
2) ST COMPUTE EXPRESSION (to get reference values)
3) ST SET OPTIONS (to switch display of reference and value of reference)

Best regards,
Jeremy French


> On Oct 11, 2019, at 7:22 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> my own template
> management

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**