web area and memory use

2019-12-09 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

Windows 64 bit, 4D v17r5, Embedded rendering engine

We use 4D Web Area to show some HTML based reports
The reports are formatted by CSS and on some of the elements we enabled user 
interaction with Javascript
Sometimes there cab be quite an amount of HTML elements in the report, because 
of a lot of data

Anyway, when generating quite a large report with CSS and Javascript embedded, 
and show this in a web area, can someone tell me if there are some (memory) 
limits on this?
I am asking this because some of our users now and then, suddenly, get blank 
output while this shouldn’t be the case
Is there a way to see memory usage? Are there known memory leaks? I am touching 
in the dark with this, but my feeling is we are having a web area memory problem

I hop someone can help me,
Piotr

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

Constants in code.

2019-12-09 Thread Eric Naujock via 4D_Tech
Good morning,
This seem pretty rudimentary, but I don’t seem find anything in the 
docs for this. 

Can you define your own Constants? I would like to define constants in my 
database to cover various groups for permissions. But what I am finding in the 
docs for v17r6 says they are listed in the constants window. But there does not 
seem to be anything that tells you how to create your own. Obviously there must 
be a way to do so since there are constants for plugins. 
**
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
**

AW: Constants in code.

2019-12-09 Thread Epperlein, Lutz (agendo) via 4D_Tech
You have to use xliff and you can find an example here:
https://kb.4d.com/assetid=76583

Regards
Lutz

-Ursprüngliche Nachricht-
Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von Eric Naujock 
via 4D_Tech
Betreff: Constants in code.

Good morning,
This seem pretty rudimentary, but I don’t seem find anything in the 
docs for this. 

Can you define your own Constants? I would like to define constants in my 
database to cover various groups for permissions. But what I am finding in the 
docs for v17r6 says they are listed in the constants window. But there does not 
seem to be anything that tells you how to create your own. Obviously there must 
be a way to do so since there are constants for plugins. 
**
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: AW: Constants in code.

2019-12-09 Thread Chip Scheide via 4D_Tech
to expand
you can create 1 or more constants files in xlif format.
Inside each constants file you can create 'groups', logic assemblages 
of constants.
i.e. Web_Display, Interface_Colors, Listbox_Properties,  etc.
   
There is a tool in 4DPop (4Dpop constants editor) to help with this 
process.

The constant file(s) are then placed next to the structure in a folder 
titled "Constants". This folder may not already exist and you may have 
to create it. On a Mac you need to open the structure package (show 
package contents) to create/modify the Constants folder.

If you , or anyone else is interested, I have a version of 4DPop 
constants editor that I have modified to include the following 
enhancements (currently in v15 can/should be updatable to any newer 
version):
[send me an email making the request - and I'll send the modified 4DPop 
source code along.]

- open xlif files NOT in the current structure's path. i.e. open any 
xlif file, anywhere.
- drag n drop xlif files (as part of above).
- show all constants as a single list when there are groupings inside 
an xlif file, The constants are Not savable, including full sort order, 
in this 'mode'.
- able to re-load an xlif file, if modified by an outside program (i.e. 
text editor).
- sort (permanently if saved) not only the groupings, but the constants 
inside a group.
- add a comment to any constant.
- create and assign a UUID to each constant to avoid any issue with 
constant ID duplication.

there might be more that I do not remember off the top of my head.

Chip
On Mon, 9 Dec 2019 15:20:05 +, Epperlein, Lutz (agendo) via 4D_Tech 
wrote:
> You have to use xliff and you can find an example here:
> https://kb.4d.com/assetid=76583
> 
> Regards
> Lutz
> 
> -Ursprüngliche Nachricht-
> Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von 
> Eric Naujock via 4D_Tech
> Betreff: Constants in code.
> 
> Good morning,
>   This seem pretty rudimentary, but I don’t seem find anything in the 
> docs for this. 
> 
> Can you define your own Constants? I would like to define constants 
> in my database to cover various groups for permissions. But what I am 
> finding in the docs for v17r6 says they are listed in the constants 
> window. But there does not seem to be anything that tells you how to 
> create your own. Obviously there must be a way to do so since there 
> are constants for plugins. 
> **
> 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
> **
We have done so much, with so little, for so long;
We are now qualified to anything with nothing 
  - unknown
**
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: Constants in code.

2019-12-09 Thread Eric Naujock via 4D_Tech
Thanks. I would appreciate having the new 4D Pop. 

