Re: just a curiosity - pre emptive threads

2018-07-12 Thread Alan Chan via 4D_Tech
May be using Shared Object to replace variable. Alan Chan 4D iNug Technical <4d_tech@lists.4d.com> writes: >1 - doesn't this idea 'break' with preemptive code (using Set Process >Variable)? >(I think that to get around the Set process variable you would use >'Storage') >2 - how does 4D

Re: 4D V17 - Quit to user mode

2018-07-12 Thread Ed Glassgow via 4D_Tech
Perfect... Thanks much! Also, thanks to Chip Scheide for the same advice. Working perfectly in V17 now! On 7/12/18, 1:34 PM, "4D_Tech on behalf of Jeffrey Kain via 4D_Tech" <4d_tech-boun...@lists.4d.com on behalf of 4d_tech@lists.4d.com> wrote: You need to set the automatic action to

Re: 4D V17 - Quit to user mode

2018-07-12 Thread Chip Scheide via 4D_Tech
I believe that you need to set the menu item to the predefined acton 'Go to Design' On Thu, 12 Jul 2018 13:30:57 -0600, Ed Glassgow via 4D_Tech wrote: > I have been experimenting with V17 and so far it looks good and > solid. However, there is one issue, new behavior, that has me >

Re: 4D V17 - Quit to user mode

2018-07-12 Thread Jeffrey Kain via 4D_Tech
You need to set the automatic action to those menu items to User Mode. > On Jul 12, 2018, at 3:30 PM, Ed Glassgow via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > In those I have a "Quit to User" menu item that has no method attached to it. > Going back for many versions, this has dropped me

4D V17 - Quit to user mode

2018-07-12 Thread Ed Glassgow via 4D_Tech
I have been experimenting with V17 and so far it looks good and solid. However, there is one issue, new behavior, that has me struggling to figure out. I have a number of local interpreted databases that generally run in Custom mode. In those I have a "Quit to User" menu item that has no

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Chip Scheide via 4D_Tech
to beat a dead horse(?)... in either stand alone, or C/S (on the server) I have deamons running (process which execute in a repeat until(exit 4D) loop) There is no reason (see below) based on the code in the deamons, that these deamons can not be set to run in preemptive mode. One of the ways

Re: V17 - Select list items Always Returns Zero

2018-07-12 Thread Douglas von Roeder via 4D_Tech
Miyako: Thank you for pointing out the two new commands. I'll read up on them in the docs. From my signature block of yore - "99.% of all 4D 'bugs' are self-inflicted". The tab control was set to numeric but, when I clicked on "Default Values", the window opened to display all of the entries

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Alan Chan via 4D_Tech
Why not? It isn't supported? I just checked In Transaction in trigger is a preemptive compliant. It means, preemptive mode does expect transaction. Any hidden constraint? Without transaction, trigger is meaningless. When a trigger invoked, mulitple tables might be updated inside the trigger.

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Jeffrey Kain via 4D_Tech
Well, the engine does handle preemptive threads completely transparently since version 11. We're talking about code that you write for your custom application. > On Jul 12, 2018, at 10:02 AM, Paul Lovejoy via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Is it just me, or does anyone else

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Alan Chan via 4D_Tech
I don't need preemptive client side on data updates. I care about server side only. Data entry/updates are human works in our case, one at a time (one entry per second through barcode scanner). If triggers on server could be completed in less time even when server loading is heavy, it won't

Re: Objects without Stylesheets suddenly displayed as Wingdings!

2018-07-12 Thread Jim Dorrance via 4D_Tech
That sounds really useful! On Thu, Jul 12, 2018 at 4:12 PM, Chuck Miller via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I have code that will report on any object on forms with no font or style > sheets assigned > Please advise if you want it > > Regards > > Chuck > Sent from my iPhone > > > On

Re: Objects without Stylesheets suddenly displayed as Wingdings!

2018-07-12 Thread Chuck Miller via 4D_Tech
I have code that will report on any object on forms with no font or style sheets assigned Please advise if you want it Regards Chuck Sent from my iPhone > On Jul 11, 2018, at 10:44 PM, Bob Miller via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I've not ever seen this before today, when I

AW: 4D Write PRO: editing a table / collections

2018-07-12 Thread Achim Peschke via 4D_Tech
Hi Rudy, yes of course I tried all this by myself. With my scenario, in way of working, in my samples. But I think that this goes beyond the purpose of this discussion list. I think discussing possibilities would not help you. I recommend you to contact your local 4D support subsidiary. And

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Paul Lovejoy via 4D_Tech
Is it just me, or does anyone else expect that a database engine would handle preemptive threads, transactions and concurrence transparently? Why would I need to know about cooperative versus preemptive threads in the best of worlds? Paul > On 12 Jul 2018, at 15:19, Peter Bozek via 4D_Tech

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Peter Bozek via 4D_Tech
On Thu, Jul 12, 2018 at 1:57 PM Jeffrey Kain via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Does it make sense for most triggers? Usually you want to know for sure > that code in a trigger has completed before doing anything else in the > table/process, which is kind of the opposite of a preemptive

