Re: Splitter help

2018-03-16 Thread Douglas von Roeder via 4D_Tech
John:

I've got something similar set up. The splitter needs to be wider than the
grids (I'm using ALP), both grids are set to grow horizontally and
vertically, and the splitter is not a pusher.

--
Douglas von Roeder
949-336-2902

On Fri, Mar 16, 2018 at 4:39 PM, John Baughman via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Never spitters working the first time. v16 R5 on a Mac.
>
> I have 2 list boxes, 1 above the other. with a spitter in between.
>
>What I need…
>
> When I move the spitter, both list boxes grow. If I move it down,
> the upper grows and the lower shrinks and vice versa.
>
> I have both list boxes set to Grow and the spitter set as a pusher. The
> upper list box grows, but the lower list box moves and stops everything as
> soon as it hits the bottom of the window. I have tried all combinations and
> cannot get it to work.
>
> If I add another spitter just below the first, the bottom list box gets
> pushed off the window. I can live with this, but…
>
> Any help appreciated.
>
> John
>
>
> John
> 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: https://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: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Splitter help

2018-03-16 Thread John Baughman via 4D_Tech
Never spitters working the first time. v16 R5 on a Mac.

I have 2 list boxes, 1 above the other. with a spitter in between. 

   What I need…

When I move the spitter, both list boxes grow. If I move it down, the 
upper grows and the lower shrinks and vice versa.

I have both list boxes set to Grow and the spitter set as a pusher. The upper 
list box grows, but the lower list box moves and stops everything as soon as it 
hits the bottom of the window. I have tried all combinations and cannot get it 
to work.

If I add another spitter just below the first, the bottom list box gets pushed 
off the window. I can live with this, but…

Any help appreciated.

John


John
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: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Using a Web Area as a Data Entry Area

2018-03-16 Thread Bob Miller via 4D_Tech
Hi Everyone,

I have a task that might be a good application for a 4D web area.  This 
would be my first use of this feature; normally I'd use Arealist or a 
Listbox to do this, but in this case the number of variables is high 
enough that a new approach might be warranted.

The problem: we have a number of workcenters that each have different data 
collection requirements when a product is made at that workcenter.  I have 
a table for each workcenter that includes data on what each data element 
is; the user can set up a workcenter and specify how many data elements 
are to be collected, what the name of each data element is, and what the 
data type (alpha or real) of each data element is.

The problem is creating a data entry area.  The area is supposed to look 
like a spreadsheet so that a user can enter multiple data points on a 
single screen and then click one button that behind the scenes will update 
multiple records.

I've created a simplistic screen shot at:
https://s13.postimg.org/hmj5o10fr/Web_Area_Mockup.jpg

Basically, the program flow for the data entry portion is:

> User selects the workcenter for which he needs to enter data

> The web form design is programmatically pulled together with the data 
from the workcenter setup file - this includes data about the type of 
data, the amount of data to be displayed, the enterability rules, etc. - 
and it pulls in the privileges of the user.  The form is then set up with 
the correct number of rows and columns, the data is put into the proper 
cells, and the enterability rules are applied.

> The user either enters new data or overtypes existing data as required
> The user submits the data (is this a 'Submit' button in the web area or 
a button on the form?)

> The program checks which data elements have been changed and updates the 
database accordingly

So my questions are:
> What are best practices for setting up an enterable HTML table that will 
be displayed in a web area? 

> Is there any callback possible when the user enters data in a cell in an 
HTML table in a web area?

> How does one pull the data from the form out of the web area so it can 
be used to update the database?

If anyone has any coaching tips or - this would be wonderful - an example 
I could poke at - I would be deeply grateful.  Beers on me at the Summit, 
for sure.

Thank you,


Bob Miller
Chomerics, a division of Parker Hannifin Corporation


ll
"PLEASE NOTE: The preceding information may be confidential or privileged. It 
only should be used or disseminated for the purpose of conducting business with 
Parker. If you are not an intended recipient, please notify the sender by 
replying to this message and then delete the information from your system. 
Thank you for your cooperation."
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
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: Collections

2018-03-16 Thread Arnaud de Montard via 4D_Tech

> Le 16 mars 2018 à 14:11, Epperlein, Lutz (agendo) via 4D_Tech 
> <4d_tech@lists.4d.com> a écrit :
> 
> For another reason using collections see this feature request: 
> http://forums.4d.com/Post/DE/19953344/1/19953345#19954007

see also:



-- 
Arnaud de Montard 



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
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: Collections

2018-03-16 Thread Epperlein, Lutz (agendo) via 4D_Tech
For another reason using collections see this feature request: 
http://forums.4d.com/Post/DE/19953344/1/19953345#19954007

Regards
Lutz Epperlein

Von: 4D_Tech [4d_tech-boun...@lists.4d.com] im Auftrag von Jim Dorrance via 
4D_Tech [4d_tech@lists.4d.com]
Gesendet: Freitag, 16. März 2018 13:44
An: 4D iNug Technical
Cc: Jim Dorrance
Betreff: Re: Collections

Clearly explained. Thank you.

On Fri, Mar 16, 2018 at 1:23 PM, Jeff Grann via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Haven’t worked with them yet, but my understanding is that a collection is
> an ordered list of values of possibly varying types.  In 4D arrays, all of
> the values must be the same type.  In a 4D collection, you can use mixed
> types as the elements.
>
> Example:
>
> $MyCollection[0]:=“Hello”
> $MyCollection[1]:=5
> $MyCollection[2]:=$AnObject
> $MyCollection[3]:=$AnArray
> $MyCollection[4]:=True
>
> --
> Jeff Grann
> SuccessWare, Inc.
>
> > On Mar 15, 2018, at 10:43 PM, Keith Goebel via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > Hi all.
> > 4D seem to be really fired up about the new Collection object available
> in upcoming versions.
> > I’ve read the examples given in the blurb, but I have yet to read
> anything that would give me an idea as to why I would want to use a
> Collection instead of an Object.
> > It seems as though Collections are objects that don’t need a name
> parameter to identify the content; but if I have to name a Collection,
> what’s the difference between that and an Object item?
> >
> > There must be a very good reason for them, and I am sure I’m missing the
> point, but what is it?...
> > Cheers, Keith
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



--
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
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)
FAQ:  http://lists.4d.com/faqnug.html
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: Collections

