Re: Field Validation in Listboxes

2018-03-20 Thread Kirk Brooks via 4D_Tech
Jeff,

I think you want to use EDIT ITEM.

$objName:=OBJECT Get name(Object current)  //  will be the name of the
listbox object even if called from a column/array
$row:=listbox_get_rowcolumn ($objName;->$column;->$objPtr)  // method gets
the row and ptr to the column & column object

If(Not( code to test the input is ok))

EDIT ITEM($objPtr->;$row)

End if


This works in the listbox object or the array within the listbox.


On Tue, Mar 20, 2018 at 9:08 AM, Jeff Grann via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> What is the best practice for validating data entry in listbox fields
> (cells)?
>
> If the user enters an invalid value, I’d like to keep them in the field,
> but REJECT doesn’t seem to work in listbox cells.
>
> --
> Jeff Grann
> SuccessWare, Inc.
>
> **
> 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
> **




-- 
Kirk Brooks
San Francisco, CA
===

*We go vote - they go home*
**
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: Field Validation in Listboxes

2018-03-20 Thread Charles Miller via 4D_Tech
goto should work

Regards

Chuck

On Tue, Mar 20, 2018 at 12:08 PM, Jeff Grann via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> What is the best practice for validating data entry in listbox fields
> (cells)?
>
> If the user enters an invalid value, I’d like to keep them in the field,
> but REJECT doesn’t seem to work in listbox cells.
>
> --
> Jeff Grann
> SuccessWare, Inc.
>
> **
> 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
> **




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

Field Validation in Listboxes

2018-03-20 Thread Jeff Grann via 4D_Tech
What is the best practice for validating data entry in listbox fields (cells)?

If the user enters an invalid value, I’d like to keep them in the field, but 
REJECT doesn’t seem to work in listbox cells.

--
Jeff Grann
SuccessWare, Inc.

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

COllections

2018-03-20 Thread Chip Scheide via 4D_Tech
a record can store any native type of data supported by 4D, and a blob 
(also available as a record field) can store other types of data such 
as an array.

It seems to me (at this point), that a collection is just a record, 
perhaps it is more flexible, being definable on the fly, but still a 
record.

Any one who has more insight?

Chip

---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
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: overlapping subforms

2018-03-20 Thread Kirk Brooks via 4D_Tech
Piotr,
This sounds like a creative use of subforms. But it also sounds pretty
complex. So the first thought I offer is to look at what you are trying to
do and be sure using subforms in actually the best solution. It may be but
there may also be another approach that results in the same UI.

For example, you could use OBJECT SET SUBFORM
 to
and simply change the displayed subform as required instead of managing
multiple subform objects.

The version you are using also may matter. But to answer the question you
asked:

On Mon, Mar 19, 2018 at 1:40 AM, Piotr Chabot Stadhouders via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I have a form with a couple of subforms on it
> Now I want to add another subform, that is on top of 3 others, and becomes
> visible when pressing a button
>

​First I'm assuming all 3 of these subforms are on the parent form and not
nested (a subform on a subform) AND on the same form page. Also, are the
subform objects, the variables that contain the subforms, process variables
or form variables?

If the subform you are trying to display is on page 0 it would create this
issue. Either put all the subforms on page 0 or put a subform on each page
for this purpose. Remember you can use
​
​Are you using OBJECT DUPLICATE
 to
add subforms? If so remember to ​specify the "boundTo" object. This param
lets you manage the z order of the objects. If you don't use it the new
object is at the top of the stack. This could account for the issue.

The other possibility is the context. When you say "press a button" where
is that button? This is important.

If it is on the parent form you really shouldn't have a problem.

If it's on a subform you may be opening the popup subform within the
subform with the button because the button on the subform runs in the
context of the subform - not the parent form. This can be quite confusing.

Remember that the form events on a subform run BEFORE the parent form. So
an On clicked event from a button on a subform runs:
1) in the subform button

2) the subform form method

3) the subform container (which is the 'subform object' on the parent form)

4) the parent form method


You can see it as a kind of popup viewer
>
​The subform pops up - is it displaying fields from a record (which record)
or something like a list, variables etc?​



> Because the subform must show in front of the others, in design mode I put
> the subform container to the front
> However, when I save the form the subform container disappears to the back
> agai
> ​n
>
​What does "save the form" mean? Saving the parent form or the subform?

​

