Adding a 2nd datagrid to a stack
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
- Location: London, UK
Adding a 2nd datagrid to a stack
Looking for some advice on this topic. First, is it possible to have 2 data grids in a stack, and 2nd, even if possible, is it advisable? Are there any known issues with doing this?
PS the 2nd datagrid is probably not "functionally" necessary as a DG, but I was hoping to maintain a particular UE throughout the app and having 2, one for primary data collection, and the second for a simpler task of selecting categories, seemed the best approach.
Thanks
Mark
PS the 2nd datagrid is probably not "functionally" necessary as a DG, but I was hoping to maintain a particular UE throughout the app and having 2, one for primary data collection, and the second for a simpler task of selecting categories, seemed the best approach.
Thanks
Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
Re: Adding a 2nd datagrid to a stack
Hi Mark,
Yes.
No.
Since every datagrid has its own "Data Grid Template 1234556778899" substack, there will be no problems.
Use as many DGs as you need to, no known issues so far.
Best
Klaus
Yes.marksmithhfx wrote: ↑Wed Sep 30, 2020 6:19 pmFirst, is it possible to have 2 data grids in a stack, and 2nd, even if possible, is it advisable? Are there any known issues with doing this?
Yes.
No.
Since every datagrid has its own "Data Grid Template 1234556778899" substack, there will be no problems.
Use as many DGs as you need to, no known issues so far.
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 9660
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Adding a 2nd datagrid to a stack
Hi.
What Klaus said.
A dataGrid is just a complex LC "object", a grouped bunch of controls with behaviors and other functionality resident. It is lovely and very powerful. And complex.
So it is nothing particularly special in the sense you implied, as if it was something apart from LC per se, like an external DB for example.
Craig
What Klaus said.
A dataGrid is just a complex LC "object", a grouped bunch of controls with behaviors and other functionality resident. It is lovely and very powerful. And complex.
So it is nothing particularly special in the sense you implied, as if it was something apart from LC per se, like an external DB for example.
Craig
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
- Location: London, UK
Re: Adding a 2nd datagrid to a stack
Hi,
Thanks Klaus and Craig. Very reassuring. My concern initially arose when I went to add a second datagrid to my project. The first time I just dragged it from the tools palette. This time, no matter how "hard" I tried to drag it from the tools palette, all I got was a funny looking <> arrow thing (as a cursor) and no DG. That had me puzzled. How was I supposed to implement a 2nd one? Eventually, and quite accidentally, I discovered that if I used a 2-finger swipe to drag the DG from the tools palette, I was successful. So, the fact there was a mysterious process to getting a 2nd DG made me question whether this was an advisable course of action. Happy to say it is working fine, and fits the bill for "fitting in" with the rest of the app design.
Cheers,
Mark
Last edited by marksmithhfx on Sun Oct 04, 2020 3:24 pm, edited 1 time in total.
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
Re: Adding a 2nd datagrid to a stack
You can also doubleclick an object in the TOOLS palette!
-
- Posts: 720
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
Re: Adding a 2nd datagrid to a stack
I also have had the problem that I could not add a new Datagrid on a card where already a Datagrid existed (Windows 10 ). However in LC 9.6.1. I cannot reproduce it.
Workaround for me is:
In the Menu : Object > New Control > DataGrid.
Regards,
Paul
Workaround for me is:
In the Menu : Object > New Control > DataGrid.
Regards,
Paul
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
- Location: London, UK
Re: Adding a 2nd datagrid to a stack
Ahhhh, did not know that. Thanks!
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
-
- VIP Livecode Opensource Backer
- Posts: 9660
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Adding a 2nd datagrid to a stack
I can drag or double-click as many DG's as I like. I am on a Mac, of course.I also have had the problem that I could not add a new Datagrid on a card where already a Datagrid existed
Is this possibly a Windows thing? Anyone else see this? If so, it needs to go to the team right away.
Craig
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
- Location: London, UK
Re: Adding a 2nd datagrid to a stack
I'll do some more testing tomorrow and report it if I still have problems. This was on a Mac, and was not even on the same card as the previous control. It was a brand new blank card in the stack. I was able to drag any of the controls off the tools palette to the card, just not a DG.
Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
-
- VIP Livecode Opensource Backer
- Posts: 261
- Joined: Sat Aug 16, 2008 9:48 am
- Location: Stockholm, Sweden
- Contact:
Re: Adding a 2nd datagrid to a stack
I've also experienced exactly this problem on Mac. But it must have been pre 9.6.1, because now I get no such problem (at least when just creating a new stack and dragging DGs onto it).marksmithhfx wrote: ↑Sun Oct 04, 2020 10:55 pmI'll do some more testing tomorrow and report it if I still have problems. This was on a Mac, and was not even on the same card as the previous control. It was a brand new blank card in the stack. I was able to drag any of the controls off the tools palette to the card, just not a DG.
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
- Location: London, UK
Re: Adding a 2nd datagrid to a stack
Apologies for the delay getting back. So I tested this out in 2 different stacks, one of which was the same one I had the problem in before, and I could not reproduce the problem. Gremlins in the system I suppose. Anyway, this does not appear to be a major recurring problem.
Mark
Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS