Re: [ANN] AJ_MATH 1.2

2020-03-10 Thread GI - AJAR via 4D_Tech
Hi,

Effectively, there was a trace of a method from the AJ_Tools_UnitTest component 
in the AJ_Math component that makes an unwanted dependency.

This is fixed and you can now download the 1.2.2 version which doesn’t have any 
dependencies.

If you want to look at the unit tests, you must launch the "Math-unit-test” 
project. The "AJ_Math.4dbase" is a component and should not be launched by 
itself, but should be put in the “Components” folder inside another project.

Thanks for the feedback.

Best Regards,

Gabriel Inzirillo
— 
4D Developer
AJAR S.A.
—
https://ch-fr.4d.com/ 
https://www.my4dexperience.com
twitter: ajar_info
Tél : +41 (0)32 3422684


> On 9 Mar 2020, at 21:52, Mike Kerner via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> opening the project works, it's the 4dbase that breaks.
> 
> On Mon, Mar 9, 2020 at 2:49 PM Mike Kerner  >
> wrote:
> 
>> the database piece is throwing an error that it needs the unit test
>> piece.  did you change your folder organziation?
>> 
>> On Mon, Mar 9, 2020 at 8:05 AM Maurice Inzirillo - AJAR via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
>> 
>>> We are proud to announce our new release AJ_Math 1.2
>>> 
>>> * * * AJ_Math - Math functions for 4D * * *
>>> 
>>> It is intended for 4D developers. The component AJ_Math covers
>>> mathematical and trigonometric functions.
>>> 
>>> AJ_Math is one of the 4D tool components of our AJ_Suite which includes :
>>> • AJUI_Banner 1.7
>>> • AJUI_Breadcrumb 1.2.1
>>> • AJUI_Tip 1.6.1
>>> • AJUI_Progressbar 1.1
>>> • AJUI_FloatingLabel 1.1.1
>>> • AJUI_Button 1.3.1
>>> • AJ_Tools_Regex
>>> • AJ_Tools_xliff
>>> • AJ_Tools_UnitTest 1.0.1
>>> 
>>> This Free component is available here :
>>> 
>>> https://ch-fr.4d.com/aj-suite
>>> 
>>> What's new since version 1.0?
>>> 
>>> The component has been extended with new functions :
>>> - Math.acos(x)
>>> - Math.asin(x)
>>> - Math.atan2(y;x)
>>> - Math.spherodistance (latitude1;longitude1;latitude2;longitude2)
>>> - Math.toRadians(degrees)
>>> - Math.toDegrees(radians)
>>> - Math.roundDecimal(x;precision;roundType)
>>> roundType supported :
>>>  • ROUND_UP,
>>>  • ROUND_DOWN,
>>>  • ROUND_CEILING,
>>>  • ROUND_FLOOR,
>>>  • ROUND_HALF_UP,
>>>  • ROUND_HALF_DOWN,
>>>  • ROUND_HALF_CEILING,
>>>  • ROUND_HALF_FLOOR,
>>>  • ROUND_HALF_EVEN.
>>> 
>>> The wiki on github has been updated accordingly.
>>> 
>>> 
>>> 
>>> Maurice Inzirillo
>>> --
>>> AJAR S.A.
>>> 
>>> https://ch-fr.4d.com
>>> twitter: ajar_info
>>> Tél : +41 (0)323422684
>>> 
>>> 
>>> 
>>> 
>>> 
>>> **
>>> 4D Internet Users Group (4D iNUG)
>>> Archive:  http://lists.4d.com/archives.html
>>> Options: https://lists.4d.com/mailman/options/4d_tech
>>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>>> **
>> 
>> 
>> 
>> --
>> On the first day, God created the heavens and the Earth
>> On the second day, God created the oceans.
>> On the third day, God put the animals on hold for a few hours,
>>   and did a little diving.
>> And God said, "This is good."
>> 
> 
> 
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html 
> 
> Options: https://lists.4d.com/mailman/options/4d_tech 
> 
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com 
> 
> **

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

Re: v18: bug in METHOD SET CODE?

2020-02-13 Thread GI - AJAR via 4D_Tech
Hi,

We already reported a bug. And yes the way before the fix is to call it twice. 
 
Gabriel

Envoyé de mon iPhone

