Re: Simple Popup with multiple selection option?

2018-04-20 Thread John Baughman via 4D_Tech
What you want to do can be simple or it can be very complex.

The DisplayList plugin was what I used for many years for this until it became 
part of AreaList. So you could use AreaList.

For me I got Tony Ringsmuth’s DisplayList component...

http://www.bbros.com/DisplayList4D/DL4D_2004_Features.html 


This is a DisplayList plug-in replacement. It really works well and has a few 
nifty features that the plug-in did not have.

It is free to download the source, but if you like it and use it, Tony asks for 
a $99 donation. In my opinion, It is well worth the cost. I use it all the time.

John


> On Apr 20, 2018, at 10:02 AM, Alan Tilson via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hello,
> 
> Could someone please point me to a simple way to request information in the
> form of a list from which multiple selections may be made? I started to
> build a new request form  but it seems like this should almost be an
> automatic function!
> 
> Any ideas will be appreciated.
> 
> Thanks,
> Alan
> **
> 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: Simple Popup with multiple selection option?

2018-04-20 Thread Alan Tilson via 4D_Tech
Hey Chip,
Thanks for the tip and the code. I'll give it a shot!
Alan

On Fri, Apr 20, 2018 at 4:18 PM, Chip Scheide <4d_o...@pghrepository.org>
wrote:

> Dialog
>&
> (array) listbox
>
> - populate the listbox with the needed data
> - display using dialog
> on accept, process selected items
>
> selected items are TRUE for the list box row (see below code to count
> how many selected)
>
>   //(m) arylstbx_How_Many_Selected
>   // $1 - pointer - to listbox
>
>   //RETURNS - longint - number of rows selected in an array based
> listbox.  Returns 0 if none selected
>   // ∙ Created 9/6/12 by Chip -
> C_POINTER($1;$Listbox)
> C_LONGINT($0;$How_Many;$Last;$Loc)
>
> $Listbox:=$1
> $Last:=0
>
> Repeat   //check the array of booleans for selected row(s)
> $Loc:=Find in array($Listbox->;True;$Last)
>
> If ($Loc>0)  //something was found
> $How_Many:=$How_Many+1
> $Last:=$Loc+1
> End if
> Until ($Loc<0)
> $0:=$How_Many
>
> On Fri, 20 Apr 2018 16:02:04 -0400, Alan Tilson via 4D_Tech wrote:
> > Hello,
> >
> > Could someone please point me to a simple way to request information in
> the
> > form of a list from which multiple selections may be made? I started to
> > build a new request form  but it seems like this should almost be an
> > automatic function!
> >
> > Any ideas will be appreciated.
> >
> > Thanks,
> > Alan
> > **
> > 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
> > **
> ---
> 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: Simple Popup with multiple selection option?

2018-04-20 Thread Chip Scheide via 4D_Tech
Dialog
   &
(array) listbox

- populate the listbox with the needed data
- display using dialog
on accept, process selected items

selected items are TRUE for the list box row (see below code to count 
how many selected)

  //(m) arylstbx_How_Many_Selected
  // $1 - pointer - to listbox

  //RETURNS - longint - number of rows selected in an array based 
listbox.  Returns 0 if none selected
  // ∙ Created 9/6/12 by Chip - 
C_POINTER($1;$Listbox)
C_LONGINT($0;$How_Many;$Last;$Loc)

$Listbox:=$1
$Last:=0

Repeat   //check the array of booleans for selected row(s)
$Loc:=Find in array($Listbox->;True;$Last)

If ($Loc>0)  //something was found
$How_Many:=$How_Many+1
$Last:=$Loc+1
End if 
Until ($Loc<0)
$0:=$How_Many

On Fri, 20 Apr 2018 16:02:04 -0400, Alan Tilson via 4D_Tech wrote:
> Hello,
> 
> Could someone please point me to a simple way to request information in the
> form of a list from which multiple selections may be made? I started to
> build a new request form  but it seems like this should almost be an
> automatic function!
> 
> Any ideas will be appreciated.
> 
> Thanks,
> Alan
> **
> 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
> **
---
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
**

Simple Popup with multiple selection option?

2018-04-20 Thread Alan Tilson via 4D_Tech
Hello,

Could someone please point me to a simple way to request information in the
form of a list from which multiple selections may be made? I started to
build a new request form  but it seems like this should almost be an
automatic function!

Any ideas will be appreciated.

Thanks,
Alan
**
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
**