Re: ORDA and 4D selections

2019-04-10 Thread John DeSoi via 4D_Tech
instead of ORDA. John DeSoi, Ph.D. > On Apr 10, 2019, at 12:01 PM, Christian Sakowski via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > ORDA has many advantages compared to the classic 4D language: ** 4D Intern

Re: Auto Updating 4D Not Working

2019-04-08 Thread John DeSoi via 4D_Tech
macOS version. John DeSoi, Ph.D. > On Apr 4, 2019, at 10:01 AM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > 4D v17.1HF1, macOS only. (It works fine on Windows). I’m using essentially > the same code as in several other applications, also on v17.1HF1, bu

Re: Securing sensitive data in a 4D data file (Chip Scheide)

2019-04-01 Thread John DeSoi via 4D_Tech
On the Mac one option is to script storing the private key in the Keychain with LAUNCH EXTERNAL PROCESS. Type "man security" Terminal to see the command line interface options. John DeSoi, Ph.D. > On Mar 31, 2019, at 10:54 PM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com&g

Re: Backup and journal file configurations

2019-03-25 Thread John DeSoi via 4D_Tech
other discussion here: https://forums.4d.com/Post/EN/22296877/1/22296878 John DeSoi, Ph.D. ** 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: Getting a collection created from 4D function to work in Storage.

2019-03-20 Thread John DeSoi via 4D_Tech
(Storage.serverVolumes:=$myTempVolumeCol). To duplicate an object or collection as a shared object/collection you have to iterate over all of the values and then recursively convert to shared any object/collection. John DeSoi, Ph.D. > On Mar 20, 2019, at 12:16 PM, Eric Naujock via 4D_Tech <4d_tech

Re: Apple Notary Service

2019-03-16 Thread John DeSoi via 4D_Tech
Does this really work (or might it break in the future) as 4D modifies the application package at runtime? I noticed that the code signature is no longer valid once you run the application (codesign --verify --verbose /path/to/application). John DeSoi, Ph.D. > On Mar 15, 2019, at 9:29

Re: "Attempting to retype using a pointer"

2019-02-28 Thread John DeSoi via 4D_Tech
is a time array in interpreted mode, but not compiled mode? John DeSoi, Ph.D. ** 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: "Attempting to retype using a pointer"

2019-02-28 Thread John DeSoi via 4D_Tech
C_OBJECT($object) C_POINTER($field) $object:=New object("tableNumber";1;"fieldNumber";1) $field:=Field($object.tableNumber;$object.fieldNumber) The above works but the Field command won't compile: Too many parameters have been passed to this method. John DeSoi, Ph.D. > On

Re: Build Application “No License is Installed" and ...

2019-02-26 Thread John DeSoi via 4D_Tech
preferences. I did that and it seemed to work for a day or two and then it would start giving the error again even though nothing had changed. I rebuilt with a developer certificate and it seems to have solved the issue. John DeSoi, Ph.D. > On Feb 26, 2019, at 10:56 AM, John J Foster via 4D_T

4D 17.1 duplicate constant

2019-02-20 Thread John DeSoi via 4D_Tech
Just killed a bunch of time trying to figure out why some menu actions were not working for a host menu duplicated by a component. It turns out the "Associated standard action" constant is duplicated with different values and 4D does not use the same one in all cases. John D

Re: Relation naming for ORDA in v17? Best Practices anyone?

2019-02-09 Thread John DeSoi via 4D_Tech
-> [Method]ID M to 1: Caller 1 to M: Method_Callers [Method_Call]Callee_Method_ID -> [Method]ID M to 1: Callee 1 to M: Method_Callees John DeSoi, Ph.D. > On Feb 8, 2019, at 12:50 PM, Ed Hammond via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Hey all of you ORDA pioneers an

Re: v17 built client on windows a few issues