> Le 13 févr. 2020 à 19:16, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> I’m using METHOD SET CODE from a component to inject a callback method into 
> the host. It’s worked well until now but in v18 it going wrong. The code 
> (simplified) is
> 
> C_TEXT($hostName;$componentName;$code)
> $componentName:="_injectedMethod"
> $hostName:="injectedMethod"
> 
> METHOD GET CODE($componentName;$code)
> METHOD SET CODE($hostName;$code;*)
> 
> The method _injectedMethod in the component contains a few lines of comments, 
> for testing.
> 
> This code creates a method in the host, called injectedMethod, as it should; 
> but the method is empty.
> 
> If I execute the METHOD SET CODE call a second time, it injects the code of 
> _injectedMethod as it should,
> 
> Can anyone enlighten me, before I post a bug report?
> 
> Jeremy
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **


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

Re: My 4D Experience Blog

2019-08-25 Thread GI - AJAR via 4D_Tech
Hi Jeremy,

Thanks for your interest. It is true that I have forgotten to change the color 
of the SQL statements, I rarely use SQL so until today I didn’t face this 
problem. I will update the preferences file on the dropbox.

Best Regards,

Gabriel Inzirillo
— 
4D Developer
AJAR S.A.
—
https://ch-fr.4d.com/ 
https://www.my4dexperience.com
twitter: ajar_info
Tél : +41 (0)32 3422684

> On 20 Aug 2019, at 13:30, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Thanks as ever, Miyako. I’d missed that!
> 
> Jeremy
> 
>> On 20 Aug 2019, at 09:58, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>> you know there is a popup to switch languages?
>> 
>> https://imgur.com/dFnn6H3
>> 
>>> 2019/08/20 17:49、Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com>のメール:
>>> 
>>> The dark background colour scheme is great, but poses difficulties for SQL 
>>> code, which is subject to the “black on black” problem and rather tricky to 
>>> read.. Is there a way of changing the colour of SQL code? I can’t see 
>>> anything obvious in the preferences. V17R5.
>> 
>> 
>> 
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

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

My 4D Experience Blog

2019-08-08 Thread GI - AJAR via 4D_Tech
Hi Everyone,

I would like to share with you my blog about my experience with this great 
development tool (for those who didn’t see it yet).

I write my ideas, and experiences I can have within my company AJAR SA as a 
consultant, first level support and 4D developer.

I wish to write more posts but it can be time consuming and time is always 
missing. I have a growing list of stuff I would like to write on it, mainly 
based on trying to explain how 4D work in deep. Let me know if you have any 
ideas on how to improve my blog.

As a small gift for the readers, I have put a small spoil of what coming next 
in the AJ Suite components. I’m sure it will be well appreciated in the 4D 
community.

Here is the link : https://www.my4dexperience.com 


Thanks for your attention.

Best Regards,

Gabriel Inzirillo
— 
4D Developer
AJAR S.A.
—
https://ch-fr.4d.com/ 
https://www.my4dexperience.com
twitter: ajar_info
Tél : +41 (0)32 3422684

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

Re: Dialog (;*) question

2019-06-25 Thread GI - AJAR via 4D_Tech
Hello Peter,

This is a good question. The actual behavior you are encountering is because 
the process will die after the execution of the code.

Thanks to the worker it is now possible to use a worker to display dialog with 
the * parameter. A worker never die until you kill it with KILL WORKER.

This pattern will allow you to open a new dialog in a worker process called 
“main_windows”.

C_BOOLEAN($1)

If (Count parameters=0)
CALL WORKER("main_windows";Current method name;True)
Else 

$ref_win:=Open form window("myDialog";Plain form window)
DIALOG("myDialog";*)

End if 

Hope it helps.

Best Regards,

Gabriel Inzirillo
— 
4D Developer
AJAR S.A.
—
https://ch-fr.4d.com/ 
twitter: ajar_info
Tél : +41 (0)32 3422684

