Re(2): Curious about "functional programming"

2017-12-21 Thread Don Lapin via 4D_Tech
Hi John, Do the difficulties of a functional approach apply to almost any database-type application, or is it more the issues with error handling in 4D? Are there other circumstances where a functional approach works well, or is it simply an ideal? Do object-oriented languages

Re: SFTP and Internet Commands

2017-12-21 Thread Cannon Smith via 4D_Tech
I’d like to thank Miyako for his help on this issue. It turned out that the plugin needed to be updated (twice!) to handle the type of FTP I was using and he did it all very quickly. If anyone else needs this, there is a version 1.2 of the plugin available now.

Re: Database locked in merged application

2017-12-21 Thread Keisuke Miyako via 4D_Tech
one thing to keep in mind is that Default.4DD is always opened in R/O mode in a built application. the main objective of this feature is to suppress the "select or create data file" dialog on startup. I understand your app is meant to be R/O, but normally, there should be code to find and switch

Re: Database locked in merged application

2017-12-21 Thread Keith Culotta via 4D_Tech
Re: So it looks like the data file which is wrapped up inside the application can’t be used After opening the app's package, doing a "Get Info" on the contents, making permissions R/W, and then building the app, that message went away in the built application. I had set the DB preference to

Re: Curious about "functional programming"

2017-12-21 Thread John DeSoi via 4D_Tech
> On Dec 21, 2017, at 3:06 PM, Don Lapin via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > 4D does not seem to lend itself to the functional approach. Completely true. Changing the database is non-functional. You could try to enforce this discipline, but I think it would be difficult to get

Re: MS SQL Server Deletion Issue

2017-12-21 Thread Charles Miller via 4D_Tech
Hi ware you connecting to SQL server. Are you logging in or using windows autghentication fiorm machine. I woiuld try the other and see if there is a difference Regards Chuck On Thu, Dec 21, 2017 at 3:04 PM, Stephen J. Orth via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Is there a known issue in

Re: Curious about "functional programming"

2017-12-21 Thread Charles Miller via 4D_Tech
I view it a little differently although my CS backround is old (graduated in 1983 with MS)., Procerdural is a style which is baed upon a language, COBOL for example ios a procedural based language. C++ is an object based language. Not sure if this helps Happy holidays to all and to all a good

Curious about "functional programming"

2017-12-21 Thread Don Lapin via 4D_Tech
Hello, There seem to be at least two different "programming paradigms": - Procedural programming, where the subroutines make changes to the system; and - Functional programming, where called methods only return results to the calling method (ie, the called method does not perform any work

Re: Creating/Modifying 4DWrite/Pro Documents via Web Page

2017-12-21 Thread Kirk Brooks via 4D_Tech
On Thu, Dec 21, 2017 at 10:01 AM, Timothy Penner via 4D_Tech < 4d_tech@lists.4d.com> wrote: > { > Note: The 4D Write Pro internal document format is a proprietary HTML > extension, compatible with HTML5/XHTML5, but which supports its own subset > of HTML/CSS attributes and tags. As a result, only

MS SQL Server Deletion Issue

2017-12-21 Thread Stephen J. Orth via 4D_Tech
Is there a known issue in V16 regarding the deletion of records from MS SQL Server? We converted a system from V15 R5 over to V16.3 NB217768. We are able to read SQL records, but no longer able to delete them. We are using the standard, built in 4D SQL commands, same code in both V15 & V16.

RE: Creating/Modifying 4DWrite/Pro Documents via Web Page

2017-12-21 Thread Timothy Penner via 4D_Tech
Please keep this in mind; { Note: The 4D Write Pro internal document format is a proprietary HTML extension, compatible with HTML5/XHTML5, but which supports its own subset of HTML/CSS attributes and tags. As a result, only HTML documents exported by 4D Write Pro can be opened by 4D Write Pro

RE: Database locked in merged application

2017-12-21 Thread Timothy Penner via 4D_Tech
My assumption is that the application is falling victim to Gatekeeper and being translocated to a read-only location. Apple documents how to get around this; they suggest signing the app and placing it on a dmg and then signing the dmg. Quote from Apple: "For distribution outside of the Mac App

Re: Creating/Modifying 4DWrite/Pro Documents via Web Page

2017-12-21 Thread Lee Hinde via 4D_Tech
The licensing on that and the other contender, https://ckeditor.com , isn’t MIT open source, it’s LPGL open source… https://ckeditor.com/ckeditor-5-framework/pricing/ https://www.tinymce.com/pricing/

Re: Database locked in merged application

2017-12-21 Thread James Knight via 4D_Tech
Can anyone help me with this? Thanks James Thanks to those who’ve replied so far with this. I’m using 4D 15.5 build 15.216758 on Mac OS X 10.13.1 I think that I’ve followed the instructions for creating a default data file - I have a Default Data folder next to my .4db file, and this

Re: Sending attachments with SMTP_QuickSend?

2017-12-21 Thread Pat Bensky via 4D_Tech
Excellent stuff, thanks Keisuke! I've got it working now. Pat On 20 December 2017 at 00:42, Keisuke Miyako via 4D_Tech < 4d_tech@lists.4d.com> wrote: > just posted some here: > > https://github.com/miyako/4d-tips-send-mail > > obviously you need to fill it with your own account details. (they

Re: Creating/Modifying 4DWrite/Pro Documents via Web Page

2017-12-21 Thread Paul Dennis via 4D_Tech
I assumed when they announced write pro and it was based upon HTML that we would be able to do this but progress has been slow and nothing's been announced. As Pat mentioned you should be able to use one of the JavaScript editors such as Tinymce but I believe that write pro uses custom tags so

Re: Creating/Modifying 4DWrite/Pro Documents via Web Page

2017-12-21 Thread Pat Bensky via 4D_Tech
I'm pretty sure this cannot be done with any flavour of 4DWrite ... I'd maybe use something like TinyMCE ( https://www.tinymce.com/docs/demo/full-featured/) and find a way to insert tags to merge data. TinyMCE is open source and either cloud- or self-hosted and mobile-friendly. This is something