Re: HTTP Request and x-www-form-urlencoded

2019-10-12 Thread Tom Benedict via 4D_Tech
Thanks again Narinder. Indeed, XSLT is going away. I think what I’ve put together with Miyako’s encoding component and some hard-coded concatenation will be sufficient for this one time, non-scalable, semi-hack. ;) If I need to do it more than once I’ll look at doing it the “right” way. I ap

Re: HTTP Request and x-www-form-urlencoded

2019-10-12 Thread Keisuke Miyako via 4D_Tech
http://forums.4d.fr/Post/FR/18982177/1/18982372#18982372 or https://github.com/miyako/4d-plugin-curl-v2 https://github.com/miyako/4d-plugin-houdini in 4D code it would be something like: C_TEXT:C284($1;$0;$escaped) C_LONGINT:C283($i) C_BOOLEAN:C305($shouldEscape) C_BLOB:C604($data) For ($i;1;

Re: 4D Server Hosting - The Future ?

2019-10-12 Thread Two Way Communications via 4D_Tech
Hi Kirk, Very interesting. Here are my experiences on running a 4D v17R5 server, client on Mac and windows: If you remember my presentation on the 2018 summit (with the SVG charts for temperature mapping), that is the one running on it. First setup: t2.micro on AWS, smallest possible and free

Re: 4D Server Hosting - The Future ?

2019-10-12 Thread Kirk Brooks via 4D_Tech
Hey Rudy, I made a post yesterday on the thread about preemptive processes and how it works on VM. Ping me if you can't find it. You may find it useful because I posted some actual data from running a demo you can download. I ran it on my laptop and an AWS instance. The general specs of the AWS ins

Re: HTTP Request and x-www-form-urlencoded

2019-10-12 Thread Narinder Chandi via 4D_Tech
Tom, This may have been mentioned already, but I just remembered that it is possible to do this encoding natively with 4D's XML and XSLT Transformation commands and I wrote a pair of encode/decode functions several years ago that worked no problem. However, XSLT has been deprecated in v17. So,

Re: HTTP Request and x-www-form-urlencoded

2019-10-12 Thread Narinder Chandi via 4D_Tech
Tom, >https://github.com/miyako/4d-tips-encode-uri >I found that component earlier today and it does help a bit. I was looking for a way to fill an object with key value pairs which HTTP Request would then convert into the right content-type. Unfortunately HTTP Request is sadly

Re: HTTP Request and x-www-form-urlencoded

2019-10-12 Thread Tom Benedict via 4D_Tech
Hi Narinder, Thanks again for your quick response! >I'm not sure but maybe this will help you? > > >https://github.com/miyako/4d-tips-encode-uri > > I found that component earlier today and it does help a bit. I was looking for a way to fill an obj

Re: HTTP Request and x-www-form-urlencoded

2019-10-12 Thread Tom Benedict via 4D_Tech
Thanks John, Narinda Chandi points out Miyako’s URL_Encode component https://github.com/miyako/4d-tips-encode-uri , which appears to be a product of the forum thread you referenced. In that component Miyako discusses and supports 5 ways to encode,

Re: 4D Server Hosting - The Future ?

2019-10-12 Thread Two Way Communications via 4D_Tech
Hi Kirk, I am very interested on your progress with AWS. Can you tell me a little bit more about the kind of 4D DB you are running on it? Are you running client/server or using SQL? Do you notice speed differences between ORDA / Classic 4D? I’m asking because I am currently using AWS myself. T

Re: HTTP Request and x-www-form-urlencoded

2019-10-12 Thread John DeSoi via 4D_Tech
No easy way in 4D because there is no built in function to do url encoding. See feature request at the link below along with some code to implement it. https://forums.4d.com/Post/EN/17578327/1/17591881 John DeSoi, Ph.D. > On Oct 12, 2019, at 1:54 PM, Tom Benedict via 4D_Tech <4d_tech@lists.4d

Re: Make me smart about Write Pro

2019-10-12 Thread Kirk Brooks via 4D_Tech
Tom, On Sat, Oct 12, 2019 at 12:47 PM Tom Benedict via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Another key concept to be aware of when working with Write Pro is that is > that features are additive. In Write Classic all its features were > available by default and you had to restrict or remove f

Re: HTTP Request and x-www-form-urlencoded

2019-10-12 Thread Narinder Chandi via 4D_Tech
Tom, I'm not sure but maybe this will help you? https://github.com/miyako/4d-tips-encode-uri Regards, Narinder Chandi, ToolBox Systems Ltd. I am available for new consulting opportunities… http://4d.1045681.n5.nabble.com/ANN-4D-Developer-Available-td5765443.html -- -Original Message---

Re: HIDE MENU BAR in On Startup database method

2019-10-12 Thread John DeSoi via 4D_Tech
Are you a partner? If so, I would test it with the latest beta and report it directly on the forum if it is still not fixed in 17R6. Otherwise, the only "voting" I'm aware of is for feature requests on the 4D forum. John DeSoi, Ph.D. > On Oct 12, 2019, at 1:25 AM, Piotr Chabot Stadhouders >

HTTP Request and x-www-form-urlencoded

2019-10-12 Thread Tom Benedict via 4D_Tech
I have very little experience with HTTP Request. I’m calling an external REST service using 4D’s HTTP Request command. The REST service requires that the content-type be x-www-form-urlencoded. The “contents” parameter of the HTTP Request command supports sending a 4D Object (JSON) but that is fa

Re: Make me smart about Write Pro

2019-10-12 Thread Tom Benedict via 4D_Tech
Another key concept to be aware of when working with Write Pro is that is that features are additive. In Write Classic all its features were available by default and you had to restrict or remove features as needed via code. In Write Pro only the most basic features are available by default leav

Re: Make me smart about Write Pro

2019-10-12 Thread Jeremy French via 4D_Tech
Hi Kirk, I think you would let the user create templates by: 1) creating the template document in 4D Write; and 2) dragging value placeholders (you defined) into the document to retrieve database information. Unlike the legacy 4D Write, working programmatically with 4D Write Pro means: 1) usin

JavaScript in WebArea works on some, and it doesn't on other computers

2019-10-12 Thread Milan Adamov via 4D_Tech
I had to build OAuth2 with one site using only Authorization flow and the backend doesn't allow using cURL or HTTP Client commands (well ,they can't forbid it, but it is not working because of their coding). I have a form displayed in Web Area which I must submit using click() on the button, if

Re: stack error - again

2019-10-12 Thread Milan Adamov via 4D_Tech
> On Oct 11, 2019, at 7:08 PM, Dani Beaubien via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I would suggest contacting 4D Tech Support. Yes, open the tech case in TAOW or let the support person open it for you. Milan ** 4D

RE: HIDE MENU BAR in On Startup database method

2019-10-12 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi John, Thanks for the update! So the bug has been reported a while ago😊 Do you know there is a way to vote for this bug to be solved? Gr, Piotr -Oorspronkelijk bericht- Van: John DeSoi Verzonden: Friday, 11 October 2019 18:04 Aan: 4D iNug Technical <4d_tech@lists.4d.com> Onderwerp: