Re: Thanks, and don't worry!

2020-07-18 Thread Alberto Bachler via 4D_Tech
That’s all good news JPR… 

Except, peut être, for NBC the military grade protected area.
Happy to know that your Labradors are save!


Alberto



> El 18-07-2020, a las 02:05, JPR via 4D_Tech <4d_tech@lists.4d.com> escribió:
> 
> [JPR]
> 
> Hi Guys,
> 
> Just a short message to thank all of you who were a bit worried about my 
> silence. Thanks John, Paul, Dave, and all the others, it's very kind of you 
> to care about dinosaurs ;-)
> 
> Don't worry, I'm perfectly safe and alive! I didn't get the Corona virus, nor 
> the Dos Equis virus, and not even the Bud virus! My wife has turned our house 
> in a NBC military grade protected area, and I just succeeded to save my 
> Labradors from been boiled for decontamination...
> 
> I'm presently working on a very brand new V18 training, including a lot of 
> techniques regarding Classes (and specially easy conversion to it), Data 
> Model, MVC easy approach, Light Client, etc. This training will be available 
> soon, and we still analyse the best way to bring it to you.
> 
> So thanks again my Friends, I hope to see you soon!!
> 
> A++,
> 
> JPR
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> New Forum: https://discuss.4D.com
> 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)
New Forum: https://discuss.4D.com
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: Quick reports not printing to PDF and previewing on macOS with 4D 64-bit versions

2020-04-22 Thread Alberto Bachler via 4D_Tech
Thanks for you answer Miyako.

It was a good try but it doesn’t work.
With te following something strange happen:
After QR RUN an empty PDF document is created. Then, after CLOSE PRINTING JOB 
the file is deleted


$t_impresoraActual:=Get current printer
SET CURRENT PRINTER(Generic PDF driver)
SET PRINT OPTION(Destination option;3;$t_path)
QR SET DESTINATION($l_refArea;qr printer;"*")
OPEN PRINTING JOB
QR RUN($l_refArea)
  // at this point an empty PDF document was created on $t_path
QR DELETE OFFSCREEN AREA($l_refArea)
CLOSE PRINTING JOB
  // at this point the empty PDF document is deleted 
SET CURRENT PRINTER($t_impresoraActual)



Alberto





> El 21-04-2020, a las 13:30, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
> escribió:
> 
> I could be way off, but...
> 
> 1. try using OPEN PRINTING JOB, CLOSE PRINTING JOB
> 
> https://doc.4d.com/4Dv17/4D/17.4/OPEN-PRINTING-JOB.301-4883314.en.html
> 
> or,
> 
> 2. activate "Legacy printing layer option"
> 
> https://doc.4d.com/4Dv17/4D/17.4/SET-PRINT-OPTION.301-4883296.en.html
> On Apr 21, 2020, at 22:11, Alberto Bachler via 4D_Tech 
> <4d_tech@lists.4d.com<mailto:4d_tech@lists.4d.com>> wrote:
> I suppose I’m doing something wrong but I can figure it out…
> Any clues?
> 
> **
> 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
**

Quick reports not printing to PDF and previewing on macOS with 4D 64-bit versions

2020-04-21 Thread Alberto Bachler via 4D_Tech
Hello,

The following code works with v17R4 32-bit.
On v17R4 64-bit and v18 it does nothing

C_LONGINT($l_refArea)
C_TEXT($t_path)

// loading the report 
$t_path:=System folder(Desktop)+“test.pdf”
QUERY([Alumnos];[Alumnos]Apellido_paterno=“a@”)
QUERY([xShell_Reports];[xShell_Reports]ReportName=“Estadísticas por sexo”)
$l_refArea:=QR New offscreen area
QR BLOB TO REPORT($l_refArea;[xShell_Reports]xReportData_)
QR SET REPORT TABLE($l_refArea;Table(->[Alumnos]))