2019-02-06 Thread John DeSoi via 4D_Tech
ure differences from previous 32 bit versions. You are probably not missing a setting that will make it work like the previous version. John DeSoi, Ph.D. ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html O

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread John DeSoi via 4D_Tech
enerates an error but gives no clue as to why it is an error. John DeSoi, Ph.D. ** 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: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread John DeSoi via 4D_Tech
of the plugins in a preemptive process? John DeSoi, Ph.D. > On Jan 30, 2019, at 4:10 PM, Christian Sakowski > wrote: > >> I'm not aware any commercial 4D plugin that works in preemptive mode. > > hmCal and hmRe

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread John DeSoi via 4D_Tech
if it has no thread unsafe commands. John DeSoi, Ph.D. > On Jan 30, 2019, at 3:05 PM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > there was no mention of components. > I assume, as components are effectively 4D methods, that a thread safe > method (call chai

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread John DeSoi via 4D_Tech
in preemptive mode. John DeSoi, Ph.D. > On Jan 30, 2019, at 3:00 PM, Timothy Penner wrote: > > In either case, it would appear that although the SDK has been updated, the > individual plugin developers would still need to update their plugins and > make those preemptive versions availa

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread John DeSoi via 4D_Tech
ady plugins. > see https://github.com/4d/4D-Plugin-SDK/releases/tag/v17.0.1 https://forums.4d.com/Post/FR/17981754/2/28184397 Also https://github.com/miyako/4d-plugin-migration-to-v17 John DeSoi, Ph.D. > On Jan 30, 2019, at 2:32 PM, Timothy Penner wrote: > > Plugin development is n

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread John DeSoi via 4D_Tech
code to work in preemptive mode. https://forums.4d.com/Post/EN/27444918/2/27983967 John DeSoi, Ph.D. > On Jan 30, 2019, at 1:04 PM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > No, not at all. You have to first mark the method that's called first f

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread John DeSoi via 4D_Tech
No, a normal process can be preemptive (started with New process or Executed on server) as long as the starting method is preemptive capable. John DeSoi, Ph.D. > On Jan 30, 2019, at 2:14 PM, Dennis, Neil via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I thought for

Re: XLS plugin - format number with leading zero

2019-01-30 Thread John DeSoi via 4D_Tech
I don't know anything about the plugin you were attempting to use, but one way to create formatted documents for Excel is to use XML. You specify the type for each cell. I'm sure you could figure out the format option you want by saving a document with Excel and looking at the XML. John DeSoi

Re: listbox commands and collection variables

2019-01-23 Thread John DeSoi via 4D_Tech
eference pointer? This was the one that was not working last night that made me decide to post something. Thanks, John DeSoi, Ph.D. ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d

listbox commands and collection variables

2019-01-22 Thread John DeSoi via 4D_Tech
to change everything to use the object name instead of the variable. John DeSoi, Ph.D. ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub

Re: Socket Communication

2019-01-15 Thread John DeSoi via 4D_Tech
web, but for 50 to 100 clients on a local network it seems pretty straight forward. John DeSoi, Ph.D. > On Jan 15, 2019, at 3:40 PM, Stephen J. Orth > wrote: > > This is just "polling" logic and won't work for us, which is why I am asking > about web sockets

Re: Socket Communication

2019-01-15 Thread John DeSoi via 4D_Tech
Do you really need the ability for the server to send data asynchronously to the client (browser)? If not, then HTTP should work and is already supported in the browser and on 4D Server. John DeSoi, Ph.D. > On Jan 15, 2019, at 1:30 PM, Stephen J. Orth via 4D_Tech > <4d_tech@lis

Re: Sales Tax Solutions for 4D

2019-01-04 Thread John DeSoi via 4D_Tech
What 4D version are you using and how are you sending the request? What you have below does not correspond to any recent 4D HTTP client interface which passes the headers/values as two text arrays. Why are you sending a content-length header for GET request? John DeSoi, Ph.D. > On Ja

list box column width on resize

2018-12-29 Thread John DeSoi via 4D_Tech
of worked is to make all of the columns a fixed size except one. All the columns are added when the form is loaded, maybe that is part of the issue. John DeSoi, Ph.D. ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com

Re: How to process all WritePro area expressions for replacement / update?

2018-12-21 Thread John DeSoi via 4D_Tech
This may help you get started: ARRAY LONGINT($aPos;0) ARRAY LONGINT($aLen;0) $start:=1 While (Match regex("\\s*)";$text;$start;$aPos;$aLen)) $expr:=Substring($text;$aPos{2};$aLen{2}) $expr:=Substring($expr;10) //Strip off leading -d4-ref:' $expr:=URL_Decode ($expr) End w

Re: WritePro expression undefined

2018-12-20 Thread John DeSoi via 4D_Tech
ption on the "Security" page of the Database Settings. > If the "Disabled for all" option is checked, the SET ALLOWED METHODS command > will have no effect. John DeSoi, Ph.D. > On Dec 20, 2018, at 2:15 PM, David Ringsmuth wrote: > > SET ALLOWED COMMANDS should al

Re: Storing Dates and Times From Different Time Zones

2018-12-20 Thread John DeSoi via 4D_Tech
I use the code below to determine the number of seconds offset from GMT for the current time zone. This could be added back to a GMT time stamp to get the local time. John DeSoi, Ph.D. C_LONGINT($0) C_DATE($zDate;$gmtDate) C_TIME($zTime;$gmtTime) C_TEXT($str) $zDate:=Current date $str

Re: WA Evaluate JavaScript in 16.4

2018-12-20 Thread John DeSoi via 4D_Tech
Try turning 'Use embedded rendering engine' off for the web area. And 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

Re: WritePro expression undefined

2018-12-20 Thread John DeSoi via 4D_Tech
ts. Maybe that does not work if you have end users writing their own queries for 4D Write. That seems dangerous to me. John DeSoi, Ph.D. > On Dec 20, 2018, at 11:01 AM, David Ringsmuth wrote: > > We have hundreds of converted documents with queries in them that worked >

Re: WritePro expression undefined

2018-12-20 Thread John DeSoi via 4D_Tech
write a 4D project method that uses QUERY and returns a result in $0 as the result of the 4D Write expression. John DeSoi, Ph.D. > On Dec 20, 2018, at 9:30 AM, David Ringsmuth via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > WP PRINT(Rpt_ob;wk 4D Write Pro layout) > SET ALL

Re: 4D Write for v17

2018-12-15 Thread John DeSoi via 4D_Tech
help on that. John DeSoi, Ph.D. > On Dec 14, 2018, at 8:38 PM, Mitchell Shiller via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > In process of migrating from v16 32 bit to v17 64 bit all on Mac. > Converted my interpreted database, but can’t find a copy of 4D Write for v1

Re: Native 4D to make REST request to Django application

2018-12-10 Thread John DeSoi via 4D_Tech
option you should be able to get an accurate picture of what is sent and received. From there you can probably figure out what is going wrong with your 4D implementation. John DeSoi, Ph.D. > On Dec 10, 2018, at 5:52 PM, Olson, Brad via 4D_Tech <4d_tech@lists.4d.com> > wrote: >

Re: 4D Structure Export...

2018-12-07 Thread John DeSoi via 4D_Tech
and tracks all changes over time. For 4D, you'll just need to add something to remove methods that have been deleted or renamed. Git automatically figures out when a file has been renamed instead of deleted. John DeSoi, Ph.D. **

Re: Calling java

2018-12-04 Thread John DeSoi via 4D_Tech
Creating a plugin would be pretty involved. If LAUNCH EXTERNAL PROCESS is too slow, I would look into something like JSON RPC. For example, https://www.jsonrpc.org/archive_json-rpc.org/implementations.html https://github.com/briandilley/jsonrpc4j John DeSoi, Ph.D. > On Dec 4, 2018, at 1

Re: ORDA to get "record number" value

2018-11-28 Thread John DeSoi via 4D_Tech
If you only need to emulate the Record number function for a particular entity, you could use getKey() to get the primary key and then Find in field to get the record number. John DeSoi, Ph.D. > On Nov 23, 2018, at 11:10 AM, Gianluca Rigotti via 4D_Tech > <4d_tech@lists.4d.c

Re: V15.2 to v17.0HF3 conversion problem

2018-11-23 Thread John DeSoi via 4D_Tech
You could write something to load each form and then use OBJECT Get action to find the problem check boxes. Or open a copy of the structure in 17R and export all the forms to search them with your favorite text editor. John DeSoi, Ph.D. > On Nov 22, 2018, at 9:36 PM, Keith Goebel

Re: Explorer bottom toolbar not displaying...

2018-11-21 Thread John DeSoi via 4D_Tech
windows end up. I try to remember to quit 4D before unplugging my external monitor because of all the problems. John DeSoi, Ph.D. > On Nov 21, 2018, at 6:47 PM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Thanks so much for telling everyone about this keyboard

Re: Audit File Updates via Triggers...

2018-11-20 Thread John DeSoi via 4D_Tech
Just note that you won't be able to see any of the data in an object field if you are displaying records in a list box. Some possible options now in version 17 if you are using collections/entity selections. John DeSoi, Ph.D. > On Nov 20, 2018, at 2:56 PM, Robert ListMail via 4D_T

Re: What is the "REST" process for?

2018-11-14 Thread John DeSoi via 4D_Tech
a big difference in performance. In a one minute test, I could create 55,000 more records with the trigger disabled. All the trigger does is set a timestamp value. John DeSoi, Ph.D. > On Nov 13, 2018, at 9:38 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote:

What is the "REST" process for?

2018-11-13 Thread John DeSoi via 4D_Tech
nd I can't see anything in my code that would cause this. The processes are only there in compiled/preemptive mode. On the server the REST processes go away after each process completes. But in 4D Mono, they all stay alive in idle mode. Did I miss the details about this in the documentation?

Re: How to get a list of all user windows?

2018-11-08 Thread John DeSoi via 4D_Tech
You could use the Window process function find the process number. Then use the "origin" parameter of PROCESS PROPERTIES to determine which processes belong to the design process. John DeSoi, Ph.D. > On Nov 8, 2018, at 1:46 PM, Pat Bensky via 4D_Tech <4d_tech@lists.

Re: SET MENU BAR glitch

2018-11-03 Thread John DeSoi via 4D_Tech
Have you checked the "Active Menu Bar" property on the form? If you don't do that, none of the main menu items will work. I don't think you can check this option unless you specify an appended menu. I always use an empty appended menu. John DeSoi, Ph.D. > On Nov 3, 2018, at 3

Re: Linefeed option not working for v16 emails

2018-11-02 Thread John DeSoi via 4D_Tech
uses CRLF. Seems to work, but not tested extensively. C_TEXT($0;$1) C_LONGINT($err) $err:=SMTP_SetPrefs (0;-1;-1) $0:=Replace string($1;CRLF;CR;*) $0:=Replace string($0;LF;CR;*) $0:=Replace string($0;CR;CRLF;*) John DeSoi, Ph.D. > On Nov 1, 2018, at 9:25 PM, Janet Jonas via 4D_Tech <4

Re: Linefeed option not working for v16 emails

2018-11-01 Thread John DeSoi via 4D_Tech
oes: "A value of 1 (default setting) will replace all carriage return/line feed pairings with carriage returns for you." To me that says CRLF will be replaced with CR. What line endings are you using when you generate the body text? John DeSoi, Ph.D. ***

Re: Using 4D with Git...

2018-10-31 Thread John DeSoi via 4D_Tech
Yes, it can do those things plus just manage local repositories if you don't publish anywhere. I thought that was one of the questions in this thread - a usable git GUI client. John DeSoi, Ph.D. > On Oct 31, 2018, at 2:05 PM, Robert ListMail via 4D_Tech > <4d_tech@lists.4d.c

Re: Using 4D with Git...

2018-10-31 Thread John DeSoi via 4D_Tech
I like Fork. Nice interface, open source, free. I tried to find a donation page, but did not see one. https://git-fork.com John DeSoi, Ph.D. > On Oct 31, 2018, at 2:01 AM, Paul Dennis via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Ill give the client a try. There

Re: Setting up an entity / collection listbox in code

2018-10-30 Thread John DeSoi via 4D_Tech
the selection just by knowing the listbox object name. Not tested. The other way to do it is to generate the entire form including the list boxes with code. A lot more work up front, but hopefully worth it in the long run. John DeSoi, Ph.D. > On Oct 30, 2018, at 3:21 AM, Jeremy Roussak

Re: text characters in blob or text to document

2018-10-30 Thread John DeSoi via 4D_Tech
ion. For the text/document commands use the "ISO-8859-1" character set. John DeSoi, Ph.D. ** 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: text characters in blob or text to document

2018-10-30 Thread John DeSoi via 4D_Tech
converting it back via DOCUMENT TO BLOB and then Blob to text. If you are using text with SEND PACKET, you have to be sure to USE CHARACTER SET. John DeSoi, Ph.D. > On Oct 30, 2018, at 11:46 AM, Charles Miller via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Thanks I kind o

Re: text characters in blob or text to document

2018-10-30 Thread John DeSoi via 4D_Tech
without deleting the BOM first. Document to text assumes MacRoman/ANSI if the document does not have a BOM and you don't specify the character set. So if you are saving UTF-8 with a blob, you need to be sure to specify the character set for Document to text to interpret it correctly. John DeSoi

Re: Longing IDs or UUIDs as primary key?

2018-10-24 Thread John DeSoi via 4D_Tech
) and then update the foreign keys with the right integer values as they are transferred into the target database. John DeSoi, Ph.D. > On Oct 24, 2018, at 11:31 AM, Two Way Communications via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > To be clearer on the purpose: > > There ar

