Re: HTTP Basic Auth for a REST request

2019-07-17 Thread Noah via 4D_Tech
Ha! Moments after sending, I tried one more thing: HeaderNames_at{1}:="Authorization" HeaderValues_at{1}:="Basic TGFuZ2xvOlBhc3R1cml6ZWQ=" That worked! So I guess my question is much simpler. How would I manually base64 encode the needed string? Many thanks! On Wed, Jul 17, 2019 at 11:16 AM

HTTP Basic Auth for a REST request

2019-07-17 Thread Noah via 4D_Tech
We have used Basic Auth in other parts of our infrastructure with Great success, but have not had the need to pass authentication from 4D, until now. We are trying to replace a SOAP service with a REST based 'pass through' service. Using HTTPS to protect a basic auth header meets the minimum

Re: WA Evaluate JavaScript in 16.4

2018-12-20 Thread Noah via 4D_Tech
> verify your JavaScript code works outside of 4D in Safari when using Mojave. > > John DeSoi, Ph.D. > > > > On Dec 20, 2018, at 11:10 AM, Noah via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > > > The parent form: > > Case of > >: (Form event=On

WA Evaluate JavaScript in 16.4

2018-12-20 Thread Noah via 4D_Tech
Good morning! SUMMARY: In 16.4 (interpreted mode) we have a web area which displays a web page that is not under our control. We had devised a way to scrape the webpage with a custom library of JavaScript files that we kept in the resources folder. We find that in 16.4 the WA Evaluate JavaScript

Re: Using 4D with Git...

2018-11-07 Thread Noah via 4D_Tech
We have been exporting our project and form methods to flat files that we track in the Bitbucket GIT service. We chose Bitbucket because it has free private repos. What does this accomplish? It allows us to keep a record of changes (but no smooth way to revert changes, and no way to track form

Re: Changes to variable initialization in v16?

2018-08-02 Thread Noah via 4D_Tech
So we saw this error pop up elsewhere in our beta test of v16 under the same circumstances: Error:"A variable was expected" the line of code is: SET QUERY DESTINATION(Into variable;$LQueryResult) Looking at the Unique Values project method in the example on this page:

Re: Changes to variable initialization in v16?

2018-08-01 Thread Noah via 4D_Tech
he error as if it was because of "scoping of variable > initialisation and form events" is the wrong approach, in my opinion. > > 2018/08/01 23:34、Noah via 4D_Tech <4d_tech@lists.4d.com 4d_tech@lists.4d.com>>のメール: > > Is is really 'that bad' to run in interpreted mod

Re: Changes to variable initialization in v16?

2018-08-01 Thread Noah via 4D_Tech
Thank you both for the speedy replies! Unfortunately this inherited application IS running in interpreted mode and has hundreds of errors that would keep it from compiling. As time permits we will occasionally revisit the compilation errors and work towards a compiled version (but we have not

Changes to variable initialization in v16?

2018-07-31 Thread Noah via 4D_Tech
Good afternoon, We are in the process of converting an application from 15 to 16 and one of the first errors that we have encountered came from a line that was setting the query destination into a variable. The variable was declared in the on Load form event, and this code has worked without a

Re: Server Monitoring...

2018-07-19 Thread Noah via 4D_Tech
We like to make use of command line tools, and this one was perfect! https://github.com/miyako/4d-utility-ls4d On Wed, Jul 18, 2018 at 1:11 AM fpoeck via 4D_Tech <4d_tech@lists.4d.com> wrote: > Using Nagios here as well internally. > > Services: > - ping for the obvious > - 4d using: > >

Re: problems with SEND RECORD

2018-07-03 Thread Noah via 4D_Tech
String(Current date(*);" | Short")+Char(13) > [Approvals];[Approvals]approved:=True > > SAVE RECORD([Approvals]) > NEXT RECORD([Approvals]) > End for > Else > ALERT("Operation canceled.") > End if > > > > >

Re: problems with SEND RECORD

2018-07-03 Thread Noah via 4D_Tech
Thank you all for the quick feedback! The approvals table has all records with Approved defaulting to False. The problem was with not including Set Channel (which is not really what I wanted to be doing anyways). I must have taken a fork in the road (while reading the documentation this morning)

problems with SEND RECORD

2018-07-03 Thread Noah via 4D_Tech
Good morning! I work with a large codebase that has had many developers over the years. Consequently, when building something new, I will sometimes look to see how something was done previously. More often it has been the case that I will go straight to the documentation to see the currently

List form for reporting

2018-05-02 Thread Noah via 4D_Tech
Good afternoon! I need to develop a print report that I was hoping would be a as simple as PRINT SELECTION, however what needs to be printed is not in a single table (there are at least two tables to get the information from). The tables are called [Projects] and [Approvals] One project can have