AW: 4D Write PRO: editing a table / collections

2018-07-12 Thread Achim Peschke via 4D_Tech
Hi Rudy, yes of course I tried all this by myself. With my way of working in my samples. But I think that this goes beyond the purpose of this discussion list. I think discussing possibilities would not help you. I recommend you to contact your local 4D support subsidiary. And the best would

Sweetwater is hiring

2018-07-12 Thread Jeffrey Kain via 4D_Tech
Just a quick note to let the 4D community know that Sweetwater is looking for a full time 4D developer to join our team of 6 4D developers and 2 iOS/Swift developers. For more information on the position: https://www.sweetwater.com/careers/opening/18 To take a virtual tour of our campus:

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Jeffrey Kain via 4D_Tech
Does it make sense for most triggers? Usually you want to know for sure that code in a trigger has completed before doing anything else in the table/process, which is kind of the opposite of a preemptive thread. I suppose for some triggers it would be suitable. > On Jul 11, 2018, at 11:52 PM,

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Jeffrey Kain via 4D_Tech
I'm about to try it in a stored procedure to convert journal files (created every 30 seconds for the mirror) into json. > On Jul 11, 2018, at 11:20 PM, Alan Chan via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > However, 4D server (thus triggers) is supported. I'm just wondering does > anyone

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Alan Chan via 4D_Tech
That's what I understand in the first place as following. - do data entry in a form (UI in application process) - in the form, I click a button call SAVE RECORD (in the same applicaation process) - As long as all codes in the trigger are preemptive compliant, the trigger would be running in

Re: 4D Write PRO: editing a table / collections

2018-07-12 Thread Two Way Communications via 4D_Tech
Achim, have you tried this yourself? I think it is not possible in 4D Write PRO v17 to select 1 or more cells in a table and then be able to get the cells reference by code. Just follow this scenario: - the user creates a table in 4D Write PRO (by clicking a button containing the code WP

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Peter Bozek via 4D_Tech
On Thu, Jul 12, 2018 at 11:47 AM Alan Chan via 4D_Tech <4d_tech@lists.4d.com> wrote: > I'm a bit confused. > > When I just call SAVE RECORD in data entry form (cooperative process), I > was told it's not OK because it's from a process that have UI. Now, your > latest reply claimed it's OK. Or

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Alan Chan via 4D_Tech
I'm a bit confused. When I just call SAVE RECORD in data entry form (cooperative process), I was told it's not OK because it's from a process that have UI. Now, your latest reply claimed it's OK. Or only if there's no trigger and transaction? If I create a new process that contain "no" UI from

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Keisuke Miyako via 4D_Tech
transactional data entry is kind of task you would typically want to avoid using preemptive mode. DB4D requests (19814) are all preemptive since v11, so if you call the command SAVE RECORD on the client side (a cooperative process), the request is still processed on the server side in

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Alan Chan via 4D_Tech
Thanks. OK. Forget about the syntax, just the idea. - open data entry dialog - check button value - if button value is validate, save all new value in an object, then call worker with object and form window process as parameters - the worker process create new/load an existing record and modify

Re: Capture Image on Tablet

2018-07-12 Thread 4dialog via 4D_Tech
I tested the KB http://kb.4d.com/assetid=77204, its 4d14 but i forced upgrade to v16. The demo has a problem with the video stream, it only shows fragments of the video from isight. The capture is as bad as the stream. Have someone made a 4dv16 version that gives full video quality? -

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Peter Bozek via 4D_Tech
On Thu, Jul 12, 2018 at 8:11 AM Alan Chan via 4D_Tech <4d_tech@lists.4d.com> wrote: > Simply put, preemptive triggers are not for client/server operations even > all the codes are preemptive-compliant. > > - data entry UI and do entry data > - click a button call a method that contains SAVE

AW: 4D Write PRO: editing a table / collections

2018-07-12 Thread Achim Peschke via 4D_Tech
Before you asked for text. I told you how to replace, using WP SET TEXT on a selection. Now you want to do a different thing, to work on a cell as whole. In this case you have to select the complete cell and get its reference with WP Table get cells. This reference on the cell is the parameter

Re: just a curiosity - pre emptive threads

2018-07-12 Thread Alan Chan via 4D_Tech
Simply put, preemptive triggers are not for client/server operations even all the codes are preemptive-compliant. - data entry UI and do entry data - click a button call a method that contains SAVE RECORD that invoke trigger in server and all codes in this method itself and codes in trigger are