Re: Form data, Constants and dot notation

2018-10-14 Thread John DeSoi via 4D_Tech
Only the bracketed expression form, e.g. myObject[constant]. John DeSoi, Ph.D. > On Oct 14, 2018, at 1:56 AM, Jim Dorrance via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Constants cannot be used with dot notation? ***

Re: 4D Write Pro (WP) Area and ST INSERT EXPRESSION

2018-10-09 Thread John DeSoi via 4D_Tech
$formula;$start;$end) HIGHLIGHT TEXT(*;$edName;$start;$start+1) End if End if John DeSoi, Ph.D. > On Oct 9, 2018, at 11:50 AM, David Ringsmuth via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Insert expression and Get expression seem to not be pre-imple

Re: Creating a form object to use as dynamic form

2018-09-24 Thread John DeSoi via 4D_Tech
ce:=$form+$name+"__currentItem" $0.currentItemPositionSource:=$form+$name+"__currentItemPosition" $0.selectedItemsSource:=$form+$name+"__selectedItems" John DeSoi, Ph.D. ** 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: v13-v16 thread safe component

2018-09-20 Thread John DeSoi via 4D_Tech
ms to work. The compiler will generate errors if any method in the call chain has an IP variable. John DeSoi, Ph.D. ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/

Re: v13-v16 thread safe component

2018-09-20 Thread John DeSoi via 4D_Tech
ds to most of Setutl's functionality. I think you are confusing IP sets with IP variables. IP sets can be created and used in preemptive processes. > OR I need a way to Set and Get values across > processes which is thread safe. Prior to version 17 with Storage, I'm not aware of any option other

Re: Do I want to use SELECTION TO ARRAY instead of GOTO SELECTED RECORD server-side in V17

2018-09-18 Thread John DeSoi via 4D_Tech
these days. John DeSoi, Ph.D. $targetVarSize:=$maxSize $innerLoopMax:=Int($targetVarSize/Length($textToAdd)) $vs6:=Milliseconds For ($i;1;$outerLoopMax) $result:="" $tmpTxt:="" SET BLOB SIZE($blob;0) For ($j;1;$innerLoopMax)

Re: Do I want to use SELECTION TO ARRAY instead of GOTO SELECTED RECORD server-side in V17?

2018-09-15 Thread John DeSoi via 4D_Tech
code fragments below. For ($iParam;1;Size of array($aSource)) $aDest{$iParam}:=PM_Variable (ARRAY_Type ($aType{$iParam})) End for For ($iParam;1;Size of array($aSource)) SELECTION TO ARRAY($aSource{$iParam}->;$aDest{$iParam}->;*) End for SELECTION RANGE TO ARRAY($start;$end) John

