Creating/Modifying 4DWrite/Pro Documents via Web Page

2017-12-20 Thread Randy Engle via 4D_Tech
If anybody has done anything like this, love to hear about it!

Our customers want a "complete" web solution.
This includes creating and Editing 4DWrite Docs(could be 4DWritePro), from a  
browser.
(No, probably can't do this with 4DWrite/4DWritePro... but maybe...)
Or... the equivalent or something close.
Need the usual styles/colors/fonts (Tab Stops!!!), etc.
Some fancy super-duper javascript thingy?

The intention is to be able to do a merge with e.g. a list of customers, and 
print to a PDF.
(This is the easy part)

Creating and Editing them in the first place is the fun part.

My brain throws a hissy fit when I try to think of how to do this.

Any brainiacs out there who've done anything remotely like this?

Randy Engle, Director
XC2 Software LLC – XC2LIVE!


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

4D Write v12 Traditional Chinese

2017-12-20 Thread Jim Hays via 4D_Tech
Is it possible to use 4D Write with embedded expressions on a Windows
system using Traditional Chinese as the primary language?

We are seeing "garbage" characters in place of the << and >> brackets, and
also in the expressions themselves.

4D v12.6
Unicode mode
Windows 10

(This is with a potential customer in Taiwan.  We have had other customers
in Hong Kong for example that run an English system, but can also enter
Chinese characters, and don't have any problems.)

Thanks,

Jim
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: SFTP and Internet Commands

2017-12-20 Thread Cannon Smith via 4D_Tech
I did try to figure it out from the sample DB, but I guess I wasn’t smart 
enough. I’ve tried your example in the email alone, with SSL_VERIFYHOST set to 
0, with SSL_VERIFYPEER set to 0, with both set to 0. I’ve also tried using the 
CAINFO option with the very you have in the Resources folder. So far nothing 
has worked. I’m not sure what else to try. Also tried ftp, ftps, and tfps for 
the protocol.

--
Cannon Smith

> On Dec 20, 2017, at 2:59 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> also, if you specify ftps instead of ftp,
> you might have to pass CAINFO (see sample DB),
> or else disable SSL_VERIFYHOST and SSL_VERIFYPEER
> 
> 
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: SFTP and Internet Commands

2017-12-20 Thread Keisuke Miyako via 4D_Tech
also, if you specify ftps instead of ftp,
you might have to pass CAINFO (see sample DB),
or else disable SSL_VERIFYHOST and SSL_VERIFYPEER





**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: SFTP and Internet Commands

2017-12-20 Thread Keisuke Miyako via 4D_Tech

> curl --ftp-ssl -T "/Users/Cannon/Desktop/test.zip" -u “install:redacted" 
> "ftp://install.herdly.cloud/install/"; --connect-timeout 5

translates to something like

$path:=System folder(Desktop)+"test.zip"

C_OBJECT($options)

OB SET($options;\
"URL";"ftps://install.herdly.cloud/install/test.zip";\
"USERNAME";"install";"redacted";"pass";"CONNECTTIMEOUT";5)

$createMissingDir:=1

$error:=cURL_FTP_Send (JSON Stringify($options);$path;$createMissingDir)

---

the local path is not POSIX. (this is mandatory)
the remote path includes the file name (it might work either way, haven't 
tested)



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: SFTP and Internet Commands

2017-12-20 Thread Keisuke Miyako via 4D_Tech
did you try the code snippet on the documentation?



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: SFTP and Internet Commands

2017-12-20 Thread Cannon Smith via 4D_Tech
Hi Miyako,

I’m really struggling to get the right syntax to upload a file with your 
plugin. I can get it to work fine on the command line:

curl --ftp-ssl -T "/Users/Cannon/Desktop/test.zip" -u “install:redacted" 
"ftp://install.herdly.cloud/install/"; --connect-timeout 5

But can’t figure out the equivalent code with your plugin. Would it be possible 
to show me the way?

Thanks.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236




> On Dec 19, 2017, at 7:47 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> you can find examples of FTP, SFTP and FTPS in the sample DB.
> 
> in fact, because the backend library is curl and it accepts a URL not a host 
> name,
> you can pass http://, https:.., tftp://, telnet:// etc. to its send/receive 
> commands.

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Database locked in merged application

2017-12-20 Thread James Knight via 4D_Tech
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 contains the 
default data file (Default.4dd, Default.4Dindx and Default.Match).

Having built the application, if I inspect the package contents, I see 
Contents/Database and this contains my 4DC compiled application, with the 
populated Default Data folder alongside it.

However, I cannot make this application run at all. It tells me that the data 
file is locked and it’s impossible to open the database. The only way it will 
open is if I put a data file in the same folder as the built application,

So it looks like the data file which is wrapped up inside the application can’t 
be used, even though no write access is required.

I haven’t got as far as signing my application - I didn’t think I needed to do 
this, as I am simply copying the application directly to individual computers 
on the network. I usually use Remote Desktop to copy the built application to 
all computers on the LAN.

Hope someone can help further with this.

Cheers

James Knight
Waveney River Centre

ja...@waveneyrivercentre.co.uk 

> On 19 Dec 2017, at 23:16, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com 
> > wrote:
> 
> I don't have a solution but to better understand the situation:
> 
> are you actually using the v15 default.4dd system,
> or simply placing a {name}.4dd adjacent to the compiled structure file?
> http://doc.4d.com/4Dv15/4D/15/Default-data-file-in-merged-applications.300-2018649.en.html
>  
> 
> 
> did you code sign (and verify) your built application?
> 
> unlikely, but did you check if the read-only-allow property is passed on to 
> your built application?
> (for example, by implementing OPEN SETTINGS WINDOW)
> 
> http://doc.4d.com/4Dv15/4D/15.4/DatabaseData-storage-page.300-3285380.en.html
> 
> least but not least, always good to include the build number of 4D and the OS.
> 
>> 2017/12/20 7:41、James Knight via 4D_Tech <4d_tech@lists.4d.com> のメール:
>> It’s clearly permissions related - but how can I fix it?
> 
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**