SET PRINT OPTION(Destination option;3;$t_path)
If (Not(Version type ?? 64 bit version))
SET PRINT OPTION(Mac spool file format option;0) // not compatible with 
64-bit versions
End if
SET PRINT OPTION(Spooler document name option;$t_path)
SET PRINT OPTION(Hide printing progress option;1)
SET CURRENT PRINTER(Generic PDF driver)
QR SET DESTINATION($l_refArea;qr printer;"*")
QR RUN($l_refArea)
QR DELETE OFFSCREEN AREA($l_refArea)
SET CURRENT PRINTER("")

Previewing doesn’t work either on 64-bit versions

QR SET DESTINATION($l_refArea;qr printer;"*")
SET PRINT PREVIEW(True)
QR RUN($l_refArea)
QR DELETE OFFSCREEN AREA($l_refArea)
SET PRINT PREVIEW(False)

I suppose I’m doing something wrong but I can figure it out…
Any clues?

Thanks in advance...


Alberto



**
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: Get System Info vs PLATFORM PROPERTIES

2019-07-18 Thread Alberto Bachler via 4D_Tech
You can use the 4D function *Is macOs* or *Is Windows* instead of the longint 
returned by PLATFORM PROPERTIES


Alberto



> El 14-07-2019, a las 19:19, JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> 
> escribió:
> 
> So PLATFORM PROPERTIES has been deprecated in favor of Get System Info. Get 
> System Info is far ore informative,  but am I the only one finding the text 
> values of some of the properties near impossible to work with in a consistent 
> manner across multiple platforms? Specifically osVersion and processor.
> 
> For example. If you need, for whatever reason, to know what OS version 4D is 
> running in, osVersion might return…
> 
>   Microsoft Windows 10 Professionnel 10.0.14393
>   OR
>   macOS 10.13.6 (17G7024)
> 
> Unless I am not seeing a way, how can one parse the returned value to get a 
> usable value across multiple platforms now and going forward? PLATFORM 
> PPROPERTIES returned a Long Integer that you could work with. 
> 
> For osVersion, I think it would help if there was a property that just 
> returned the long int value of the os, ie. osVersioinNumber -> 10.0.14393  
> 
> Not sure what could be done for processor. 
> 
> John
> 
> 
> John Baughman
> Kailua, Hawaii
> (808) 262-0328
> john...@hawaii.rr.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
**

Re: Using the HELP Menu for my own purposes.

2019-04-29 Thread Alberto Bachler via 4D_Tech
> the Help menu is empty if you build the application.

Are you sure Miyako? Since what version?

We noticed that the Hep menu on builded applications was showing help items 
belonging to plugins (and components).
My solution was, before the build start, execute a method that look for any 
.htm@ file in the Resources folder of any plugin and delete them.


Alberto



> El 28-04-2019, a las 19:08, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
> escribió:
> 
> the Help menu is empty if you build the application.
> 
> if you don't build the application, the end user is using "4D", not your 
> custom application.
> 
>> 2019/04/29 7:51、Herr Alexander Heintz via 4D_Tech <4d_tech@lists.4d.com>のメール:
>> 
>> Is there any way out there (can be a Plugin) to do this?
>> In the current version the HELP menu is utterly useless to my users.
>> 
>> BTW: V17 Rx
> 
> 
> 
> 
> **
> 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: v17 conundrum in design

2019-02-07 Thread Alberto Bachler via 4D_Tech
Chuck

I experienced this behavior from time to time since v16r2 (and maybe even v15)
I believe can happen when  2 or more instances of 4D are running at the same 
time

Last time was yesterday (macOS)
I restarted my Mac and everything came back to normality


Cordialmente,

Alberto



> El 07-02-2019, a las 17:39, Chuck Miller via 4D_Tech <4d_tech@lists.4d.com> 
> escribió:
> 
> Hi All,
> 
> I have an object method that shows no break points either in the method or 
> when I show break points, yet it continues to stop at a particular line of 
> code and it is annoying. Any ideas out there what it might be.
> 
> Thanks and regards
> Chuck
> 
> 
> Chuck Miller Voice: (617) 739-0306
> Informed Solutions, Inc. Fax: (617) 232-1064   
> mailto:cjmillerinformed-solutions.com 
> Brookline, MA 02446 USA Registered 4D Developer
>   Providers of 4D and Sybase connectivity
>  http://www.informed-solutions.com  
> 
> This message and any attached documents contain information which may be 
> confidential, subject to privilege or exempt from disclosure under applicable 
> law.  These materials are intended only for the use of the intended 
> recipient. If you are not the intended recipient of this transmission, you 
> are hereby notified that any distribution, disclosure, printing, copying, 
> storage, modification or the taking of any action in reliance upon this 
> transmission is strictly prohibited.  Delivery of this message to any person 
> other than the intended recipient shall not compromise or waive such 
> confidentiality, privilege or exemption from disclosure as to this 
> communication. 
> 
> **
> 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: Tracking Field Data Changes

