Re: 4D Write PRO: editing a table / collections

2018-07-12 Thread Two Way Communications via 4D_Tech
Achim, have you tried this yourself? I think it is not possible in 4D Write PRO v17 to select 1 or more cells in a table and then be able to get the cells reference by code. Just follow this scenario: - the user creates a table in 4D Write PRO (by clicking a button containing the code WP

Re: 4D Write PRO: editing a table / collections

2018-07-11 Thread Keisuke Miyako via 4D_Tech
a table reference can be obtained from WP Create table range http://doc.4d.com/4Dv17/4D/17/WP-Create-table-range.301-3703205.en.html WP Get elements http://doc.4d.com/4Dv17/4D/17/WP-Get-elements.301-3703212.en.html or WP Get element by ID

Re: 4D Write PRO: editing a table / collections

2018-07-11 Thread JOHN BAUGHMAN via 4D_Tech
On Jul 10, 2018, at 10:41 PM, Two Way Communications via 4D_Tech <4d_tech@lists.4d.com> wrote: > > You’re right, John. > > When I re-open the document, the table has another reference, and WP SELECT > doesn’t work anymore… > > Is there any other way to get the object reference for a table in

Re: 4D Write PRO: editing a table / collections

2018-07-11 Thread Two Way Communications via 4D_Tech
new text and set parameters 3 and 4 accordingly. >> >> Achim >> >> >> >> >> -Ursprüngliche Nachricht- >> Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von Two Way >> Communications via 4D_Tech >> Gesendet: Mittwoch,

Re: 4D Write PRO: editing a table / collections

2018-07-11 Thread Two Way Communications via 4D_Tech
t- > Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von Two Way > Communications via 4D_Tech > Gesendet: Mittwoch, 11. Juli 2018 16:37 > An: 4D iNug Technical <4d_tech@lists.4d.com> > Cc: Two Way Communications > Betreff: Re: 4D Write PRO: editin

Re: 4D Write PRO: editing a table / collections

2018-07-11 Thread Two Way Communications via 4D_Tech
mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von Two Way > Communications via 4D_Tech > Gesendet: Mittwoch, 11. Juli 2018 12:21 > An: 4D iNug Technical <4d_tech@lists.4d.com> > Cc: Two Way Communications > Betreff: Re: 4D Write PRO: editing a table / collections > &

Re: 4D Write PRO: editing a table / collections

2018-07-11 Thread Two Way Communications via 4D_Tech
In v17, we can now get the element id’s, and also select the table objects in a document, so that is definitely an improvement. But, in case there is more than 1 table in the document, I fail to get a reference for the table where the cursor is in… has anyone figured out how to do that? How

Re: 4D Write PRO: editing a table / collections

2018-07-11 Thread Two Way Communications via 4D_Tech
You’re right, John. When I re-open the document, the table has another reference, and WP SELECT doesn’t work anymore… Is there any other way to get the object reference for a table in a 4D Write PRO document? WP Get selection doesn’t seem to work for table objects: $WPRange:=WP Get

Re: 4D Write PRO: editing a table / collections

2018-07-10 Thread Randy Jaynes via 4D_Tech
Another thing we’re struggling with is that we’re building 4D WP documents using code and make tables so that the resulting area can be easily turned into an HTML email. Unfortunately, that makes the Write area awkward for a user to modify. It’s not easy to manipulate the tables (delete/add

Re: 4D Write PRO: editing a table / collections

2018-07-10 Thread JOHN BAUGHMAN via 4D_Tech
Try putting the collection in a c_object and store the c_object in an c_object field, or put the collection directly into the c_object field I am assuming that $tableObj is the object reference to the table. If tables are anything like images, your plan might not work. Each time a document is