Data records - sample stack

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: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
golive
Posts: 98
Joined: Wed Jul 01, 2015 5:16 am

Data records - sample stack

Post by golive » Wed Aug 26, 2015 5:48 am

Does anyone have a sample stack that displays data records on screen, with the ability to go Next, Previous, etc thru the records?

It would be very helpful to see sample code to help me get started.

If it uses arrays to show and update the data, even better.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Data records - sample stack

Post by dunbarx » Wed Aug 26, 2015 6:12 pm

Hi.

"Data Records" are traditionally rows in a spreadsheet-like array, delimited with returns (tab-delimited-field, return-delimited-record).

But when you say "data records", do you envision a succession of cards, each with its own data, however that is displayed? Or do you mean some sort of list field or dataGrid, similar to a spreadsheet?

Craig Newman

golive
Posts: 98
Joined: Wed Jul 01, 2015 5:16 am

Re: Data records - sample stack

Post by golive » Thu Aug 27, 2015 2:20 am

dunbarx wrote:Hi.

"Data Records" are traditionally rows in a spreadsheet-like array, delimited with returns (tab-delimited-field, return-delimited-record).

But when you say "data records", do you envision a succession of cards, each with its own data, however that is displayed? Or do you mean some sort of list field or dataGrid, similar to a spreadsheet?

Craig Newman
I want to start using a database, say SQLite or PostgreSQL or whatever.

It will have a table with lots of records (say customer details). It will display one record on a card.
Navigation buttons on the card will be the usual e.g. Next,Previous / First, Last / Find.
I want to see how to use buttons to navigate thru the records and show the data of another record.
So if the user clicks Next, the next person's details display on the card.

When the user finds a customer, say Sarah Williams, he can click on an Order details button and see the customer order details (another table), possibly in a grid.

I am looking for a sample stack that shows how to get started i.e. display and update data from a table.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Data records - sample stack

Post by Dixie » Thu Aug 27, 2015 2:33 am

Look at this stack... it will get you started on your journey...
http://livecodeshare.runrev.com/stack/6 ... te-Sampler
http://lessons.runrev.com/s/lessons/m/4 ... e-database

at the same time read the 'revOpenDatabase' entry in the dictionary, as things have changed a little since this stack was written.

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Data records - sample stack

Post by MaxV » Mon Aug 31, 2015 11:51 am

Last edited by MaxV on Tue Sep 01, 2015 8:45 am, edited 1 time in total.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

golive
Posts: 98
Joined: Wed Jul 01, 2015 5:16 am

Re: Data records - sample stack

Post by golive » Tue Sep 01, 2015 1:35 am

Thanks for all the suggestions. I am busy going thru them all.

If anyone has a stack with a Next/Previous button to display SQLite data records, please come forward :)

Post Reply