2018-03-16 Thread Jim Dorrance via 4D_Tech
Clearly explained. Thank you.

On Fri, Mar 16, 2018 at 1:23 PM, Jeff Grann via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Haven’t worked with them yet, but my understanding is that a collection is
> an ordered list of values of possibly varying types.  In 4D arrays, all of
> the values must be the same type.  In a 4D collection, you can use mixed
> types as the elements.
>
> Example:
>
> $MyCollection[0]:=“Hello”
> $MyCollection[1]:=5
> $MyCollection[2]:=$AnObject
> $MyCollection[3]:=$AnArray
> $MyCollection[4]:=True
>
> --
> Jeff Grann
> SuccessWare, Inc.
>
> > On Mar 15, 2018, at 10:43 PM, Keith Goebel via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > Hi all.
> > 4D seem to be really fired up about the new Collection object available
> in upcoming versions.
> > I’ve read the examples given in the blurb, but I have yet to read
> anything that would give me an idea as to why I would want to use a
> Collection instead of an Object.
> > It seems as though Collections are objects that don’t need a name
> parameter to identify the content; but if I have to name a Collection,
> what’s the difference between that and an Object item?
> >
> > There must be a very good reason for them, and I am sure I’m missing the
> point, but what is it?...
> > Cheers, Keith
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



-- 
Jim Dorrance
jim.dorra...@gmail.com
4...@dorrance.eu
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
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: Collections

2018-03-16 Thread Jeff Grann via 4D_Tech
Haven’t worked with them yet, but my understanding is that a collection is an 
ordered list of values of possibly varying types.  In 4D arrays, all of the 
values must be the same type.  In a 4D collection, you can use mixed types as 
the elements.

Example:

$MyCollection[0]:=“Hello”
$MyCollection[1]:=5
$MyCollection[2]:=$AnObject
$MyCollection[3]:=$AnArray
$MyCollection[4]:=True

--
Jeff Grann
SuccessWare, Inc.

> On Mar 15, 2018, at 10:43 PM, Keith Goebel via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi all.
> 4D seem to be really fired up about the new Collection object available in 
> upcoming versions.
> I’ve read the examples given in the blurb, but I have yet to read anything 
> that would give me an idea as to why I would want to use a Collection instead 
> of an Object.
> It seems as though Collections are objects that don’t need a name parameter 
> to identify the content; but if I have to name a Collection, what’s the 
> difference between that and an Object item?
> 
> There must be a very good reason for them, and I am sure I’m missing the 
> point, but what is it?...
> Cheers, Keith

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
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: Collections

2018-03-16 Thread Olivier Deschanels via 4D_Tech
Hello,

Objects and Collections are really different.

A collection is not an object.

During the post-class of the next 4D Summit, for my side in French, or for the 
JPR side in English, we have the same slide with this sentence in red, bold, 80 
points 
Regards,

Olivier




> Le 16 mars 2018 à 03:43, Keith Goebel via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
>
> Hi all.
> 4D seem to be really fired up about the new Collection object available in 
> upcoming versions.
> I’ve read the examples given in the blurb, but I have yet to read anything 
> that would give me an idea as to why I would want to use a Collection instead 
> of an Object.
> It seems as though Collections are objects that don’t need a name parameter 
> to identify the content; but if I have to name a Collection, what’s the 
> difference between that and an Object item?
>
> There must be a very good reason for them, and I am sure I’m missing the 
> point, but what is it?...
> Cheers, Keith
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> 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)
FAQ:  http://lists.4d.com/faqnug.html
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: Collections

2018-03-16 Thread Arnaud de Montard via 4D_Tech

> Le 16 mars 2018 à 03:43, Keith Goebel via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> Hi all.
> 4D seem to be really fired up about the new Collection object available in 
> upcoming versions.
> I’ve read the examples given in the blurb, but I have yet to read anything 
> that would give me an idea as to why I would want to use a Collection instead 
> of an Object.
> It seems as though Collections are objects that don’t need a name parameter 
> to identify the content; but if I have to name a Collection, what’s the 
> difference between that and an Object item?

I think i you use arrays you already use collections… I had from older versions 
object constructed with OB set array. To read the object after I used:
  case of
:(is object)
:(is array object)
  end case
Since v16r5 the second test din't work no more and I had to replace: "is 
collection". So in my understanding an object array was just a collection of 
same things. 

From here:

"Collection variables store JSON arrays."


-- 
Arnaud 



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