Re: 4D for iOS: anyone?

2018-09-11 Thread John DeSoi via 4D_Tech
I think it refers to My Home > List of posts > R-release channel > Beta version Then in the first box there is a Forum "4D for iOS - Preview", where you can further filter or click on "Create a new topic". John DeSoi, Ph.D. > On Sep 11, 2018, at 3:20 AM, Tw

Re: 4D Write to 4D Write Pro

2018-08-29 Thread John DeSoi via 4D_Tech
bit plugin and then replacing the resources with the files from 4D Write. John DeSoi, Ph.D. > On Aug 29, 2018, at 2:38 PM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Once you have all the code rewritten and tested and working, you can dump the > old code, and

Re: Using local variables and set and named selection names in a recursive situation

2018-08-29 Thread John DeSoi via 4D_Tech
nd you can encode the table and other information in the name. John DeSoi, Ph.D. > On Aug 29, 2018, at 7:04 AM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > create named selection(TablePtr->;"$deletes") *

Re: New record numbering system and CALL WORKER

2018-08-27 Thread John DeSoi via 4D_Tech
some published benchmarks, it sounds like 4D folklore at this point. What seems *really* slow to me is CALL FORM. I'm seeing about 100ms between CALL FORM and the time the method starts executing in the form process (not called from the same process as the form window). John DeSoi, Ph.D

