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.

If you make an assignment to a field and save the record, the assignment
should stick. Nothing else makes sense from a DBMS perspective. That's
exactly the sort of behavior that should be absolute and unquestionable.
(The only exception being that you have to be in a position to write any
changes to the record.)

I hope that they come in off the ledge and don't create a buggy feature
that will lead to some really, really hard to detect bugs in the field for
years to come.
**
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: [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 too was told that the engineers were leaning to declaring this as 
standard behavior. Why? I have not a clue. 

So the workaround is not to  use dot notation against an object field, or to 
always save the object to itself before saving the record as that will also set 
the dirty flag…

[Table1]Object.value:=$b_value 
[Table1]Object:=[Table1]Object
SAVE RECORD([Table1)

John


> On Oct 30, 2017, at 11:21 AM, Alberto Bachler via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> 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
> **

John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.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: [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 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
> **

Hell is other people 
 Jean-Paul Sartre
**
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: 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)  //  no error


Or it could be when I was looking at compiled code. I haven't tested this
rigorously yet. It's pretty helpful that it 'defaults to text' as it were.


On Mon, Oct 30, 2017 at 12:20 PM, Tim Nevels via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> 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 you include the type in OB GET and the property
> does not exist in the object you don’t get an error.
>
> I did a quick test of this with this code and did not get an error.
>
> C_OBJECT($o)
> C_TEXT($test_t)
>
> $test_t:=OB Get($o;"theProperty")
>
> $test_t:=OB Get($o;"theProperty";Is text)
>
> Is this a runtime error you get only when compiled?
>
> Tim
>
> 
> Tim Nevels
> Innovative Solutions
> 785-749-3444
> timnev...@mac.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
> **
>



-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

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

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 using Remote Desktop 
to connect to a machine and then from the Desktop of that machine you start up 
a 4D application. 

Problem reported by users: Sometimes when I start up 4D no windows are 
displayed. Or they say the main window is minimized and when I restore it the 
windows inside are all screwed up and sized wrong. Sometimes it happens but not 
always. 

What is happening is with RDS saves the size and position of the MDI when you 
quit an application. The next time you start up the application it will open 
the MDI in the same location and size. Nice feature. 

The problem is if a user minimized the MDI window it disappears. If they 
right-click on the window in the Task Bar and choose “Close Window” it will 
quit 4D. (Or some other action causes 4D to quit.) Windows will remember that 
minimized MDI size and placement. When the user starts up 4D again instead of 
seeing the normal big gray MDI window, the MDI window is opened minimized and 
appears in the lower left corner of their Desktop. Many users don’t even notice 
this, hence the “no window opens” comment. A side affect of this is that if you 
open any windows inside the MDI on startup the sizing and position may be wrong.

The fix is simple. Don’t quit 4D with the MDI minimized. Win32API to the rescue 
to provide a way to handle this. Here’s a method I wrote today to deal with 
this. File this in your memory bank somewhere so that if you ever run into this 
problem you know what it is and how to fix it. 

  // ===
  // PROJECT METHOD: RestoreWindowsMDI

  // PARAMETERS: none

  // DESCRIPTION: This method will check if on Windows the
  // MDI window is minimized and if so, restores it.

  // On Windows RDS it saves the MDI window size when
  // you quit the application. Then when you start the application again it
  // opens the MDI to the same size and location. This causes a problem
  // because the MDI is restored in a minimized position and that causes
  // the first window opened inside the MDI to be improperly resized. 

  // This method fixes that problem by restoring the MDI before quitting. 

  // CREATED BY: Tim Nevels, Innovative Solutions ©2017
  // DATE: 10/30/17
  // LAST MODIFIED: 
  // 

C_LONGINT($windowHandle_l;$error)

If (Not(<>macOS))  // must be Windows OS

 // Get MDI window handle
   $windowHandle_l:=gui_GetWindow ("")

 // check if MDI is minimized
   If (gui_GetWindowState ($windowHandle_l)=IS_MINIMIZED)  // yes it is
// restore the MDI
  $error:=gui_RestoreMDI 
   End if 
End if 


Tim


Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.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
**

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

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 you include the type in OB GET and the property does not 
exist in the object you don’t get an error.

I did a quick test of this with this code and did not get an error.

C_OBJECT($o)
C_TEXT($test_t)

$test_t:=OB Get($o;"theProperty")

$test_t:=OB Get($o;"theProperty";Is text)

Is this a runtime error you get only when compiled? 

Tim


Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.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: 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 volgende geschreven:
> 
> 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.



—
Koen Van Hooreweghe
—



**
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: 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 arrays sometime, as I think about a little more.

On Sun, Oct 29, 2017 at 5:28 PM, Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I think that's because the assignment operator is typically over-ridden by
> a toString() method or something similar in template or class based
> languages.
>
> anyway,
>
> 4D is a strongly typed language, so the use of the 3rd argument "Is text"
> does not remove the need to declare the left operand.
>
> if you
>
> $t:=OB Get($o;"foo";Is text)
>
> then you must
>
> C_TEXT($t)
>
> to make it work in compiled mode.
>
> > 2017/10/30 7:57、Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> のメール:
> >
> > ​This aspect of using text is in keeping with what I've noticed working
> > with other platforms that use JSON heavily - they frequently make all the
> > JSON values text.
>
>
>
>
> **
> 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
> **
>



-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

*- Edmund Burke*
**
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: 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 Hooreweghe via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> 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.
>
> HTH
> Koen
>
> > Op 29 okt. 2017, om 22:26 heeft Kirk Brooks via 4D_Tech <
> 4d_tech@lists.4d.com> het volgende geschreven:
> >
> > Just display a c-obj in a hierarchical list. I want to mimic the way the
> > debugger shows c-objects.
>
>
>
> 
> Compass bvba
> Koen Van Hooreweghe
> Kloosterstraat 65
> 9910 Knesselare
> Belgium
> tel +32 495 511.653
>
> **
> 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
> **
>



-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

*- Edmund Burke*
**
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: 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 Additional text
parameter of an hList is useful. It's really the first time I've had reason
to use hList parameters to be honest. In v2004 I used hLists extensively
for various data display chores but since v13 and the improved listboxes I
use very few. This is the first time they are a superior solution and the
parameters provide the extensibility I need.

Here are a couple of screenshots to show what I'm doing:

https://www.dropbox.com/sh/8r72qwgs6lqa2wo/AAB_0--YFCwGMzdJu9tat0oVa?dl=0


One shows what a json looks like in the hList. The other shows how the
hidden var looks allowing the user to edit the value. None of that would be
particularly useful without the ability to include data like the full key
and even the data type, if you wanted that, in the parameters.

Like I say I happen to be using this for JSON but it could be extended to
any key:value kind of hierarchical list.


On Mon, Oct 30, 2017 at 12:48 AM, Ortwin Zillgen via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> some reading
> 
>
>
>
>
> Regards
> O r t w i n  Z i l l g e n
> -
>    
>  
> member of developer-network 
>
> **
> 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
> **
>



-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

*- Edmund Burke*
**
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: 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 in with an 
idle terminal session. I also found that when I remotely logged in to to check 
on the 'web client' user that 4D was not running, but quickly launched (my 
login woke the system up). I suspect that power management features were 
causing the network and/or hard disks to 'sleep' at 3AM. We have not had 
problems since logging that user out. Therefore, even though you may think that 
Power Nap is configured to be off, it isn't totally.

Brad Perkins.

On 10/27/17, 3:02 PM, "Perkins, Bradley D"  wrote:

I have grep'd everything in /var/log --- the files the the console displays 
-- and haven't found anything that is running at 3am. That is assuming of 
course that any system level activity would be logged. The closest entry is at 
3:01 and that is when my monitoring script emails me the first of many messages 
that there is a problem.

I was mainly asking here in case those that are more in tune with current 
Mac goings on were aware of anything new in High Sierra that might have caused 
problems with 4D.

I'm not familiar with the use of  4D's debug/request log. Can that be 
turned on easily, or do I have to recompile the structure to enable it?
I'm mainly interested in what is going on at the client. I'd also guess 
that whatever is hanging 4D might not get logged to the server.

Thanks,

Brad

> From: JBellos 

> Try turning on the debug/request log in 4D to see what's firing in your
> application at that time, if anything..

> Also, look at the Mac Console log to see what's happening at 3 AM, if
> there's anything unique running there that's not  happening earlier.

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

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)

RECEIVE PACKET($rxBlob;Char(13))
// Delay of ~8 seconds between scan and getting here


Repeat 
RECEIVE BUFFER($r)
$rx:=$rx+$r
Until (Position(Char(13);$rx)>0)
// Falls through to here on scan immediately

Thinking that it might be unicode, I’ve tried with blob and text, but no luck.  
I can workaround by using RECEIVE BUFFER, but just wondering if anyone knows of 
any other things I can try or if it is a bug?

Tony Pollard
Another Dimension Ltd

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

HTH
Koen

> Op 29 okt. 2017, om 22:26 heeft Kirk Brooks via 4D_Tech 
> <4d_tech@lists.4d.com> het volgende geschreven:
> 
> Just display a c-obj in a hierarchical list. I want to mimic the way the
> debugger shows c-objects.




Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Knesselare
Belgium
tel +32 495 511.653

**
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: 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 >
> To: 4d_tech@lists.4d.com 
> Subject: Re: Primary Key in 4Dv15
> Message-ID: <1508914530964-0.p...@n5.nabble.com 
> >
> Content-Type: text/plain; charset=UTF-8
> 
> Hello Ronnie,
> 
> I agree with "Roll your own".
> I just added new PK fields with the only purpose for journaling
> and nothing else so far. 

**
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: 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 to look closer at the script.

We have had issues with writing files to folders where the permissions
would not
allow 4D to access a file in Read Write unless we changed the owner or
permissions
on the folder.

Good Luck.



**
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: 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 the starting phase of the server.
The usual message in the (Windows) Event log that 4D is started is not really 
helpful.

I just filed a feature request, look here: 
http://forums.4d.com/Post//21398249/1/

This request doesn't help you so much in the present situation, but if this 
feature would exist already it would be really helpful and you would a step 
further in your problem solving, I think.


Thanks
Lutz Epperlein

**
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: 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 on the screen



On 27 Oct 2017, at 19:10, Lee Hinde via 4D_Tech 
<4d_tech@lists.4d.com> wrote:

in v15...

Input form with an included layout that is just a text field. User clicks a
"new" button which adds a related record, date/timestamps it as the first
part of the field.

User would like the cursor to be placed to the right of the time stamp.

Based on the commented out code, the previous dev tried to do it with :

*POST CLICK*(400;400)

*POST CLICK*(400;400)

I'm wondering if there is a more modern approach available.
**
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: 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 

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