-- 
Kirk Brooks
San Francisco, CA
===

*We go vote - they go home*
**
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: 4D Summit

2018-03-20 Thread Balinder Walia via 4D_Tech
I did book it already!

Thanks / Bal.

On 20 March 2018 at 11:43, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> I believe I did, I'll check
> THanks
>
> > Hi,
> >
> > I’m sitting in in the master class by Laurent in Paris.
> >
> > Absolutely fantastic, if you haven’t booked for Washington yet you need
> to
> > break open the piggy bank now and book!
> >
> > Really good stuff.
> >
> > Wayne
> 
> 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: 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: 4D Summit

2018-03-20 Thread Chip Scheide via 4D_Tech
I believe I did, I'll check
THanks

> Hi,
> 
> I’m sitting in in the master class by Laurent in Paris.
> 
> Absolutely fantastic, if you haven’t booked for Washington yet you need to
> break open the piggy bank now and book!
> 
> Really good stuff.
> 
> Wayne

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

4D Summit

2018-03-20 Thread Wayne Stewart via 4D_Tech
Hi,

I’m sitting in in the master class by Laurent in Paris.

Absolutely fantastic, if you haven’t booked for Washington yet you need to
break open the piggy bank now and book!

Really good stuff.

Wayne
-- 

Regards,

Wayne


[image: --]
Wayne Stewart
[image: http://]about.me/waynestewart

**
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: overlapping subforms

2018-03-20 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

Yes, I am sure I set it to the front, but when I do a "Save Form" the subform 
goes to the back again
I also tried setting the other subforms to invisible, and making the 4th 
subform visible
This also doesn’t work always
Maybe this problem has to do with some other facts :
I use a webarea in the 4th subform, and I also resize the subform before making 
it visible

Does anybody know of redraw problems when using a webarea in a subform?

Gr,

Piotr

> -Oorspronkelijk bericht-
> Van: John Baughman 
> Verzonden: maandag 19 maart 2018 17:08
> Aan: 4D iNug Technical <4d_tech@lists.4d.com>
> Onderwerp: Re: overlapping subforms
> 
> If I understand you correctly, you have 3 subforms visible and want them to
> remain visible when you make a 4th subform visible on top of them? However,
> when you open the form and click the button to make it visible it appears
> behind the other 3 forms.
> 
> I just tested the above scenario and after in design mode I move the 4th
> subform to the front with Move To Front (control-F) then run it, the 4th 
> subform
> displays in front. If I move it to the back with Move To Back (control-B) in
> design mode, it properly opens behind the other subforms when run.
> 
> Are you sure that you in fact moved the 4th subform to the front while in 
> design
> mode?
> 
> John
> 
> 
> 
> > On Mar 19, 2018, at 3:02 AM, Randy Jaynes via 4D_Tech
> <4d_tech@lists.4d.com> wrote:
> >
> > I have a form with 3 subform container objects sitting on top of each 
> > other. I
> just use OBJECT SET VISIBLE to hide the ones that don’t need to be seen at the
> moment.
> >
> > They all occupy the same space on the parent form, so because I hide the 2
> not needed, the ordering on the form does not matter.
> >
> > I use a tab to control which one is visible at the moment. Your buttons 
> > could
> serve the same purpose.
> >
> > Randy
> >
> > --
> > Randy Jaynes
> > Senior Programmer and Customer Support
> >
> > http://printpoint.com  • 845.687.3741 •
> > PrintPoint, Inc • 57 Ludlow Lane • Palisades, NY 10964 Please send all
> > email contacts to supp...@printpoint.com
> > 
> >
> >
> >
> >
> >> On Mar 19, 2018, at 4:40 AM, Piotr Chabot Stadhouders via 4D_Tech
> <4d_tech@lists.4d.com > wrote:
> >>
> >> Hi,
> >>
> >> I have a form with a couple of subforms on it Now I want to add
> >> another subform, that is on top of 3 others, and becomes visible when
> >> pressing a button You can see it as a kind of popup viewer Because
> >> the subform must show in front of the others, in design mode I put
> >> the subform container to the front However, when I save the form the
> >> subform container disappears to the back again
> >>
> >> Are there known problems putting subforms on top of each other?
> >>
> >> Gr,
> >>
> >> Piotr
> >>
> >>
> 
> *
> >> *
> >> 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
> >
> 
> **
> 
> 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
**