RE: 4D v17 R2 Object Library Write Pro Toolbar

2018-10-10 Thread David Ringsmuth via 4D_Tech
The link that says, “Download 4D v17R2” at the bottom of the v17 R2 form 
(https://us.4d.com/new-4d-v17-r2) does not point to v17 R2. It points to v17.

Perhaps that’s why I downloaded the wrong build.

I should have looked closer.

Thanks Keisuke!!

David Ringsmuth

From: Keisuke Miyako via 4D_Tech
Sent: Wednesday, October 10, 2018 10:30 PM
To: 4D iNug Technical
Cc: Keisuke Miyako
Subject: Re: 4D v17 R2 Object Library Write Pro Toolbar

the release version of 17R2 has the build number: 227919
could that be the issue?

> 2018/10/11 12:08、David Ringsmuth  のメール:
> 4D v17 R2. (build 17.225365)




**
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: 4D v17 R2 Object Library Write Pro Toolbar

2018-10-10 Thread Keisuke Miyako via 4D_Tech
the release version of 17R2 has the build number: 227919
could that be the issue?

> 2018/10/11 12:08、David Ringsmuth  のメール:
> 4D v17 R2. (build 17.225365)




**
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: 4D v17 R2 Object Library Write Pro Toolbar

2018-10-10 Thread David Ringsmuth via 4D_Tech
Keisuke,

There is no subform object named “WP_Toolbar” 4D v17 R2. (build 17.225365)

There are many “4D_Palette” subform objects. None of them are the horizontal 
tool bar.

Please help!

David Ringsmuth

From: Keisuke Miyako via 4D_Tech
Sent: Wednesday, October 10, 2018 7:23 PM
To: 4D iNug Technical
Cc: Keisuke Miyako
Subject: Re: 4D v17 R2 Object Library Write Pro Toolbar

you create a non list subform object and set the "detail form" property to 
"WP_Toolbar" (Write Pro Interface)

default size is 90h x 880w.

https://blog.4d.com/4d-write-pro-a-new-bar-is-born/

2018/10/11 3:48、David Ringsmuth via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
We received the update notice and downloaded 4D v17 R2. (build 17.225365)
The Write Pro tool bar shown in the video, which is positioned above the 
WriteProArea, does not appear in the object library.
There is a Write Pro Widget that appears to the right of the Write Pro area.
Where may we find the tool bar that fits above the WritePro area?
David Ringsmuth


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

List Box Font Color Expression, how?

2018-10-10 Thread JOHN BAUGHMAN via 4D_Tech
In a Selection based list box how do you set a row font color based on a 
condition such as if records in a related many table exist or not. I would like 
to set the font color for the row to red if the related many table has records 
and black if it does not.

I see that a method entered in Font Color Expression only fires On Load.

Seems like I have figure this out before but am stumped today.

Thanks,

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

Re: 4D v17 R2 Object Library Write Pro Toolbar

2018-10-10 Thread Keisuke Miyako via 4D_Tech
you create a non list subform object and set the "detail form" property to 
"WP_Toolbar" (Write Pro Interface)

default size is 90h x 880w.

https://blog.4d.com/4d-write-pro-a-new-bar-is-born/

2018/10/11 3:48、David Ringsmuth via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
We received the update notice and downloaded 4D v17 R2. (build 17.225365)
The Write Pro tool bar shown in the video, which is positioned above the 
WriteProArea, does not appear in the object library.
There is a Write Pro Widget that appears to the right of the Write Pro area.
Where may we find the tool bar that fits above the WritePro area?
David Ringsmuth


**
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: Write Pro: Creating headers/footers

2018-10-10 Thread Pat Bensky via 4D_Tech
Hi Mike,
Yup - r3 was released shortly after I posted that message!
I am working with it now.
Pat

On Wed, 10 Oct 2018 at 17:21, Mike Kerner via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> According to the R3 release notes, "With 4D v17 R3, you can
> programmatically create a header and a footer for a specific section with
> two new commands: WP New header and WP New footer. You can also delete a
> header or footer with the WP DELETE HEADER and WP DELETE FOOTER commands."
>
> On Tue, Oct 9, 2018 at 5:57 PM Pat Bensky via 4D_Tech <
> 4d_tech@lists.4d.com>
> wrote:
>
> > Thanks Rudy - but I need to create new headers and footers in code!
> > Pat
> >
> > On Tue, 9 Oct 2018 at 20:21, Two Way Communications via 4D_Tech <
> > 4d_tech@lists.4d.com> wrote:
> >
> > > Hi Pat,
> > >
> > > I discovered this by accident: you need to double click in the header
> or
> > > footer area, when in ‘Page’ mode…. practically, this means, as high or
> as
> > > low as you can on the 4D Write Pro page.
> > >
> > > Rudy Mortier
> > > Two Way Communications bvba
> > >
> > >
> > >
> > > > On 6 Oct 2018, at 00:59, Pat Bensky via 4D_Tech <
> 4d_tech@lists.4d.com>
> > > wrote:
> > > >
> > > > If I create a new WP document from scratch, is there any way to add a
> > > > header or footer to the document? Or do I have to start with a
> template
> > > > that has a header/footer and modify it?
> > > >
> > > > Pat
> > > > --
> > > > *
> > > > CatBase - Top Dog in Data Publishing
> > > > tel: +44 (0) 207 118 7889
> > > > w: http://www.catbase.com
> > > > skype: pat.bensky
> > > > *
> > > >
> **
> > > > 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
> > > **
> >
> >
> >
> > --
> > *
> > CatBase - Top Dog in Data Publishing
> > tel: +44 (0) 207 118 7889
> > w: http://www.catbase.com
> > skype: pat.bensky
> > *
> > **
> > 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
> > **
>
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>and did a little diving.
> And God said, "This is good."
> **
> 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
> **



-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
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: Defining and documenting Objects

2018-10-10 Thread Benedict, Tom via 4D_Tech

> On 5 Oct 2018, at 09:15, Paul Dennis via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
>
> With tables and records and the structure it's relatively
> straightforward to track through the code and work out what's going
> on. I can see this being a real problem with objects. There just
> doesn't seem to be any visibility. The data could be buried many
> layers down in an object let alone all the quotes, dots and semi
> colons involved

I'm stuck on v13.x, so I haven't had an opportunity to learn much about 4D 
objects. One thing that I would be interested in is how easy it is to expose 
data in objects to external non-4D systems. Can I pass an object as a response 
to a web service call from a .Net app and have the JSON or whatever form the 
object takes be meaningful? Or does that even make sense?

Tom Benedict
Optum
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.
**
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: Write Pro: Creating headers/footers

2018-10-10 Thread Vance Villanueva via 4D_Tech
Hi Pat,

The following Tech Tip exports the 4D Write Pro document to add them:

http://kb.4d.com/assetid=77968

Regards,

Vance Villanueva




-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Pat Bensky via 
4D_Tech
Sent: Friday, October 05, 2018 3:59 PM
To: 4D iNug Technical
Cc: Pat Bensky
Subject: Write Pro: Creating headers/footers

If I create a new WP document from scratch, is there any way to add a
header or footer to the document? Or do I have to start with a template
that has a header/footer and modify it?

Pat
--
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
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: Volume shadow copy v17

2018-10-10 Thread Tim Nevels via 4D_Tech
On Oct 10, 2018, at 1:48 PM, Chuck Miller wrote:

> Has anyone implemented this feature and tested to make sure it works as 
> advertised.

Hi Chuck,

I’ve got it implemented on one v17 application. Easy to setup. Just launch 4D 
Server as Administrator and 4D creates a Windows Service called “VSS {database 
name}. From then on it’s all low level, hidden magic to me.

I don’t know how you would easily test it to prove it works. A test would be 
rather complicated to even set up.

I guess you would have rig up some kind of environment where 4D Server was 
doing a giant cache flush that took many seconds, and just as that is happening 
you force the VM to take a snapshot. Then maybe you crash 4D Server? 

Then you would have to restore the snapshot and do some kind of datafile audit 
to see if any data was lost and also do an MSC to ensure no data file damage. 
Just guessing. 

Seems like conducting a test of this super low level feature that also 
integrates with the VM snapshot feature would be super hard to setup and then 
prove that it worked. 

You might have to just depend on 4D doing it right and that does work. That’s 
what I’m doing. But maybe I’m a little too trusting. :)

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.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 v17 R2 Object Library Write Pro Toolbar