> On 25 Jun 2019, at 15:45, Peter Bozek via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I maybe already asked this question, but anyway I am still a bit confused:
> 
> I wanted to use DIALOG with * as an additional parameter, but have problem
> to make it work. I have app that display several info windows - like
> palettes, progress messages, communication statuses etc.Currently, I often
> need 2 processes for each task: one does the work as background task,
> another display it status / progress.  So instead of running a separate
> process for each window, why not to use one process that will display
> whatever windows application wants to display? Or display status from
> inside background process that do communication or lengthy task.
> 
> My original idea was to call
> 
> OPEN FORM WINDOW
> DIALOG(;*)
> PAUSE PROCESS
> 
> but that does not work, as the process execution is "standing" at PAUSE
> PROCESS and no code is executed (and CALL FORM is either not executed or
> window is not redrawn.)
> 
> When I remove PAUSE PROCESS, process ends and DIALOG window is closed.
> 
> According to documentation, it would work of I do
> OPEN FORM WINDOW
> DIALOG(;*)
> DIALOG()
> 
> but that is quite ugly, and would cause some problems, as I want the
> process that calls DIALOG(;*) periodically evaluate which windows are open
> and close itself if none.
> 
> Another possibility is just to open window and call DIALOG(), then call
> DIALOG(;*) from inside the form method of the first DIALOG() form. That
> would (probably) work, form can use On timer event to check what is open,
> open additional dialogs etc. but I do not like the idea either.
> 
> Is there a way how to use DIALOG(;*)  from a process that does not have any
> other window open?
> 
> Regards,
> 
> -- 
> 
> 
> Peter Bozek
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

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

Re: $D V17 as a service

2019-03-18 Thread GI -AJAR via 4D_Tech
Hi Pat. 

We had the same issue some time ago and figured out how to solve the problem. 
The issue was that we use the new architecture for deploymemt and with this new 
architecture, the datafile location is stored in a xml file in the user appdata 
of the user which launch the application the first time. In our case it was the 
Administrator. Because as a Service it was Local System user, 4D stop to run 
because he could not find a datafile to open. The solution was to move this xml 
file in the appdata of the Local System user (located in a deep hidden place 
but findable). This solve our issue.

I dont know if it is the same for you. But I assume you launch 4D as 
Administrator when you launch it normally(not as a service). 

You can also get some more informations in the event logs of windows and get 
the log of why 4D stops. In our case it was written « cannot open a datafile » 
or something like that. 

Hope ut can help. 

Gabriel 

Envoyé de mon iPhone

> Le 19 mars 2019 à 01:22, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> I have been banging my head against the wall with this problem for weeks :)
> Advice I was given was to NOT run the service with the Local system Access
> option selected but to create a new user account and use that. I got the
> client's IT dept. to create a new user account and it is selected under
> "This account" in Task Manager->Services->Properties->Log on.
> 
> So in the Task Manager it says the app is "Running", but in the Properties
> dialog, under General, it says Service status: Stopped. If I click Start it
> starts but then immediately reverts to Stopped.
> 
> If I do not try to run the app as a service, it runs just fine, and I can
> connect to it from a Client on the same machine, so I'm confident that
> there isn't a problem with the app that's preventing it from running.
> 
> I started a thread on this topic a few weeks ago and I believe I've
> followed the advice given there :) But still can't get it to work.
> 
> Pat
> 
> On Mon, 18 Mar 2019 at 22:12, Robert ListMail via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> I’m having the same issue with Windows Server 2016 and Windows 10 Pro
>> (local Dev OS) when using a built server.
>> 
>> The steps I generally take are:
>>-Launch the built server as Admin.
>>-Say yes to any firewall questions from the OS.
>>-Register as a service.
>>-Start 4D Server service via Service control panel of the OS.
>>-connect with 4D client…. Be happy!
>> 
>> The problem is that the client does not connect. Upon closer inspection, I
>> notice that the server is initially started as a server then it apparently
>> quits just after it starts. The Service list shows it running and it looks
>> like it’s running, then after a refresh of that list, it’s clearly not
>> running.
>> 
>> Any ideas?
>> 
>> Thanks,
>> 
>> Robert
>> 
>>> On Jan 28, 2019, at 4:15 PM, Uist Macdonald via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
>>> 
>>> When I run 4d Server V17.0 as an app under Windows Server 2016, I can
>> connect to it OK.  However if I run it as a service, I cannot connect.
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> 
> 
> 
> -- 
> *
> CatBase - Top Dog in Data Publishing
> tel: +44 (0) 207 118 7889
> w: http://www.catbase.com
> skype: pat.bensky
> *
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **


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

