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 columns or rows, or delete the whole 
table).

We opted for this route in order to be able to go to HTML easily because we 
found that using tab stops didn’t translate well.

Seems to be a catch-22. We tried v17 today to see if it was any better than 
v16R6, but doesn’t seem to be.

Your solution for tracking the collection would seem to help if we were doing 
everything with code, but seems like it doesn’t change anything with regard to 
letting a user make changes themselves.

Randy

----------------------------------------------------------------------
Randy Jaynes
Senior Programmer and Customer Support

http://printpoint.com <http://printpoint.com/> • 845.687.3741 • PrintPoint, Inc 
• 57 Ludlow Lane • Palisades, NY 10964 
Please send all email contacts to [email protected] 
<mailto:[email protected]>




> On Jul 10, 2018, at 5:45 PM, Two Way Communications via 4D_Tech 
> <[email protected] <mailto:[email protected]>> wrote:
> 
> I love the concept of tables in 4D Write Pro.
> 
> You can only add or change them by code, which is fine by me for the  moment.
> But what to do if a table has been created, and, in the 4D Write Pro 
> document, you would want to add a column, or a row? Or change the width, the 
> borders etc?
> 
> Apparently there is no way to select the table object. I have tried WP Get 
> selection, but that doesn’t work for tables. Or maybe I am missing something.
> 
> I found out that I can select the table again (in code) using WP 
> SELECT($tableObj). So, as soon as I have created the table in code, I copy 
> the table object in a collection. (Yes, I am using deep copy)
> I do that for every table created in the 4D Write Pro document.
> When I save the record, I put the collection variable in a blob (VARIABLE TO 
> BLOB), so I can retrieve the objects again.
> 
> When I open the record, I read the collection from the blob (BLOB TO 
> VARIABLE), but OK returns 0, and the collection variable stays empty.
> 
> Here’s the code:
> 
> C_COLLECTION(c4WRTableCollections)                                    
> c4WRTableCollections:=New collection
> BLOB TO VARIABLE([_10_Report_templates]Blob_4WR_tbls;c4WRTableCollections)
>       
> 
>                               
> Any idea why it’s doing that, and how one could create a table in a 4D Writw 
> PRO document, save it, open it again, and edit the table?
> 
> 
> 
> Regards,
> 
> Rudy Mortier
> Two Way Communications bvba 
> 
> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html <http://lists.4d.com/faqnug.html>
> Archive:  http://lists.4d.com/archives.html 
> <http://lists.4d.com/archives.html>
> Options: https://lists.4d.com/mailman/options/4d_tech 
> <https://lists.4d.com/mailman/options/4d_tech>
> Unsub:  mailto:[email protected] 
> <mailto:[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