2018-10-10 Thread David Ringsmuth via 4D_Tech
We received the update notice and downloaded 4D v17 R2. (build 17.225365)

The Write Pro tool bar shown in the video, which is positioned above the 
WriteProArea, does not appear in the object library.

There is a Write Pro Widget that appears to the right of the Write Pro area.

Where may we find the tool bar that fits above the WritePro area?

David Ringsmuth
**
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: Pictures Outside Datafile - Calculate Path

2018-10-10 Thread Chip Scheide via 4D_Tech
any incremental backup software will note when the files were last 
backed up and skip those that have not changed since the last backup

as to the deleted record issue, if deletions are allowed, the process 
of deleting a record which is (or possibly is) associated with an 
external file (picture or otherwise) should locate and delete the 
external file(s) when the record is deleted.  referencing back to the 
backup, once the file has been backed up, it should not be an issue, if 
it is not deleted with it's parent record, as it should be skipped 
during any subsequent incremental backup.

Chip

 
On Thu, 4 Oct 2018 19:23:04 -0400, Illustration House via 4D_Tech wrote:
> 
> Within that folder, other folders are created as needed that hold the 
> picture files, which are named with the Table and Field and record 
> numbers. You can retrieve these external to 4D, but this is not the 
> handiest system otherwise, and you should beware that this makes 
> backup schemes more complicated as there is no way to determine when 
> the pictures were placed into the folders, and backups may contain 
> images whose records have since been deleted.
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: Pictures Outside Datafile - Calculate Path