2019-01-15 Thread Alberto Bachler via 4D_Tech
Me too, please...




> El 15-01-2019, a las 12:48, Patrick Emanuel via 4D_Tech 
> <4d_tech@lists.4d.com> escribió:
> 
> Hi Luc,
> 
> I'm interested if it doesn't matter to you to provide it to me also.
> My email is pat.emanuel67 (at) gmail.com
> 
> Thanks
> 
> Patrick
> 
> 
> 
> -
> Patrick EMANUEL
> 
> Administrator
> www.association-qualisoft.eu 
> (Soft1002, Simply Asso & QS_Toolbox)
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
> **
> 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: Programmatic control of reject new connections

2018-05-24 Thread Alberto Bachler via 4D_Tech
Hi Charles,


What I do is to set a semaphore on the server and clear it after the task is 
execute.
On the On startup method for (if application type is 4D Remote) I test that 
semaphore.
If the semaphore is set I notify the user and quit 4D.

BTW, no user can connect to the server until On Server Startup method has been 
executed.
So if you execute your code on methods called from On Server Startup (no new 
process) remote connections would not be possible.


Alberto.



> El 24-05-2018, a las 16:02, Charles Miller via 4D_Tech <4d_tech@lists.4d.com> 
> escribió:
> 
> Hi All,
> 
> subj says it all;. Has anyone figured out a way to control this setting via
> program?
> 
> If it can be done can anyone please advise how.
> 
> If not would others like the ability to do this. I would so that when I
> distribute new versions, I can start with that set when I have code that
> has to run before users can log in
> 
> Thanks and regards
> 
> Chuck
> 
> 
> -- 
> -
> Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
> Informed Solutions, Inc.
> Brookline, MA 02446 USA Registered 4D Developer
>   Providers of 4D, Sybase & SQL Server connectivity
>  http://www.informed-solutions.com
> -
> This message and any attached documents contain information which may be
> confidential, subject to privilege or exempt from disclosure under
> applicable law.  These materials are intended only for the use of the
> intended recipient. If you are not the intended recipient of this
> transmission, you are hereby notified that any distribution, disclosure,
> printing, copying, storage, modification or the taking of any action in
> reliance upon this transmission is strictly prohibited.  Delivery of this
> message to any person other than the intended recipient shall not
> compromise or waive such confidentiality, privilege or exemption
> from disclosure as to this communication.
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> 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)
FAQ:  http://lists.4d.com/faqnug.html
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 v14 web area & High Sierra & pdf

2018-02-05 Thread Alberto Bachler via 4D_Tech
Claudio

I didn’t found any satisfactory solution…
- You can install a PDF Browser plugin (not free)
- If the PDF is just one page long you can display it in the web area after 
converting it to a picture (READ PICTURE FILE)
- Or open the file with Preview with OPEN URL

Alberto.


> El 05-02-2018, a las 06:45, Claudio Braga via 4D_Tech <4d_tech@lists.4d.com> 
> escribió:
> 
> Hi everyone, 
> 
> I have a 4d v14.6 app with a webarea to display pdf that I am testing now on 
> High Sierra
> 
> the pdf docs aren’t displaying anymore (blank page), while on Sierra 
> everything is ok
> 
> I looked in the past threads and even if I found some discussions about it 
> there seemed to be no solution, is this still the case ?
> 
> TIA
> 
> 
> 
> Claudio Braga
> **
> claudiobr...@me.com
> claudiobr...@mac.com
> claudiobr...@icloud.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
> **

