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

2017-10-30 Thread David Adams via 4D_Tech
On Tue, Oct 31, 2017 at 3:49 PM, John Baughman via 4D_Tech < 4d_tech@lists.4d.com> wrote: > And, yes, I too was told that the engineers were leaning to declaring this > as standard behavior. Why? I have not a clue. > I'm failing to come up with any good arguments in support of such a posture.

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

2017-10-30 Thread John Baughman via 4D_Tech
I went through the same thing with TS. Tim will probably chime in. The problem is that the dirty flag is not set when dot notation is used against an object field. In your scenario the following will work… OB SET ([Table1]Object;”value”;b_value) //this will set the record dirty. And, yes, I

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

2017-10-30 Thread Chip Scheide via 4D_Tech
Alberto, doesn't Goto REcord ([table];0) - generate an error? there is no record number 0 from documentation : If record is less than the smallest record number in the database or greater than the greatest record number in the database > Hello, > > If the value of a property is modified using

Re: Method to put a c-obj (or JSON) into a hierarchical list

2017-10-30 Thread Kirk Brooks via 4D_Tech
Hey Tim, Good point. I thought it might be an issue between 32 and 64 but I think I was just conflating the effect when dealing with other data types. ie. C_LONGINT($i) C_OBJECT($obj) $t:=OB Get($obj;"key") // no error $i:=OB Get($obj;"key") // ** error $i:=OB Get($obj;"key";Is longint) //

Fixing Odd RDS Window Size Problem

2017-10-30 Thread Tim Nevels via 4D_Tech
This is a very specific and obscure problem with 4D when running under Windows Remote Desktop Services (RDS) 2012 or newer — also know as Terminal Services in Windows Server 2008. You have a 4D application deployed so that it runs as a single window when a user logs into RDS. This is not about

[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

Re: Method to put a c-obj (or JSON) into a hierarchical list

2017-10-30 Thread Tim Nevels via 4D_Tech
On Oct 30, 2017, at 2:00 PM, Kirk Brooks wrote: > I've taken to always specifying the type when I use OB GET except in cases > like copying a key from one object to another. I like that OB GET doesn't > throw an error when it's typed and the key doesn't exist. Hi Kirk, I did not know that if

Re: Method to put a c-obj (or JSON) into a hierarchical list

2017-10-30 Thread Koen Van Hooreweghe via 4D_Tech
Hi Kirk, Thanks for the info. I also think this is not a huge task to get the changed data back into 4D, but or the time being I don’t need this feature. So I haven’t tried it yet. Kind regards, Koen > Op 30 okt. 2017, om 16:50 heeft Kirk Brooks via 4D_Tech > <4d_tech@lists.4d.com> het

Re: Method to put a c-obj (or JSON) into a hierarchical list

2017-10-30 Thread Kirk Brooks via 4D_Tech
Miyako, I've taken to always specifying the type when I use OB GET except in cases like copying a key from one object to another. I like that OB GET doesn't throw an error when it's typed and the key doesn't exist. It would be interesting to hear about how they are able to parse mixed type json

Re: Method to put a c-obj (or JSON) into a hierarchical list

2017-10-30 Thread Kirk Brooks via 4D_Tech
Koen, I like that one. I wouldn't think it would be very difficult to get the data back into 4D. You could 'push' it with js using the 4D callback approach Tim Penner writes about here: http://kb.4d.com/assetid=77177. I've really found that useful. On Mon, Oct 30, 2017 at 7:46 AM, Koen Van

Re: Method to put a c-obj (or JSON) into a hierarchical list

2017-10-30 Thread Kirk Brooks via 4D_Tech
Hi Ortwin, Nicely done. In this case I want to be able to view and edit the json easily. This is a developer tool I'm building but the solution is really all hierarchical list based. The key for me is being able to edit the json value without messing with the key. This is where I discovered the

Re: 4D Remote hanging at 3am after upgrading to Hi Sierra.

2017-10-30 Thread Perkins, Bradley D via 4D_Tech
I think I found the problem. When I upgraded the server OS on Tuesday I had a second GUI login session open for the admin user as I needed to sudo to fix some permissions, etc (aka fast user switching). When I checked on the application early Saturday AM I realized I had left that user logged

Slow RECEIVE PACKET for serial

2017-10-30 Thread Tony Pollard via 4D_Tech
In upgrading a client from v14 to v16.2 (Mac based), I’ve noticed that RECEIVE PACKET has become very slow, whilst RECEIVE BUFFER works fine. This is using serial comms with a scanner (via Keyspan adaptor). C_BLOB($rxBlob) SET CHANNEL(101;Data bits 8+Parity none+Speed 19200+Stop bits one)

Re: Method to put a c-obj (or JSON) into a hierarchical list

2017-10-30 Thread Koen Van Hooreweghe via 4D_Tech
Hi Kirk, Same idea as Jeff. But I'm using jsoneditor (https://github.com/josdejong/jsoneditor ) in a web area to display objects. Its an editor, but I have only used it to display an objects content. Haven’t tried to get the modified data back to 4D.

Re: Primary Key in 4Dv15

2017-10-30 Thread Ronnie Teo via 4D_Tech
Hi Magnus, Thanks for your reply and your sample code. Am outstation this week but will test it at the first opportunity. Regards, Ronnie Tarawerkz > On 25 Oct 2017, at 10:27 pm, 4d_tech-requ...@lists.4d.com wrote: > > From: Magnus Torell > >

Re: 4D Remote hanging at 3am after upgrading to Hi Sierra.

2017-10-30 Thread Jim Medlen via 4D_Tech
One thing you might try is changing the time that the script runs. If the the script runs successfully at 2:00 AM and the computer hangs at 3:00 AM then the problem is probably not the script. If the computer hangs at the new scheduled time for the script and not 3:00AM then that would lead me

RE: 4D Remote hanging at 3am after upgrading to Hi Sierra.

2017-10-30 Thread Epperlein, Lutz (agendo) via 4D_Tech
Brad, you wrote in your first posting, you saw a 4D error message very shortly. But you weren't able to read it. So it would be really helpful if a 4D Server would not show such messages only, they should also be logged into a file (or in system log) regardless of my settings, at least during

Re: Placing cursor in text field in included form

2017-10-30 Thread Vincent de Lachaux via 4D_Tech
Hi Lee, The subform container must be set "Focusable". Then, when the container get the focus the form event "On Activate" is triggered. So when the subform get this event, just do a GOTO object. v i n c e n td el a c h a u x Bee green - keep it

Re: Method to put a c-obj (or JSON) into a hierarchical list

2017-10-30 Thread Ortwin Zillgen via 4D_Tech
some reading Regards O r t w i n Z i l l g e n - member of developer-network