2018-10-10 Thread Illustration House via 4D_Tech
Justin,
When such pictures are entered, they're stored in a folder next to the 
structure, called external datafile or something like.

Within that folder, other folders are created as needed that hold the picture 
files, which are named with the Table and Field and record numbers. You can 
retrieve these external to 4D, but this is not the handiest system otherwise, 
and you should beware that this makes backup schemes more complicated as there 
is no way to determine when the pictures were placed into the folders, and 
backups may contain images whose records have since been deleted.

A few years ago, JPR suggested that it’s not a bad tactic to designate one 
table for pictures and fetch them by query on the primary key, which you store 
in another table. In that case, you store the pictures IN THE RECORD. This has 
worked very well for me. I suspect it's problematic if records in the same 
table take up different amounts of memory, that is, if some have empty picture 
fields and others do not.

Roger Reed

> On Oct 4, 2018, at 6:37 PM, Justin Will via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I have a picture field where I have the property checked that tells 4D to 
> store the pictures outside the datafile.  The folder/file structure of these 
> pictures is not apparent.  Is there a way to calculate where a picture for a 
> particular table and field is within that structure?
> 
> Thanks
> Justin Will
> **
> 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: Where is best place to save data outside data file

2018-10-10 Thread Jody Bevan via 4D_Tech
Jim:

You are right about the tilde in the path name. After I sent the E-Mail and 
noticed it.
What I wrote on startup is that if these directories are not there I create 
them, and use chmod to change the permissions to 666. Then I do the same for my 
three types of log files when I first create them.

Checking with terminal shows that the files didn’t change their permissions.
Yet if I change the permissions in Terminal they are done.

If you say it should work, then I will go back to trying it again, and 
reviewing every character I put in (again)…

Thanks for taking a review of my message and your comments.

BTW: I did get my application code signed finally (with help from Tim Penner). 
Two problems were that there were artifacts in the 4D Volume Desktop.app, and I 
had the wrong type of Apple Certificate. 

In some ways it was good I had so many problems my first time out. I got to 
learn Terminal much better, and learned to trouble shoot signing. After I get 
my notes done, I will be much better prepared for problems.

Thanks again

Jody


> On Oct 10, 2018, at 11:29 AM, Jim Crate via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> On Oct 9, 2018, at 8:50 AM, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
>> 
>> I love writing logs to the local computer while it is running. These log 
>> files are for the programmers to know what is occurring on the computer. 
>> Typically these logs are turned off when there are no problems in the 
>> application. They are used extensively when an application is first handed 
>> to the users in Alpha or beta form. This way we know much better where the 
>> problems are, often being able to fix the issue before they even report it 
>> to us. These files do not contain sensitive data.
>> 
>> Last week I decided I should actually test this out with switching computer 
>> users. 
>> 
>> On the MacOS we have been writing this information we write to the Shared 
>> folder. The pathname would be:
>> 
>> ~/Users/Shared/ApplicationName/Logs/LogFileName.txt
> 
> This is probably just an artifact of writing the email, but you should remove 
> the tilde in front of the path. When you convert from posix path, the tilde 
> will cause the path to become: 
> 
> /Users//Users/Shared/ApplicationName/Logs/LogFileName.txt
> 
> 
>> This has been working great when I am signed in as myself, or if the 
>> computer user does not changed. 
>> A quick check in Terminal shows me the directories and files are created, 
>> and I can write to them as needed.
>> -rw-r—r—
>> Or in Octal format 644
>> 
>> This is fine for the currently signed in user, but not for other users.
>> 
>> Not a problem I am thinking, I will just call terminal from within 4D at 
>> startup and use the chmod command to change the permissions of the folders 
>> and files if they are not read write for all users.
>> 
>> I suspect I am doing something stupid because it is not working.
> 
> Assuming you are actually putting the files in /Users/Shared/
> 
> 1. You have to change permissions for the directories you created too.
> 2. You can only change permissions if you are the user who created those 
> directories/files.
> 
> So if you run chmod when you create the files/directories, it should work 
> fine. If you’re running chmod at startup when logging in as another user, it 
> won’t work.
> 
> Jim Crate
> 

