List vs Table Field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
List vs Table Field
What are the differences between a list field and a table field? I see from the very brief description in the user guide that users can't edit data in a list field but can in a table field. Anything else? The properties look the same.
Pete
Pete
List vs Table Field
Hi Pete,
Great question. The two differences I have noticed are:
1) They have different default property settings (i.e. grid lines).
2) List fields are easier to deal with than table fields.
An honorable mention in this discussion should be Data Grids that was released as a major feature of 3.5.
Ed
Great question. The two differences I have noticed are:
1) They have different default property settings (i.e. grid lines).
2) List fields are easier to deal with than table fields.
An honorable mention in this discussion should be Data Grids that was released as a major feature of 3.5.
Ed
-
- VIP Livecode Opensource Backer
- Posts: 1005
- Joined: Sat Apr 08, 2006 3:06 pm
- Contact:
Creating a data grid table that mimics a Revolution field with tabstops set is pretty straightforward and doesn't require any additional work. Take a look at this lesson.
How Do I Create My First Data Grid Table?
When it comes to customizing data grid tables and forms it is more complicated than basic manipulation of the htmlText of a table field. The added benefit is that you can do so much more than you can with the htmlText of a table field.
You need to be familiar with groups, behaviors and (sometimes) arrays. Knowledge of all 3 will help you in all aspects of your Revolution development however and the manual covers a lot of common questions and shows how to implement a number of things. If you have been shying away because it looks too complicated but have yet to give it a try I would recommend jumping in and trying to create a simple little data grid. If there is a question you have that you don't find in the manual then just ask and someone can point you in the right direction.
Revolution Data Grid
Data Grid Tips & Tricks
Data Grid Tutorials
How Do I Create My First Data Grid Table?
When it comes to customizing data grid tables and forms it is more complicated than basic manipulation of the htmlText of a table field. The added benefit is that you can do so much more than you can with the htmlText of a table field.
You need to be familiar with groups, behaviors and (sometimes) arrays. Knowledge of all 3 will help you in all aspects of your Revolution development however and the manual covers a lot of common questions and shows how to implement a number of things. If you have been shying away because it looks too complicated but have yet to give it a try I would recommend jumping in and trying to create a simple little data grid. If there is a question you have that you don't find in the manual then just ask and someone can point you in the right direction.
Revolution Data Grid
Data Grid Tips & Tricks
Data Grid Tutorials
Trevor DeVore
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
Thanks Trevor. I looked at the whole data grid thing again yesterday and realised that, as you say, creating one to mimic a simple table but with more flexibility) is not very difficult, it's only when you get to more complicated structures that it seems confusing so I'm already trying out the data grid idea.
I'm already using groups and arrays although haven't got into behaviours yet.
Pete
I'm already using groups and arrays although haven't got into behaviours yet.
Pete
Doing nicely with my Data Grid, populating it just fine form my SQLite db. BUT I cannot for the life of me get information out of the grid.
There are three columns in the grid and I'm trying to get at the value of the currently selected line with the following code:
The usual answer statements show that tlinenum has the correct line number in it but that dgDataOfLine9tlinenum] is empty.
Any ideas?
Pete
There are three columns in the grid and I'm trying to get at the value of the currently selected line with the following code:
Code: Select all
put the dgHilitedLines of group "ProductList" into tlineNum
put word 1 of the dgDataOfLine[tlineNum] of group "ProductList" into pkeyvalue
Any ideas?
Pete
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
That's because the dgDataOfLine[lineNumber] returns an array, with an entry for each column for that row. Just put it into a variable and take a look at it with the variable watcher.
Jan Schenkel.
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com