Ahhh…. V17. I am working in v16R6.

Given a 4D Write Pro Template with a bunch of pictures that are in essence 
place holders to be filled when the template is used, how can I use WP SET 
ATTRIBUTES tp assign pictures from the database when the template is used…

        WP SET ATTRIBUTES(picture1Ref;wk image;[Patient]photo1)

Maybe there is another way to assign the pictures?

I have not yet tried using the template, but I tried saving the references 
returned from WP Add picture() in the template record then using the saved 
reference to change the picture after saving and reopening the record. That did 
not work. If it doesn’t work between template loads it’s certainly not going to 
work when the template is used in a different table ([Letters]). So I think I 
need a way to create or access each picture’s reference object when the 
template is loaded.

This may be further complicated if the pro template was created with 4D Write. 
After converting the templates how do I reference the pictures? 


Thanks,

John




> On Jun 10, 2018, at 2:28 PM, Keisuke Miyako via 4D_Tech 
> <[email protected]> wrote:
> 
> c.f.
> 
> http://doc.4d.com/4Dv17/4D/17/WP-Get-elements.301-3703212.en.html
> 
> a whacky alternative would be:
> 
> WP EXPORT DOCUMENT + wk web page complete and parse the XHTML (or count the 
> number of attachments)
> 
> working directly with XHTML is also quite useful to setup a preconfigured 
> document with non-default settings.
> you can then pass the XHTML to WP New.
> 
>> 2018/06/11 9:12、JOHN BAUGHMAN via 4D_Tech <[email protected]> のメール:
>> I cannot find WP Get element.
> 
> 
> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************

John Baughman
1331 Auwaiku Street
Kailua, Hawaii  96734
(808) 262-0328
[email protected]

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to