**
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: HMAC SHA256 in native 4D code? (Bill Hutten)

2018-10-10 Thread Bruno LEGAY via 4D_Tech
Hi,

Yes. HMAC-256 is quite simple (even more since sha256 is native).

I can send you some code if you want.

HTH
Bruno
**
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: Where is best place to save data outside data file

2018-10-10 Thread Jim Crate via 4D_Tech
On Oct 9, 2018, at 8:50 AM, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> I love writing logs to the local computer while it is running. These log 
> files are for the programmers to know what is occurring on the computer. 
> Typically these logs are turned off when there are no problems in the 
> application. They are used extensively when an application is first handed to 
> the users in Alpha or beta form. This way we know much better where the 
> problems are, often being able to fix the issue before they even report it to 
> us. These files do not contain sensitive data.
> 
> Last week I decided I should actually test this out with switching computer 
> users. 
> 
> On the MacOS we have been writing this information we write to the Shared 
> folder. The pathname would be:
> 
> ~/Users/Shared/ApplicationName/Logs/LogFileName.txt

This is probably just an artifact of writing the email, but you should remove 
the tilde in front of the path. When you convert from posix path, the tilde 
will cause the path to become: 

/Users//Users/Shared/ApplicationName/Logs/LogFileName.txt


> This has been working great when I am signed in as myself, or if the computer 
> user does not changed. 
> A quick check in Terminal shows me the directories and files are created, and 
> I can write to them as needed.
> -rw-r—r—
> Or in Octal format 644
> 
> This is fine for the currently signed in user, but not for other users.
> 
> Not a problem I am thinking, I will just call terminal from within 4D at 
> startup and use the chmod command to change the permissions of the folders 
> and files if they are not read write for all users.
> 
> I suspect I am doing something stupid because it is not working.

Assuming you are actually putting the files in /Users/Shared/

1. You have to change permissions for the directories you created too.
2. You can only change permissions if you are the user who created those 
directories/files.

So if you run chmod when you create the files/directories, it should work fine. 
If you’re running chmod at startup when logging in as another user, it won’t 
work.

Jim Crate

**
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: HMAC SHA256 in native 4D code?

2018-10-10 Thread Timothy Penner via 4D_Tech
Hi Bill,