Re: New record numbering system and CALL WORKER

2018-08-26 Thread John DeSoi via 4D_Tech
;$width;$height) End if $0:=$oResult John DeSoi, Ph.D. > On Aug 25, 2018, at 4:44 PM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > But lets explore other possibilities. What could “Storage” be use for i

Re: New record numbering system and CALL WORKER

2018-08-25 Thread John DeSoi via 4D_Tech
to handle startup and shutdown and the case where the server crashed without writing the last sequence number used. John DeSoi, Ph.D. > On Aug 25, 2018, at 10:21 AM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Thanks John. > But how would that work in a mult

v17 variables not found on forms

2018-08-13 Thread John DeSoi via 4D_Tech
ngs. Also, I'm wondering if anyone else is seeing the two frontmost methods automatically join into a tabbed window when switching back to 4D (Mac). I'm not using tabbed windows, but they seem to randomly tab together sometimes. John D

Re: ORDA - updating data in listboxes

2018-08-12 Thread John DeSoi via 4D_Tech
not work for collection/ORDA list boxes and explain what you are supposed to do instead. John DeSoi, Ph.D. > On Aug 12, 2018, at 2:05 PM, Spencer Hinsdale via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > is this relevant? > > http://kb.4d.com/resources/inug?msgid

Re: Automatic updating of built apps

2018-08-08 Thread John DeSoi via 4D_Tech
+".app" John DeSoi, Ph.D. > On Aug 8, 2018, at 10:43 AM, jeff--- via 4D_Tech <4d_tech@lists.4d.com> wrote: > > In other words, the update process is placing the update app inside the > original app instead of replacing the original app with the update app! > >

Re: Automated Generation of Form Variables

