Re: Write Pro: Styling tables

2019-03-17 Thread Jeremy French via 4D_Tech
Hi Pat, "WP Get elements" returns a collection. So the first row is element 0. https://doc.4d.com/4Dv17R3/4D/17-R3/WP-Get-elements.301-3920772.en.html - Jeremy > On Mar 17, 2019, at 9:36 AM, Pat Bensky via 4D_Tech

Re: Write Pro: Styling tables

2019-03-17 Thread Jeremy French via 4D_Tech
Hi Pat, The docs seem to indicate we can’t apply style sheets to tables. See https://doc.4d.com/4Dv17R4/4D/17-R4/4D-Write-Pro-Attributes.300-403.en.html#Paragraph_3936745 - Jeremy > On

Write Pro: Styling tables

2019-03-17 Thread Pat Bensky via 4D_Tech
Using v17r4. I'm finding it "challenging" to add styling to tables in a WP document. *Problem no. 1: Attributes are applied to the wrong row* Here is some simple sample code: $rows:=*WP Get elements*(wptable;wk type table row) $n:=$rows.length // $n = 3 $row:=$rows[1] *WP SET