Re: 4D Write to 4D Write Pro, Moving and using templates (Was: WR Count equivalent in 4D Write Pro)

2018-06-12 Thread JOHN BAUGHMAN via 4D_Tech
Step 1 should have read "Using WR Count and WR GET PICTURE IN PAGE INFO" > On Jun 12, 2018, at 11:41 AM, JOHN BAUGHMAN wrote: > > 1. In 4D Write store the position and dimensions of each anchored picture > place holder into a c_object. > Using WR Count and WR SELECT PICTURE IN PA

4D Write to 4D Write Pro, Moving and using templates (Was: WR Count equivalent in 4D Write Pro)

2018-06-12 Thread JOHN BAUGHMAN via 4D_Tech
If anyone was following the original thread, the underlying problem was how to address Anchored Picture place holders when converting a 4D Write template to 4D Write Pro. Beyond that, how to populate the place holder pictures when the 4D Write Pro template is used. My last post left this proble

Re: WR Count equivalent in 4D Write Pro

2018-06-11 Thread JOHN BAUGHMAN via 4D_Tech
Of course that works. Thanks. I was getting tired and cranky last night. > On Jun 10, 2018, at 10:36 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > I suppose you could use EDIT FORMULA, for a start... > >> 2018/06/11 16:06、JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> のメー

Re: WR Count equivalent in 4D Write Pro

2018-06-11 Thread Keisuke Miyako via 4D_Tech
I suppose you could use EDIT FORMULA, for a start... > 2018/06/11 16:06、JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> のメール: > > BTW, another thing I cannot find is any way to provide a means for end users > to insert 4D expressions as they can in 4D Write. I could write a dialog for > this, b

Re: WR Count equivalent in 4D Write Pro

2018-06-11 Thread JOHN BAUGHMAN via 4D_Tech
> On Jun 10, 2018, at 8:37 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > I must say it would be difficult to manipulate an existing anchored image > without Get elements or Get element by id (v17). You assumed correctly in that these are anchored pictures. I have discove

Re: WR Count equivalent in 4D Write Pro

2018-06-10 Thread Keisuke Miyako via 4D_Tech
WP SET A. expects different kind of "range", depending on the attribute type. for example, // a regular range to specify where to insert the image $range:=WP Create range($wp_l;wk end text;wk end text) // insert the image in range WP INSERT PICTURE($range;$data;wk append) // the URL is a proper

Re: WR Count equivalent in 4D Write Pro

2018-06-10 Thread JOHN BAUGHMAN via 4D_Tech
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(picture1R

Re: WR Count equivalent in 4D Write Pro

2018-06-10 Thread Keisuke Miyako via 4D_Tech
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-

Re: WR Count equivalent in 4D Write Pro

2018-06-10 Thread JOHN BAUGHMAN via 4D_Tech
> On Jun 10, 2018, at 12:53 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > WP Get element <--- returns a collection I cannot find WP Get element. Thanks. John Baughman 1331 Auwaiku Street Kailua, Hawaii 96734 (808) 262-0328 john...@hawaii.rr.com

Re: WR Count equivalent in 4D Write Pro

2018-06-10 Thread Keisuke Miyako via 4D_Tech
if you want to bulk-update all pictures in a range, use WP Create picture range (was WP Get pictures) <--- returns a class of object suitable for GET/SET ATTRIBUTES if you want to access each pictures in a range or document, use WP Get element <--- returns a collection **

WR Count equivalent in 4D Write Pro

2018-06-10 Thread JOHN BAUGHMAN via 4D_Tech
I need to determine programmatically how many pictures a user has placed in a page’s background. In 4D Write I used WR Count(myWRArea;13). Can't find a way in 4D Write Pro to count the number of pictures in the page, in background or otherwise. Thanks, John John Baughman 1331 Auwaiku Stree