2018-08-06 Thread John DeSoi via 4D_Tech
- Field pointer. C_OBJECT($0) C_POINTER($1) $0:=New object $0.type:="input" $0.dataSource:=TB_Field_full_name ($1) `Like [Table_Name]Field_Name John DeSoi, Ph.D. > On Aug 3, 2018, at 9:42 AM, Guru via 4D_Tech <4d_tech@lists.4d.com> wrote: > > I

Re: startup progress on server

2018-08-06 Thread John DeSoi via 4D_Tech
Randy, I'll be interested to hear if this permanently fixes the problem. I'm still having random crash on quit errors on 4D Server (16.3HF4, 64-bit). Never a problem in version 15, 32-bit. I have never connected crashing to a status interface, but in my case it has always run in a separate

Re: selected rows for a collection listbox

2018-08-05 Thread John DeSoi via 4D_Tech
of the selectedItems collection will be a row number or an object with a rowNumber property. John DeSoi, Ph.D. > On Jul 31, 2018, at 12:07 AM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I think this is exactly what the new For each > structure is meant to do - iter

Re: Memory leak with dynamic variables in list boxes?

2018-08-02 Thread John DeSoi via 4D_Tech
Try bringing up the "User Interrupt" menu and select the Go to Design Mode option. On the Mac it is control-option-click. Not sure about Windows. John DeSoi, Ph.D. > On Aug 2, 2018, at 10:55 AM, mferguson--- via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Puzzl

Re: v13 - Record to Blob?

2018-07-30 Thread John DeSoi via 4D_Tech
I think this would be very useful as a native command and trivial to implement (already in the plugin API, I think). If you agree, here is the feature request: http://forums.4d.com/Post/EN/17757394/1/17757547 John DeSoi, Ph.D. > On Jul 30, 2018, at 2:40 PM, Keisuke Miyako via 4D_T

Re: selected rows for a collection listbox

2018-07-30 Thread John DeSoi via 4D_Tech
ort very powerful generalized code (e.g. components). I also find it strange that I can select rows with a single API call, but determining the selected rows takes 3 different methods depending on the type of list box. With the selected rows, I can easily iterate over the rows for any of the dif

Re: selected rows for a collection listbox

2018-07-29 Thread John DeSoi via 4D_Tech
rty? I want to leave the collection elements as Null and only load them on demand (displayed or the user selected them to do something). I'm trying to avoid creating objects for thousands of rows that will never be displayed or used. John DeSoi, Ph.D. *

Re: selected rows for a collection listbox

2018-07-29 Thread John DeSoi via 4D_Tech
to be loaded. If I could get just the selected *row numbers*, I could load those on demand. John DeSoi, Ph.D. > On Jul 29, 2018, at 8:47 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > a collection of objects rather than the row numbers make

Re: selected rows for a collection listbox

2018-07-29 Thread John DeSoi via 4D_Tech
. But the selection model that returns a collection of objects rather than the row numbers makes this impractical. I'll make a feature request. Thanks, John DeSoi, Ph.D. > On Jul 29, 2018, at 7:28 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > there ar

selected rows for a collection listbox

2018-07-29 Thread John DeSoi via 4D_Tech
to sequentially search the collection to determine the position for each object. John DeSoi, Ph.D. ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub

Re: First ORDA runtime error - just like SQL

2018-07-27 Thread John DeSoi via 4D_Tech
hard to track down. So. Incredibly. Annoying. I'm not aware of any other server product that stops a process and shows an end user error dialog for a database server or web server. John DeSoi, Ph.D. ** 4D Internet Users Group (4D iNUG

Re: Special characters in ftp filenames

2018-07-27 Thread John DeSoi via 4D_Tech
something else. I ended up using CURL to deal with servers were FTP_GetDirList did not work correctly. John DeSoi, Ph.D. > On Jul 27, 2018, at 6:21 AM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > using v17r2: > > I get a list of files in a dire

Re: standard action for design mode not working in 17.0

2018-07-26 Thread John DeSoi via 4D_Tech
ndow shows up. I seem to recall having an issue like this in some previous versions but not with all structures. My speculation is that it has something to do with older structures brought forward from much earlier 4D versions. Thanks, John DeSoi, Ph.D. > On Jul 26, 2018, at 5:17 PM, J

Re: Does MSC database compact work for large data files?

2018-07-26 Thread John DeSoi via 4D_Tech
I convinced myself it is by writing a method that exports the primary key and md5 hash of every record in the database. I compared this export before and after the compact and did not find any differences. John DeSoi, Ph.D. ** 4D Internet

Re: Does MSC database compact work for large data files?

2018-07-26 Thread John DeSoi via 4D_Tech
se has object fields. John DeSoi, Ph.D. ** 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: Does MSC database compact work for large data files?

2018-07-26 Thread John DeSoi via 4D_Tech
17). Reindexing/cache is not a problem unless it is done as part of the compact process. It appears MSC does not use the cache at all when it opens for compacting mode. Thanks, John DeSoi, Ph.D. ** 4D Internet Users Group (4D iNU

Does MSC database compact work for large data files?

2018-07-26 Thread John DeSoi via 4D_Tech
ame using 4D 16.3HF4 and 17.0. Anyone have a better experience with this on a large data file? John DeSoi, Ph.D. ** 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 **

standard action for design mode not working in 17.0

2018-07-14 Thread John DeSoi via 4D_Tech
this? For now, I changed the database setting to startup in Design instead of Runtime as a work-around. Thanks John DeSoi, Ph.D. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists

Re: How to protect JS Source Code?

2018-07-14 Thread John DeSoi via 4D_Tech
There is not much you can do. Javascript can be minimized and obfuscated, but there are plenty of tools to reverse that. John DeSoi, Ph.D. > On Jul 13, 2018, at 11:38 PM, Robert ListMail via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > One of the beauties of 4D is that t

Re: Macro question - using project methods in a macro

2018-07-05 Thread John DeSoi via 4D_Tech
Kirk, I think you are looking for GET MACRO PARAMETER and SET MACRO PARAMETER. In the method called by your macro, that allows you to get/set the selection or the entire method. John DeSoi, Ph.D. > On Jul 5, 2018, at 5:08 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > w

Re: Extra characters

2018-07-03 Thread John DeSoi via 4D_Tech
) BLOB TO DOCUMENT($2;$blob) John DeSoi, Ph.D. > On Jul 3, 2018, at 10:31 PM, Robert McKeever via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > TEXT TO DOCUMENT($MyDocs1{$n};$MyReplacedDoc;"UTF-8";0) > > Seemed to work. Except each modified file has three extra

Re: Creating Tables by running a method

2018-06-23 Thread John DeSoi via 4D_Tech
other way to set the table trigger properties once the table is created. I don't believe there is any performance penalty unless the trigger method is defined for the table. John DeSoi, Ph.D. > On Jun 23, 2018, at 3:14 PM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> > wrote: >

Re: Creating Tables by running a method

2018-06-23 Thread John DeSoi via 4D_Tech
The triggers won't run until you set the trigger properties on the table. I'm not aware there is any way to do that via SQL. You can set the trigger properties if you create the tables via XML and use IMPORT STRUCTURE. John DeSoi, Ph.D. > On Jun 23, 2018, at 11:52 AM, Jody Bevan via 4D_T

Re: Musing on creating PDFs in 4D

2018-06-14 Thread John DeSoi via 4D_Tech
, but both Google Chrome and Firefox support headless mode for generating PDFs. And there is all kinds of open source software for driving that on a server including some HTTP APIs. https://github.com/RelaxedJS/ReLaXed https://github.com/mozilla/geckodriver https://w3c.github.io/webdriver/ John

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread John DeSoi via 4D_Tech
turn some Javascript that immediately calls back to the server with the cookie value (or reports it not found). Of course, via Javascript, you could also check for the cookie and complain to the user directly that cookies are off without ever reporting the status back to the server. John DeSoi, Ph.D

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread John DeSoi via 4D_Tech
have cookies enabled/disabled until they make a *second* request where you can see if your value is in the Cookie header. John DeSoi, Ph.D. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: htt

Re: How does one detect that Cookies are disabled?

2018-06-05 Thread John DeSoi via 4D_Tech
est from the browser does not have the value in the "Cookie" header? John DeSoi, Ph.D. > On Jun 4, 2018, at 6:15 PM, Jim Labos - infobase via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > However I would like to detect first if the browser connecting has Coo

Re: Auto Positioning Print Forms

2018-05-21 Thread John DeSoi via 4D_Tech
int marker(Form footer)+$remainder) OBJECT MOVE(*;"footer_@";0;$remainder) End if End case John DeSoi, Ph.D. > On May 21, 2018, at 5:51 PM, Sujit Shah via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Are you using MOVE OBJECT to adjust for different printe

Re: Amazon Simple Email Service (SES) with 4D Internet commands

2018-05-21 Thread John DeSoi via 4D_Tech
d receiver addresses to be verified before you can use them. John DeSoi, Ph.D. > On May 21, 2018, at 9:47 AM, John DeSoi via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Has anyone successfully used SES with 4D IC's SMTP commands? SMTP_Send always > fails with error cod

Amazon Simple Email Service (SES) with 4D Internet commands

2018-05-21 Thread John DeSoi via 4D_Tech
Has anyone successfully used SES with 4D IC's SMTP commands? SMTP_Send always fails with error code 10046 (SMTP 554 - Transaction failed). I'm using 16.3HF2 Mac. I know the SES SMTP interface is working because I can send emails from the same computer using PHP. Thanks, John DeSoi, Ph.D

Re: Web App on iPhone - Returns gobblydygook

2018-05-16 Thread John DeSoi via 4D_Tech
ary-header/ John DeSoi, Ph.D. > On May 16, 2018, at 12:10 PM, Randy Engle via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Got any ideas? ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug

<    1   2   3   4   >