I have some older code in the ACME Client technote 
(http://kb.4d.com/assetid=77708) that perhaps could be repurposed. It doesn't 
do HMAC but it could get you started and maybe after you adapt the code it will 
work for your purposes.

The code works natively on MacOS because MacOS includes openssl in the 
distribution of the OS, while on Windows the code expects the openssl binary 
app to be available in the resources directory of the database using code like 
this:
If (Folder separator=":")
  // MacOS
$cmd:="openssl"
Else
  // Windows
$cmd:=Get 4D folder(Current resources folder)+"openssl"+Folder 
separator+"win64"+Folder separator+"openssl.exe"
End if

Here is the full code I use:

// UTIL_hash_sha256
If (Count parameters=1)
C_BLOB($0;$result)
C_TEXT($1)
C_TEXT($cmd;$in;$err)
If (Folder separator=":")
  // MacOS
$cmd:="openssl"
Else
  // Windows
$cmd:=Get 4D folder(Current resources folder)+"openssl"+Folder 
separator+"win64"+Folder separator+"openssl.exe"
End if

C_TEXT($true_t)
$true_t:="true"
SET ENVIRONMENT VARIABLE("_4D_OPTION_CURRENT_DIRECTORY";Temporary folder)
SET ENVIRONMENT VARIABLE("_4D_OPTION_HIDE_CONSOLE";$true_t)

$in:=$1
$cmd:=$cmd+" dgst -sha256 -binary"
LAUNCH EXTERNAL PROCESS($cmd;$in;$result;$err)

$0:=$result
End if

I haven’t tried this yet but I suspect that you should be able to modify the 
$cmd assignment to include the necessary '-hmac "key" 
1234567890abcdef1234567890abcdef' parameters:
c.f. https://stackoverflow.com/a/42938987/5971390

Hope that helps,

-Tim



**
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: Blank server administration window v17

2018-10-10 Thread Timothy Penner via 4D_Tech
If you are a member of the 4D Partner Program then I would suggest checking the 
nightly builds as this sounds like a bug that was fixed since the last hotfix:

Fixed Build: 227264
Fix Date: 13/09/2018
Bug #: ACI0098580
Description: 4D Server stops updating / refreshing the UI on the Server

https://bugs.4d.fr/fixedbugslist?Branch=17

The last hotfix was 226804 while this bug was fixed in 227264, so using the 
latest hotfix is not enough.

-Tim




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

Volume shadow copy v17

2018-10-10 Thread Chuck Miller via 4D_Tech
Hi All,

Has anyone implemented this feature and tested to make sure it works as 
advertised.

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

Re: Defining and documenting Objects

2018-10-10 Thread Peter Jakobsson via 4D_Tech
Hi

This is a good point made by Paul...

> On 5 Oct 2018, at 09:15, Paul Dennis via 4D_Tech <4d_tech@lists.4d.com> wrote:
> 
> With tables and records and the structure it's relatively
> straightforward to track through the code and work out what's going on. I
> can see this being a real problem with objects. There just doesn't seem to
> be any visibility. The data could be buried many layers down in an object
> let alone all the quotes, dots and semi colons involved


I also agree with Kirk’s last post about unncecessary redundancy when you have 
a perfectly working programming paradigm already - and they do indeed take some 
documenting (at least in the code) - and you can get yourself tied in knots, 
especially when you go even one level of object hierarchy.

Despite that, I have recently taken the leap to using objects as arguments in 
methods and passing parameters “by name” rather than using $1..$N.

I did this because Laurent Ribardierre and JPR recommended this approach so 
categorically at the last advanced developers class. Also, when they demoed the 
new features of v17 and I saw the roadmap I can kind of see why - 4D want to 
drastically loosen the coupling between the forms layer, the code and the 
database engine. So what I’m doing now is just using a single object to hold 
all form properties that I’d previously used globals for. Then just use globals 
where required for active objects like menus.

You can preserve some of the formality of the old “$1…$2” approach by writing 
wrappers to “receive” the object properties and simultaneously “define” the 
form parameters - so that an error can be thrown is something’s missing from 
the mandatory argument list for example. But one of the advantages of this new 
approach I’ve noticed is massive flexibility when it comes to initialising the 
form. It’s much easier to refactor or add/remove parameters. (Say you had a 
function that opened the form and that function took some initial states as 
$1…$n. Just passing a single object instead saves having to support the 
argument list right up and down the call chain.

Also, I’m still on v15 but at the end of the day the new dot notation 
referenced object properties will not be much different from the old global 
variable approach.

Peter

**
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: Write Pro: Creating headers/footers

2018-10-10 Thread Mike Kerner via 4D_Tech
According to the R3 release notes, "With 4D v17 R3, you can
programmatically create a header and a footer for a specific section with
two new commands: WP New header and WP New footer. You can also delete a
header or footer with the WP DELETE HEADER and WP DELETE FOOTER commands."

On Tue, Oct 9, 2018 at 5:57 PM Pat Bensky via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Thanks Rudy - but I need to create new headers and footers in code!
> Pat
>
> On Tue, 9 Oct 2018 at 20:21, Two Way Communications via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
> > Hi Pat,
> >
> > I discovered this by accident: you need to double click in the header or
> > footer area, when in ‘Page’ mode…. practically, this means, as high or as
> > low as you can on the 4D Write Pro page.
> >
> > Rudy Mortier
> > Two Way Communications bvba
> >
> >
> >
> > > On 6 Oct 2018, at 00:59, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com>
> > wrote:
> > >
> > > If I create a new WP document from scratch, is there any way to add a
> > > header or footer to the document? Or do I have to start with a template
> > > that has a header/footer and modify it?
> > >
> > > Pat
> > > --
> > > *
> > > CatBase - Top Dog in Data Publishing
> > > tel: +44 (0) 207 118 7889
> > > w: http://www.catbase.com
> > > skype: pat.bensky
> > > *
> > > **
> > > 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
> > **
>
>
>
> --
> *
> CatBase - Top Dog in Data Publishing
> tel: +44 (0) 207 118 7889
> w: http://www.catbase.com
> skype: pat.bensky
> *
> **
> 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
> **



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
**
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: v 17 r release

2018-10-10 Thread Charles Miller via 4D_Tech
Never mind just found it.

Chuck

On Wed, Oct 10, 2018 at 11:22 AM Chuck Miller via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi All,
>
> I thought I saw a post that v17 R 2 was available for download and can’t
> find it. I would like to download
>
> 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
> **



-- 
-
 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)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

v 17 r release

2018-10-10 Thread Chuck Miller via 4D_Tech
Hi All,

I thought I saw a post that v17 R 2 was available for download and can’t find 
it. I would like to download

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

Re: what to do when I don't want back button funtionality in a browser of pages from 4d

2018-10-10 Thread ernie hilgers via 4D_Tech
I want to thank Paul Dennis and Epperlein, Lutz for their time and effort to 
answer on this subject.
As it seems, I have to insert JavaScript that do 'filter-work' in the 
background no matter what (for now). 

>> But there are some hacks around using javascript to mimic the behavior, e.g. 
>> look at https://stackoverflow.com/q/12381563/1865659.

I will get busy (again then) with the links supplied in the answer from 
Epperlein, Lutz. 
No way around this for now. Oh well it is what it is. 

Have a nice day. 

ernie hilgers(aruba)


> -Original Message-
> From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of setar accnt 
> via
> 4D_Tech
> Subject: what to do when I don't want back button funtionality in a browser 
> of pages
> from 4d
> 
> Hi All,
> I am a fledgling developer trying to become more proficient in using 4D and 
> the web
> for in-house applications.
> 
> Sinds many years 4D is capable to send, to the Web browser, the HTML page of 
> the
> Web file stored in the document whose pathname is supplied.
> 
> Every page I send to the browser is cached (back), so if I send first :
> page 1, where user enters an account# or other unique identifier
>   this info is send back to 4d, a query is made (if found)
> page 2, is shown with info to, possibly, change
>   say the data is updated, the page info is send back to 4D, acknowledged
> page 3, is send stating successful acceptance of the data.   All 3 pages 
> designed with
> simple HTML and inline css.
> 
> If I have 15 such case one morning, I might have 15x 3 pages possibly in the 
> cache at
> that one station / smart device.
> Pressing the back-button I can go back and update the data once more and 
> again send
> the page to the 4d database,
> which is an absolute no-no.
> 
> Is there a technique or standard that is used with 4D environment that use a 
> different
> approach, besides elaborate javascripts that bent
> and force website behavior to behave, e.g. no back button which does work for 
> one
> browser and not another.
> 
> Any tips on this would be very welcome.
> 
> In my ignorance I am thinking like, put up 1 screen for input identifier
> same screen (with other html) put up the requested data
> at acknowledgement, redraw again screen 1 for input of identifier.
> 
> thus no back-button action possible (?), what’s wrong with this picture ?
**
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
**

HMAC SHA256 in native 4D code?

2018-10-10 Thread Bill Hutten via 4D_Tech
As the subject says - is it possible to do this in native 4D (no plugin) in 
v17? 


- bill
**
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: Blank server administration window v17

2018-10-10 Thread David Porter via 4D_Tech
I just ran into this while developing interpreted.  v17 64bit server , Windows 
Server 2012 R2.  

I just triggered some code on the client to execute on the server.
The code displays a series of thermometers, which just blinked by on the 
server.  ( Uses 4D Progress component )
After that the Administrator screen never refreshed, and went blank after I 
closed and reopened it.
Took a 4D Server restart to get the Admin window back to normal.

Maybe it has something to do with forbidden usage of user interface code on the 
server?
Well, I reran code to display the thermometers on the server, they displayed 
just fine.
So, I have seen the issue, don’t know what causes it.
I can say the Administration window and server had been running for about a 
week.

Dave Porter
Tailored Solutions, Inc.
Business Management Software for Label Converters
http://www.labeltraxx.com/  414-774-9997

> On Oct 10, 2018, at 6:51 AM, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Haven't seen this one - we've been running v17 since July (but on Windows 
> Server 2016).
> 
> 32-bit server or 64-bit server? How much RAM does the server have and what 
> are your cache settings?
> 
>> On Oct 10, 2018, at 7:48 AM, David Samson via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>> Having recently upgraded to v17 we have noticed that the administration
>> window on the server gradually becomes unresponsive. This is all Windows
>> and the server is Windows Server 2012 R2.
> 
> **
> 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: Where is best place to save data outside data file

2018-10-10 Thread Arnaud de Montard via 4D_Tech

> Le 9 oct. 2018 à 17:50, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> a écrit 
> :
> 
> [...]
> 1. Is this the right location I should be saving this kind of information?

Unless it represents a huge amout of data / traffic, I think I'd choose to 
write this on server side. 

-- 
Arnaud de Montard 



**
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: SEND PACKET in a multi-process environment

2018-10-10 Thread Bruno LEGAY via 4D_Tech
Hi,

I also write logs into files.

I wanted the messages to appear in the log file in chronological order (logs 
can be confusing otherwise).

My approach is the following.

I have one process in charge of writing to the file.

The "messages" for the log file are written to an interprocess memory buffer 
(currently text array, but it could also be a blob).

Every 10 seconds, the process in charge of the log wakes up and makes a copy of 
the buffer, reset/clears the buffer, and the write the buffer copy to the file.

I have a mode, where I can flush the buffer for every message, this is slower 
but useful in case of crashing bugs.

The access to the buffer is controlled by local semaphores.

This is old code and could probably written in a better way but it just works...

And it is a component by the way.

HTH
Bruno
**
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: Selection to JSON Date Conversion

2018-10-10 Thread Douglas Cryer via 4D_Tech
Helge,

Re:
use

SET DATABASE PARAMETER([Booking];JSON use local time;0)  // scope current 
process

before the json command.

Many thanks, that is exactly what I was looking for __.  I had already post 
parsed everything to fix the dates.  It has little impact and removes the 
useless time portion so I will stick with that till v17.

Regards,  Dougie


telekinetix Limited- J. Douglas Cryer
Phone : 01234 761759  Mobile : 07973 675 218
2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE
Email : jdcr...@telekinetix.com  Web : http://www.telekinetix.com 


 

On 10/10/2018, 12:48, "4d_tech-boun...@lists.4d.com on behalf of 
4d_tech-requ...@lists.4d.com" <4d_tech-boun...@lists.4d.com on behalf of 
4d_tech-requ...@lists.4d.com> wrote:

use

SET DATABASE PARAMETER([Booking];JSON use local time;0)  // scope current
prosess

before the json command.





**
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: SEND PACKET in a multi-process environment

2018-10-10 Thread Jeffrey Kain via 4D_Tech
My first step on Windows with filesystem issues is to try without any 
antivirus/antimalware turned on.  Can you whitelist the directories that you're 
logging to, or temporarily disable it altogether while you test?

If you're not running any such package, disregard this advice... :)


> On Oct 10, 2018, at 7:30 AM, David Garrard via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi all,
> 
> 
> 
> I'm encountering some -43 errors when using SEND PACKET from multiple
> processes.  Windows v16.
> 
> 
> 
> I've been logging to a single log file in the past and use semaphores to
> ensure I would not attempt to write to the an open file when another process
> is also logging.  This works as expected.
> 
> 
> 
> But I am also writing to various other files for logging and reporting
> reasons using these multiple processes and sometimes, when the processes are
> executing at the same time, I am getting -43 errors - even if they are
> different target files.  The SEND PACKET documentation does not specifically
> mention multi-process file writing at the same time is prohibited, so I am a
> bit surprised that I might have to add semaphores in this situation.
> 
> 
> 
> Have others experienced this?
> 
> 
> 
> Thank you
> 
> **
> 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: Blank server administration window v17

2018-10-10 Thread Jeffrey Kain via 4D_Tech
Haven't seen this one - we've been running v17 since July (but on Windows 
Server 2016).

32-bit server or 64-bit server? How much RAM does the server have and what are 
your cache settings?

> On Oct 10, 2018, at 7:48 AM, David Samson via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Having recently upgraded to v17 we have noticed that the administration
> window on the server gradually becomes unresponsive. This is all Windows
> and the server is Windows Server 2012 R2.

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

Blank server administration window v17

2018-10-10 Thread David Samson via 4D_Tech
Having recently upgraded to v17 we have noticed that the administration
window on the server gradually becomes unresponsive. This is all Windows
and the server is Windows Server 2012 R2.

Once the admin window becomes unresponsive it goes white and so do any
other screens on 4D server such as Quit etc. It appears to be related to
the load on the server since our development server does not have this
problem. The production server has plenty of RAM so that is not the issue.
I can view the window from a client machine and it is responsive.

This is not only a cosmetic issue since we have already had one IT
department genius shut down the 4D server because he thought it was not
running. 50 users were thrown out of 4D.

Anyone else seen this? Any ideas?

David Samson
Manchester
UK
**
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
**

SEND PACKET in a multi-process environment

2018-10-10 Thread David Garrard via 4D_Tech
Hi all,

 

I'm encountering some -43 errors when using SEND PACKET from multiple
processes.  Windows v16.

 

I've been logging to a single log file in the past and use semaphores to
ensure I would not attempt to write to the an open file when another process
is also logging.  This works as expected.

 

But I am also writing to various other files for logging and reporting
reasons using these multiple processes and sometimes, when the processes are
executing at the same time, I am getting -43 errors - even if they are
different target files.  The SEND PACKET documentation does not specifically
mention multi-process file writing at the same time is prohibited, so I am a
bit surprised that I might have to add semaphores in this situation.

 

Have others experienced this?

 

Thank you

**
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: Selection to JSON Date Conversion

2018-10-10 Thread Douglas Cryer via 4D_Tech
Miyako,

Based on your reply it looks like I have to accept that I will either have to 
write my own version of Selection to JSON or I will have to post parse the 
resulting dates to correct them at least while I am still on v15 4D.  I have 
already seen the impact of setting the "Dates inside objects" parameter in v17 
and know that solves the problem in the future.  I should have been more 
specific in my query to see if there was an easy fix in v15 and v16.

It is a shame that the person who wrote Selection to JSON did not put a little 
more thought into the data conversion issue.  It is a date only field after all 
there is no implication on time other than within the date.  Good to see this 
has been rectified in v17 but that does not help me...

Re: Patrick Emanuel - is that helpfull ?
No.

Regards,  Dougie


telekinetix Limited- J. Douglas Cryer
Phone : 01234 761759  Mobile : 07973 675 218
2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE
Email : jdcr...@telekinetix.com  Web : http://www.telekinetix.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: what to do when I don't want back button funtionality in a browser of pages from 4d

2018-10-10 Thread Epperlein, Lutz (agendo) via 4D_Tech
Hi,

at first it isn't possible to switch off the back button in a browser. But 
there are some hacks around using javascript to mimic the behavior, e.g. look 
at https://stackoverflow.com/q/12381563/1865659.
But all these techniques are not safe, I wouldn't recommend any of them. 

Better is to deal with the input of the user in 4D avoid saving the same data 
again or something like that. You can do some locking, but that's difficult 
with http because it is a stateless protocol, but you can work around it with 
the use of cookies. E.g. you can generate an unique cookie (with a UUID value 
e.g.) with the request of your page 1, afterwards only one save request with 
this cookie is accepted by 4D. 

This are my 2 cents ...

Regards
Lutz Epperlein



> -Original Message-
> From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of setar accnt 
> via
> 4D_Tech
> Subject: what to do when I don't want back button funtionality in a browser 
> of pages
> from 4d
> 
> Hi All,
> I am a fledgling developer trying to become more proficient in using 4D and 
> the web
> for in-house applications.
> 
> Sinds many years 4D is capable to send, to the Web browser, the HTML page of 
> the
> Web file stored in the document whose pathname is supplied.
> 
> Every page I send to the browser is cached (back), so if I send first :
> page 1, where user enters an account# or other unique identifier
>this info is send back to 4d, a query is made (if found)
> page 2, is shown with info to, possibly, change
>say the data is updated, the page info is send back to 4D, acknowledged
> page 3, is send stating successful acceptance of the data.   All 3 pages 
> designed with
> simple HTML and inline css.
> 
> If I have 15 such case one morning, I might have 15x 3 pages possibly in the 
> cache at
> that one station / smart device.
> Pressing the back-button I can go back and update the data once more and 
> again send
> the page to the 4d database,
> which is an absolute no-no.
> 
> Is there a technique or standard that is used with 4D environment that use a 
> different
> approach, besides elaborate javascripts that bent
> and force website behavior to behave, e.g. no back button which does work for 
> one
> browser and not another.
> 
> Any tips on this would be very welcome.
> 
> In my ignorance I am thinking like, put up 1 screen for input identifier
> same screen (with other html) put up the requested data
> at acknowledgement, redraw again screen 1 for input of identifier.
> 
> thus no back-button action possible (?), what’s wrong with this picture ?
**
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: what to do when I don't want back button funtionality in a browser of pages from 4d

2018-10-10 Thread Paul Dennis via 4D_Tech
This is a significant problem and not easily solved hence the use of a "back"
button on webpages. I use a combination of a tab object and buttons for form
filling in the browser. On each page the user can only proceed to the next
page or tab if they have filled in the mandatory information and the form is
validated. At this point I save the record to 4D. and so on through the form
filling process saving to update the record at each point. Despite this it
is still problematic if the user presses the back button.   

I would be interested to hear if anyone has a better solution.
Paul



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

Re: Selection to JSON Date Conversion

2018-10-10 Thread 4dialog via 4D_Tech
use

SET DATABASE PARAMETER([Booking];JSON use local time;0)  // scope current
prosess

before the json command.



-
Hilsen
--
Helge Antonsen
www.4dialog.no 
--
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
**