**
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: Intermittent 4D Server / System crashes

2018-01-31 Thread Alberto Bachler via 4D_Tech
Memory usage/leaks?
Are you using a 32 or 64 bit server?

> El 28-01-2018, a las 22:50, Mitchell Shiller via 4D_Tech 
> <4d_tech@lists.4d.com> escribió:
> 
> Hi,
> 
> 4D Server 16.2
> Mac OS  10.13.2 running on a MacMini (Late 2014) 8GB RAM
> External RAID 0+1 Samsung SSD. Using SoftRaid XT 
> 
> Only applications running are:
> 4D Server (no stored procedures), 15 users
> Carbon Copy Cloner 5.05 (latest) scheduled to run every hour except from 
> 22:00 - 6:00 when there are no users logged in)
> Retrospect Client (14.6.0.127 latest) (which backs up a second attached drive 
> that contains the 4D backup files at 23:00)
> 
> I have been having  intermittent system crashes. These happen every 2-5 
> days.. Never when the system is in use. (8-21:00) Usually  early in the 
> morning long after Retrospect has run. Retrospect Client takes about 15-30 to 
> back up to our main Server. 
> I get the spinning beach ball of death. So it is not just a 4D crash.  
> Nothing is responsive. The computer requires a hard reboot to get going again 
> and then I am fine for 2-5 days.
> Usually no users are logged in at the time.
> 
> In the console I get the following information from the most recent 2 crashes;
> 
> https://www.dropbox.com/sh/2xejz2dehwqf3wu/AADcablM2L7vzu8uLRxY0-Hxa?dl=0
> 
> I have tested the disk integrity, RAM integrity. All OK. I changed to a new 
> computer with no change.
> The previous computer was running 10.12
> I contacted the SoftRaid support who downloaded  a crash report and stated 
> that the crash is not happening with a disk access to the RAID system.
> 
> 
> Any idea what the next step should be?
> 
> Thanks
> 
> Mitch
> **
> 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
**

OBJECT SET SUBFORM - Bug or standard behavior?

2017-11-12 Thread Alberto Bachler via 4D_Tech
I couldn’t resist :-)

I want to change dynamically the subforms displayed in a parent form and need 
to execute some code in the subform(s) after a call to OBJECT SET SUBFORM 
So, just after setting the subform I want I call EXECUTE METHOD IN SUBFORM.

This doesn’t work (at least in v16R4 and v16R5):
The reference to the subform is not updated immediatly after OBJECT SET SUBFORM 
so the method called by EXECUTE METHOD IN SUBFORM is executed in the wrong 
subform.
This can be verified by calling OBJECT GET SUBFORM after OBJECT SET SUBFORM.


The only workaround I found is:
Add a button with a shortcut, call POST KEY every time you want to change the 
subform and execute a code like this from this button:

OBJECT GET SUBFORM(*;”subformArea";$y_table;$t_subform)
Case of 
: ($t_subform=“subform1")
EXECUTE METHOD IN SUBFORM(“subformArea”;”methodSubform1”)
: ($t_subform=“subform2")
EXECUTE METHOD IN SUBFORM(“subformArea”;”methodSubform2”)
End case 



Alberto.
**
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
**

[Warning] Settings properties values on object field by object notation

2017-10-30 Thread Alberto Bachler via 4D_Tech
Hello,

If the value of a property is modified using object notation directly over an 
object field the modified value is not stored on the record.
This is reproducible in v16R4 and v16R5.


READ WRITE([Table1])
GOTO RECORD([Table1];0)  // [Table1]Object.value is False
$b_value:=True
[Table1]Object.value:=$b_value 
SAVE RECORD([Table1])  // [Table1]Object.value is True after Save Record
UNLOAD RECORD([Table1])
GOTO RECORD([Table1];0)  // after changing the current selection by reloading 
the record [Table1]Object.value is false

I reported this to 4D via TAOW and the Forum.
4D answer was that is as standard behavior and they recommend me to assign the 
object field to itself after modification. 

You can also use OB SET or assign the object to a variable and work with it 
before reassign it to the object field.

Alberto.



**
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
**