Hi Kurt,
Sorry I didn't say anything sooner - another trick is to use a cursor containing a logical field. In the Grid, you add a checkbox (an additional control ) to the column assigned to the logical field. Then, the user can just click on the checkbox on the record they want.
You can also add buttons that check All or check None or Invert the selection - all sorts of nifty stuff.
Just a thought. | Brant Layton| |480.964.1316| On 2/9/2016 11:34 AM, profoxtech-request@leafe.com wrote:
RE: Multi-Select Grid & Foxite Code Issue (Was...RE: A Question of ListBoxes)
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
Brant - FYI - my solution was similar. I did cursors, added a Selected field. However, simply clicking on the Record in the Grid would set the Selected field to True. And, that's about it. Turned out to be Very simple to implement. And, in the Grid - I simply made that Selected field as Not visible.
Regards, Kurt Wendt Consultant
Tel. +1-212-747-9100 www.GlobeTax.com
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Brant E. Layton Sent: Tuesday, February 09, 2016 2:04 PM To: profoxtech@leafe.com Subject: RE: Multi-Select Grid & Foxite Code Issue (Was...RE: A Question of ListBoxes)
Hi Kurt,
Sorry I didn't say anything sooner - another trick is to use a cursor containing a logical field. In the Grid, you add a checkbox (an additional control ) to the column assigned to the logical field. Then, the user can just click on the checkbox on the record they want.
You can also add buttons that check All or check None or Invert the selection - all sorts of nifty stuff.
Just a thought. | Brant Layton| |480.964.1316| On 2/9/2016 11:34 AM, profoxtech-request@leafe.com wrote:
RE: Multi-Select Grid & Foxite Code Issue (Was...RE: A Question of ListBoxes)
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
[excessive quoting removed by server]
Have not iterated a vfp object in a decade but can't you go line by line in the object itself instead of mucking with fake data that needs an update from a few different possibilities? Isn't there a selected column in the control with a check all option?
On Tue, Feb 9, 2016 at 2:39 PM, Kurt Wendt Kurt_Wendt@globetax.com wrote:
Brant - FYI - my solution was similar. I did cursors, added a Selected field. However, simply clicking on the Record in the Grid would set the Selected field to True. And, that's about it. Turned out to be Very simple to implement. And, in the Grid - I simply made that Selected field as Not visible.
Regards, Kurt Wendt Consultant
Tel. +1-212-747-9100 www.GlobeTax.com
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Brant E. Layton Sent: Tuesday, February 09, 2016 2:04 PM To: profoxtech@leafe.com Subject: RE: Multi-Select Grid & Foxite Code Issue (Was...RE: A Question of ListBoxes)
Hi Kurt,
Sorry I didn't say anything sooner - another trick is to use a cursor containing a logical field. In the Grid, you add a checkbox (an additional control ) to the column assigned to the logical field. Then, the user can just click on the checkbox on the record they want.
You can also add buttons that check All or check None or Invert the selection - all sorts of nifty stuff.
Just a thought. | Brant Layton| |480.964.1316| On 2/9/2016 11:34 AM, profoxtech-request@leafe.com wrote:
RE: Multi-Select Grid & Foxite Code Issue (Was...RE: A Question of ListBoxes)
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]
Stephen Russell wrote on 2016-02-09:
Have not iterated a vfp object in a decade but can't you go line by line
in
the object itself instead of mucking with fake data that needs an update from a few different possibilities? Isn't there a selected column in the control with a check all option?
Stephen,
You're thinking of the Listbox control. Many users don't understand the Shift+Click concept to select many.
The Grid control doesn't have multi-select ability natively.
Tracy Pearson PowerChurch Software
On 2016-02-09 15:56, Tracy Pearson wrote:
Stephen Russell wrote on 2016-02-09:
Have not iterated a vfp object in a decade but can't you go line by line
in
the object itself instead of mucking with fake data that needs an update from a few different possibilities? Isn't there a selected column in the control with a check all option?
Tell us how to do it in DotNet, Steve. We all realize we might need to read a few pages of code for it. lol
Stephen,
You're thinking of the Listbox control. Many users don't understand the Shift+Click concept to select many.
The Grid control doesn't have multi-select ability natively.
...hence why the "Selected" checkbox column solution works well.
Agreed - Steve - do tell! My manager here - as well as the co. CTO - are both Very interested in having me move into the Dot Net realm. So - if you want to share code about implementing a Multi-Select Grid - that would be cool.
Regards, Kurt Wendt Consultant
Tel. +1-212-747-9100 www.GlobeTax.com
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of mbsoftwaresolutions@mbsoftwaresolutions.com Sent: Wednesday, February 10, 2016 1:33 AM To: profoxtech@leafe.com Subject: RE: Multi-Select Grid & Foxite Code Issue (Was...RE: A Question of ListBoxes)
On 2016-02-09 15:56, Tracy Pearson wrote:
Stephen Russell wrote on 2016-02-09:
Have not iterated a vfp object in a decade but can't you go line by line
in
the object itself instead of mucking with fake data that needs an update from a few different possibilities? Isn't there a selected column in the control with a check all option?
Tell us how to do it in DotNet, Steve. We all realize we might need to read a few pages of code for it. lol
Stephen,
You're thinking of the Listbox control. Many users don't understand the Shift+Click concept to select many.
The Grid control doesn't have multi-select ability natively.
...hence why the "Selected" checkbox column solution works well.
[excessive quoting removed by server]
Tracy is correct. I believe that's why originally this particular screen had been implemented with ListBox - in order to do the MultiSelects.
However, then the users of this app had issues with how the ListBox operated - and their request was essentially asking for a regular Grid - since the grid you can resize the columns - and you can click on Headers to do Resorts. So - that's why I was trying to implement a multiselect Grid.
Regards, Kurt Wendt Consultant
Tel. +1-212-747-9100 www.GlobeTax.com
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Tracy Pearson Sent: Tuesday, February 09, 2016 3:57 PM To: profoxtech@leafe.com Subject: RE: Multi-Select Grid & Foxite Code Issue (Was...RE: A Question of ListBoxes)
Stephen Russell wrote on 2016-02-09:
Have not iterated a vfp object in a decade but can't you go line by line
in
the object itself instead of mucking with fake data that needs an update from a few different possibilities? Isn't there a selected column in the control with a check all option?
Stephen,
You're thinking of the Listbox control. Many users don't understand the Shift+Click concept to select many.
The Grid control doesn't have multi-select ability natively.
Tracy Pearson PowerChurch Software
[excessive quoting removed by server]
On 2016-02-09 14:03, Brant E. Layton wrote:
Hi Kurt,
Sorry I didn't say anything sooner - another trick is to use a cursor containing a logical field. In the Grid, you add a checkbox (an additional control ) to the column assigned to the logical field. Then, the user can just click on the checkbox on the record they want.
You can also add buttons that check All or check None or Invert the selection - all sorts of nifty stuff.
Just a thought. | Brant Layton| |480.964.1316|
That's actually how I do it: use a checkbox column where the user selects what he wants to change/use/whatever and then the code further down does a SCAN FOR lSelected kind of loop.