Re: Delay Worker Process

2019-03-14 Thread GI -AJAR via 4D_Tech
Hi,

Why do you need to run the check after few seconds?  We use this same kind of 
worker to write logs in files. As you said, the worker assure the file not to 
be opened. So in this contexte you know your file is accessible. You can still 
have an error handler to handle the case where there is an unexpected issue. We 
have a log table for those rare cases. 

I didn't try but a delay process should work in a worker but I would say it is 
not optimal as it will make the stack of the messages to wait seconds before to 
be processed. A worker should be fast so the next messages can be process 
quickly. But it depend on the number of log request you send to the worker. 

Gabriel Inzirillo. 

Envoyé de mon iPhone

> Le 13 mars 2019 à 22:15, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> Hi Everyone,
> 
> I’m trying to do some quick and dirty logging to track down an issue at a 
> customer’s site. As part of that I need to log some information to a file, 
> always on the server. I figured the simplest would be to call a method each 
> time I need to log some information and pass the info to it. The method has 
> the Execute on Server property set so all logging happens on the server. I 
> don’t want anything tied up waiting for the logging to happen, so I have the 
> method call a worker process (on the server) and pass in the relevant 
> information to it. The worker is responsible to run some checks, ensure the 
> correct file exists, write the information to the file, and possibly send a 
> Slack message. Using a worker also ensures that a file is not being opened by 
> multiple processes at the same time.
> 
> So far all this works as hoped for and was simple to code. The problem is 
> that the worker process needs to run the checks a few seconds _after_ the 
> initial request to log information happened. Since the worker is just in a 
> cooperative process I figured I could add DELAY PROCESS. But it seems not to 
> work.
> 
> I could re-engineer the whole thing to use a background process in a loop on 
> the server and some IP arrays or a table, but was hoping to keep it simpler. 
> Does anyone know how to pause a worker process for a few seconds?
> 
> This is v17.1HF1.
> 
> Thanks.
> 
> --
> Cannon.Smith
> Synergy Farm Solutions Inc.
> Aetna, AB Canada
> 
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **


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

Re: 4D V16 R6 Vs 4D V16.5

2019-03-13 Thread GI -AJAR via 4D_Tech
Hi,

For me too it is not confusing. Actually to call it V17 beta is not only more 
confusing but it is wrong. 

Actually you can see v17 as a 16 R7 if you like.

R release make it easier to go through the new features 4D implement by having 
them little by little instead to have a full load of new features after 1 and 
half year. I really think this way of doing is more performant and more nice 
for developers to test things and to give feedback.

I think it improve the quality of 4D. 

Envoyé de mon iPhone

> Le 13 mars 2019 à 13:16, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> It's really not that hard, nor that unusual.
> 
> Is Windows Server 2008R2 a beta of Windows Server 2012? Nope. It's an 
> incremental release with new features.
> 
>> On Mar 13, 2019, at 6:14 AM, Bernd Fröhlich via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> Maybe all the folks at 4D understand how those R version numbering works, 
>> but for the rest of the world it is obviously quite confusing.
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **


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

Re: Replacing FootRunner in v16

2019-03-01 Thread GI -AJAR via 4D_Tech
Hi,

I have fond this on their website. Must help you. 
http://www.footprints-inc.com/Blog/13

Best Regards,

Gabriel Inzirillo 

Envoyé de mon iPhone

> Le 23 févr. 2019 à 09:33, Peter Adam via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> Fir many years I have been running scripts for 4D write documents using 
> Footrunner, then nifty plugin from Footprints.
> 
> Now with v16 I no longer have this tool available.
> 
> There is a comment on the Footprints web site about looking for a capability 
> in v16 that replaces Footrunner.
> 
> I am going blind, so I must =have missed the way to do this.
> 
> Can anyone point me in the right direction?
> 
> 
> 
> 
> Cheers
> 
> Peter Adam
> Adam, Zievert & Associates Pty Ltd
> Melbourne Australia
> Skype Phone: +61 3 9016 379
> p: +61 3 9836 3539
> f: +61 3 9836 9730
> m: 0419 552 462
> e: peter.a...@me.com 
> w: www.adamzievert.com.au 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**