> On Dec 9, 2019, at 10:44 AM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> to expand
> you can create 1 or more constants files in xlif format.
> Inside each constants file you can create 'groups', logic assemblages 
> of constants.
> i.e. Web_Display, Interface_Colors, Listbox_Properties,  etc.
> 
> There is a tool in 4DPop (4Dpop constants editor) to help with this 
> process.
> 
> The constant file(s) are then placed next to the structure in a folder 
> titled "Constants". This folder may not already exist and you may have 
> to create it. On a Mac you need to open the structure package (show 
> package contents) to create/modify the Constants folder.
> 
> If you , or anyone else is interested, I have a version of 4DPop 
> constants editor that I have modified to include the following 
> enhancements (currently in v15 can/should be updatable to any newer 
> version):
> [send me an email making the request - and I'll send the modified 4DPop 
> source code along.]
> 
> - open xlif files NOT in the current structure's path. i.e. open any 
> xlif file, anywhere.
> - drag n drop xlif files (as part of above).
> - show all constants as a single list when there are groupings inside 
> an xlif file, The constants are Not savable, including full sort order, 
> in this 'mode'.
> - able to re-load an xlif file, if modified by an outside program (i.e. 
> text editor).
> - sort (permanently if saved) not only the groupings, but the constants 
> inside a group.
> - add a comment to any constant.
> - create and assign a UUID to each constant to avoid any issue with 
> constant ID duplication.
> 
> there might be more that I do not remember off the top of my head.
> 
> Chip
> On Mon, 9 Dec 2019 15:20:05 +, Epperlein, Lutz (agendo) via 4D_Tech 
> wrote:
>> You have to use xliff and you can find an example here:
>> https://kb.4d.com/assetid=76583
>> 
>> Regards
>> Lutz
>> 
>> -Ursprüngliche Nachricht-
>> Von: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] Im Auftrag von 
>> Eric Naujock via 4D_Tech
>> Betreff: Constants in code.
>> 
>> Good morning,
>>  This seem pretty rudimentary, but I don’t seem find anything in the 
>> docs for this. 
>> 
>> Can you define your own Constants? I would like to define constants 
>> in my database to cover various groups for permissions. But what I am 
>> finding in the docs for v17r6 says they are listed in the constants 
>> window. But there does not seem to be anything that tells you how to 
>> create your own. Obviously there must be a way to do so since there 
>> are constants for plugins. 
>> **
>> 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
>> **
> We have done so much, with so little, for so long;
> We are now qualified to anything with nothing 
>  - unknown
> **
> 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: Constants in code.

2019-12-09 Thread Cannon Smith via 4D_Tech
Hi Eric,

There is also a way to create constants in your code if you want. There is a 
tech note about it here:



HTH.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Aetna, AB Canada




> On Dec 9, 2019, at 8:09 AM, Eric Naujock via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Can you define your own Constants? I would like to define constants in my 
> database to cover various groups for permissions. But what I am finding in 
> the docs for v17r6 says they are listed in the constants window. But there 
> does not seem to be anything that tells you how to create your own. Obviously 
> there must be a way to do so since there are constants for plugins. 

**
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: Constants in code.

2019-12-09 Thread Eric Naujock via 4D_Tech
Thanks I downloaded the document. Reading into it. Hopefully it still works for 
the new 4D Projects system. I am looking forward to being able to use GIT to 
manage my 4D projects. Versioning.

> On Dec 9, 2019, at 11:40 AM, Cannon Smith  
> wrote:
> 
> Hi Eric,
> 
> There is also a way to create constants in your code if you want. There is a 
> tech note about it here:
> 
>   
> 
> HTH.
> 
> —
> Cannon.Smith
> Synergy Farm Solutions Inc.
> Aetna, AB Canada
> 
> 
> 
> 
>> On Dec 9, 2019, at 8:09 AM, Eric Naujock via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>> Can you define your own Constants? I would like to define constants in my 
>> database to cover various groups for permissions. But what I am finding in 
>> the docs for v17r6 says they are listed in the constants window. But there 
>> does not seem to be anything that tells you how to create your own. 
>> Obviously there must be a way to do so since there are constants for 
>> plugins. 
> 

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

Test Post

2019-12-09 Thread Ken Eyring via 4D_Tech

My posts don't seem to be posted to the list.


**
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: Test Post

2019-12-09 Thread Kenneth Geiger via 4D_Tech
This one posted.

> On Dec 9, 2019, at 12:26 PM, Ken Eyring via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> My posts don't seem to be posted to the list.
> 
> 
> **
> 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: Constants in code.

2019-12-09 Thread Kirk Brooks via 4D_Tech
Eric,
I'll add a vote for Cannon's code for creating constant XLIF files. I
really like being able to add comments to what the constants are for in the
code. You just can't do that with the 4DPOP component.

On Mon, Dec 9, 2019 at 9:55 AM Eric Naujock via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Thanks I downloaded the document. Reading into it. Hopefully it still
> works for the new 4D Projects system. I am looking forward to being able to
> use GIT to manage my 4D projects. Versioning.
>
> > On Dec 9, 2019, at 11:40 AM, Cannon Smith <
> can...@synergyfarmsolutions.com> wrote:
> >
> > Hi Eric,
> >
> > There is also a way to create constants in your code if you want. There
> is a tech note about it here:
> >
> >   
> >
> > HTH.
> >
> > —
> > Cannon.Smith
> > Synergy Farm Solutions Inc.
> > Aetna, AB Canada
> > 
> > 
> >
> >
> >> On Dec 9, 2019, at 8:09 AM, Eric Naujock via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >>
> >> Can you define your own Constants? I would like to define constants in
> my database to cover various groups for permissions. But what I am finding
> in the docs for v17r6 says they are listed in the constants window. But
> there does not seem to be anything that tells you how to create your own.
> Obviously there must be a way to do so since there are constants for
> plugins.
> >
>
> **
> 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
> **



