Data Grid

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
Quinton B.
Posts: 56
Joined: Mon Mar 20, 2017 5:13 am

Data Grid

Post by Quinton B. » Thu Jul 05, 2018 10:14 am

Hello, data grids are the thing that I struggle with the most.
I'm trying to create basically a contacts list.
I've seen the LiveCode post about this.
The main difference is that I will be porting in the data from an SQL database.
I get how to database portion of the code works.
What I don't get is how to display the data, and if so how do I go about displaying the data for each data entry in the SQL database.

mrcoollion
Posts: 343
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Re: Data Grid

Post by mrcoollion » Thu Jul 05, 2018 12:05 pm

You might want to read the following post .

viewtopic.php?t=20195

regards,

Paul

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 2786
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Re: Data Grid

Post by richmond62 » Thu Jul 05, 2018 8:11 pm

Oh, I'd just use a table field.

Klaus
Posts: 10472
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Data Grid

Post by Klaus » Thu Jul 05, 2018 8:36 pm

We know, Richmond, we know! 8)

mrcoollion
Posts: 343
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Re: Data Grid

Post by mrcoollion » Fri Jul 06, 2018 7:41 pm

I use a lot of DataGrid.
It is not a complex as it seems when you understand the way they are set up.
Keep on experimenting and you will get there. :wink:

MaxV
Posts: 1540
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Data Grid

Post by MaxV » Sat Jul 07, 2018 2:04 am

Well, if you read here, you'll see a lot of properties of datagrid: https://livecode.wikia.com/wiki/Datagrid_API
To query a database see: https://livecode.wikia.com/wiki/MySQL
The main datagrid properties for your goals are:
  • dgText
  • dgHeader
  • dgData
If the data is very simple, without return chars or TAB, you can just use the DgText.
Livecode Wiki: http://livecode.wikia.com
My blog: http://livecodeitalia.blogspot.it
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”