-- 
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

*Wittgenstein and the Computer *
**
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: Constants in code.

2019-12-09 Thread Eric Naujock via 4D_Tech
I have downloaded it and played with it a bit. It looks interesting. I think I 
may add the constants_rebuildall to my post backup script. This way I can be 
sure my constants are always deployed, At least after a backup. Since the 
script takes almost no time but the time gains with the constants are enormous.

When the backup is run most users should not be logged in anyways.

> On Dec 9, 2019, at 4:40 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Eric,
> I'll add a vote for Cannon's code for creating constant XLIF files. I
> really like being able to add comments to what the constants are for in the
> code. You just can't do that with the 4DPOP component.
> 
> On Mon, Dec 9, 2019 at 9:55 AM Eric Naujock via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> Thanks I downloaded the document. Reading into it. Hopefully it still
>> works for the new 4D Projects system. I am looking forward to being able to
>> use GIT to manage my 4D projects. Versioning.
>> 
>>> On Dec 9, 2019, at 11:40 AM, Cannon Smith <
>> can...@synergyfarmsolutions.com> wrote:
>>> 
>>> Hi Eric,
>>> 
>>> There is also a way to create constants in your code if you want. There
>> is a tech note about it here:
>>> 
>>>  
>>> 
>>> HTH.
>>> 
>>> —
>>> Cannon.Smith
>>> Synergy Farm Solutions Inc.
>>> Aetna, AB Canada
>>> 
>>> 
>>> 
>>> 
 On Dec 9, 2019, at 8:09 AM, Eric Naujock via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
 
 Can you define your own Constants? I would like to define constants in
>> my database to cover various groups for permissions. But what I am finding
>> in the docs for v17r6 says they are listed in the constants window. But
>> there does not seem to be anything that tells you how to create your own.
>> Obviously there must be a way to do so since there are constants for
>> plugins.
>>> 
>> 
>> **
>> 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
>> **
> 
> 
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> ===
> 
> What can be said, can be said clearly,
> and what you can’t say, you should shut up about
> 
> *Wittgenstein and the Computer *
> **
> 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
**

The future of output forms

2019-12-09 Thread Two Way Communications via 4D_Tech
Hi Guys,

Like many of you, I have stopped using output forms to display selections of 
records, using listboxes  in stead.

But lately, I have started to use them again. 

Why, you might ask.

Well, quite a number of customers are using laptop/tablet devices. More often 
than not, they will use the touch screen in stead of the mouse.
In this case, the standard height of the listbox rows is to small to 
comfortable select, or double-tab, a single  row.
Another example is on the work floor: touch screen are used to process there 
actions.

I could double or triple the row height, but still, I will not be able to 
design the output like I would design an output form, especially if I also want 
some graphics in it.

The possibilities with output forms are far more flexible. I can put whatever I 
like in the form.

But this brings me to this question: Will output forms keep being supported by 
4D?

What if I switch to ORDA? From what I see, output forms will not work with 
ORDA. (Anybody from 4D: what is 4D’s view on this?)

What is this community’s preference?


Regards,

Rudy Mortier
Two Way Communications
**
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
**

Structure and Verification issue

2019-12-09 Thread Mitchell Shiller via 4D_Tech
Hi,

Went to verify my structure today after a week of coding. I noticed no 
anomalies or issue with the db but I like to make sure all is OK.

Verification reports that anomalies are found. But when I check the log, none 
are highlighted.
I ran a repair 2X. A compact. 
But verification still reports anomalies.

Looking through the structure, the Trash has been emptied and there are no 
orphan methods or forms that I can see.

Help!
Any ideas?

Is this an issue for Tech Support.

Thanks

Mitch
**
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: The future of output forms

2019-12-09 Thread John DeSoi via 4D_Tech


> On Dec 9, 2019, at 4:34 PM, Two Way Communications via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> But this brings me to this question: Will output forms keep being supported 
> by 4D?

I doubt they will be depreciated. The same implementation model is used for 
print forms, and it would not make sense to break something that big with 
nothing to replace it.

> 
> What if I switch to ORDA? From what I see, output forms will not work with 
> ORDA. (Anybody from 4D: what is 4D’s view on this?)

With some work, you could make output forms work with ORDA. Just create a 
single field table and generate a selection the same size as your ORDA entity 
selection. You can then use Selected record number (or Displayed line number) 
to load entities.

John DeSoi, Ph.D.

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Constants in code.

2019-12-09 Thread Chip Scheide via 4D_Tech
Kirk,
yes you can  :)

As I said in my post - I modified 4DPop constant editor do just that (among 
other things)

Chip
 

> I'll add a vote for Cannon's code for creating constant XLIF files. I
> really like being able to add comments to what the constants are for in the
> code. You just can't do that with the 4DPOP component.

Hell is other people 
 Jean-Paul Sartre
**
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
**