Aug 31, 2012 Replies: 18 I went through a (long) learning curve with regard to using SQLite, and creating Webview, Listview and Scrollview lists. There are a lot of great examples on this forum, but I found it difficult to come to grips with the essentials necessary. So for my own sake I started to build examples of barebones programs that can put SQLite data in these lists. This program still helps me today as basic building blocks for my programs. I hope it will help someone else, somewhere along the line. Johannes Attachments DataBase_Barebones_examples.zip DataBase_Barebones_examples.zip 47.8 KB · Views: 1,852 Click to expand...
I went through a (long) learning curve with regard to using SQLite, and creating Webview, Listview and Scrollview lists. There are a lot of great examples on this forum, but I found it difficult to come to grips with the essentials necessary. So for my own sake I started to build examples of barebones programs that can put SQLite data in these lists. This program still helps me today as basic building blocks for my programs. I hope it will help someone else, somewhere along the line. Johannes
BPak Active Member Licensed User Longtime User Sep 2, 2012 #2 Thanks for the examples Johannes. I needed example for the Web example. :icon_clap:
D Dman Active Member Licensed User Longtime User Sep 2, 2012 #3 Thank you so, so much. As a newbie it s kind of hard to figure out some of these things with complex tutorials. Barebones is what we need sometimes.
Thank you so, so much. As a newbie it s kind of hard to figure out some of these things with complex tutorials. Barebones is what we need sometimes.
moster67 Expert Licensed User Longtime User Sep 3, 2012 #5 :sign0098: Very useful. Thanks for sharing.
vb1992 Well-Known Member Licensed User Longtime User Sep 4, 2012 #6 Very nice. SQL LITE NOTES SQLite Tutorial
G gillano Member Licensed User Longtime User Sep 11, 2012 #8 bare bones i like the bare bones examples I would like to use the ListView2Col. so the other modules are not needed. I would like to have the Data base generate with the values of Labels when a button is clicked i'm having trouble understanding how to bring up the the ListView (I'll use a MenuItem)
bare bones i like the bare bones examples I would like to use the ListView2Col. so the other modules are not needed. I would like to have the Data base generate with the values of Labels when a button is clicked i'm having trouble understanding how to bring up the the ListView (I'll use a MenuItem)
S stubuck New Member Licensed User Longtime User Sep 22, 2012 #9 Simple is always good!! Johannes, Thank you for taking the time to Keep It Simple!!! Your work is a TREMENDOUS help!
Simple is always good!! Johannes, Thank you for taking the time to Keep It Simple!!! Your work is a TREMENDOUS help!
marcel Active Member Licensed User Longtime User Nov 19, 2012 #10 Hi, Thanks for this example. Just one question. Why have you declared in every activity a SQL1 var. I thought when you declare this once in the Main activity this would be enough and use Main.SQL1 to reference to this. Is this wrong thinking of me?
Hi, Thanks for this example. Just one question. Why have you declared in every activity a SQL1 var. I thought when you declare this once in the Main activity this would be enough and use Main.SQL1 to reference to this. Is this wrong thinking of me?
jpvniekerk Active Member Licensed User Longtime User Nov 20, 2012 #11 Marcel, You are correct - it is not necessary. I dis this for my own purpose so that I can use each activity on its own as well - just copy and paste to a different app.
Marcel, You are correct - it is not necessary. I dis this for my own purpose so that I can use each activity on its own as well - just copy and paste to a different app.
marcel Active Member Licensed User Longtime User Nov 20, 2012 #12 jpvniekerk said: Marcel, You are correct - it is not necessary. I dis this for my own purpose so that I can use each activity on its own as well - just copy and paste to a different app. Click to expand... Aha, ok thanks. This makes it clear
jpvniekerk said: Marcel, You are correct - it is not necessary. I dis this for my own purpose so that I can use each activity on its own as well - just copy and paste to a different app. Click to expand... Aha, ok thanks. This makes it clear
aklisiewicz Active Member Licensed User Longtime User Jun 12, 2013 #15 I used you example App to build something on my own. It helps a lot, but I would like to go a little bit further and create an activity which displays record details. Got to the point when I'm a little bit confused. I have a form with a query which reads single record bases on RecordID from the Listview. Then the next step is to assign a screen lavels (I call them strSting1, strString2,...) to display data in a queue (Array) I'm not sure how would I pass the data from the query to the Array for a single record the to the screen ? Example: I have a set of screen variables which supposed to display data from the record like this: Code: Copy Dim strID As Int Dim strIssueName As Label, strDesc As Label, strSymptoms As Label, strBodyParts As Label, strBodySys As Label, strOrgans As Label Dim Query1 As String then I have a line which reads the single record: Code: Copy Query1 = "SELECT * FROM issues WHERE ID =" & Main.IssueID '????? how would I read the record into Array, then to the screen ? (in this case all strLavel1,... are read only) Arthur Last edited: Jun 12, 2013
I used you example App to build something on my own. It helps a lot, but I would like to go a little bit further and create an activity which displays record details. Got to the point when I'm a little bit confused. I have a form with a query which reads single record bases on RecordID from the Listview. Then the next step is to assign a screen lavels (I call them strSting1, strString2,...) to display data in a queue (Array) I'm not sure how would I pass the data from the query to the Array for a single record the to the screen ? Example: I have a set of screen variables which supposed to display data from the record like this: Code: Copy Dim strID As Int Dim strIssueName As Label, strDesc As Label, strSymptoms As Label, strBodyParts As Label, strBodySys As Label, strOrgans As Label Dim Query1 As String then I have a line which reads the single record: Code: Copy Query1 = "SELECT * FROM issues WHERE ID =" & Main.IssueID '????? how would I read the record into Array, then to the screen ? (in this case all strLavel1,... are read only) Arthur
aklisiewicz Active Member Licensed User Longtime User Jun 27, 2013 #16 I agree, this is one of the best database examples I could finsd, and I would just request more examples like that.... Thanks a lot! Art
I agree, this is one of the best database examples I could finsd, and I would just request more examples like that.... Thanks a lot! Art
S swamisantosh Member Licensed User Longtime User Sep 1, 2013 #17 jpvniekerk said: I went through a (long) learning curve with regard to using SQLite, and creating Webview, Listview and Scrollview lists. There are a lot of great examples on this forum, but I found it difficult to come to grips with the essentials necessary. So for my own sake I started to build examples of barebones programs that can put SQLite data in these lists. This program still helps me today as basic building blocks for my programs. I hope it will help someone else, somewhere along the line. Johannes Click to expand... It is best Code, I'm new to b4a programming, It was really helpful to me
jpvniekerk said: I went through a (long) learning curve with regard to using SQLite, and creating Webview, Listview and Scrollview lists. There are a lot of great examples on this forum, but I found it difficult to come to grips with the essentials necessary. So for my own sake I started to build examples of barebones programs that can put SQLite data in these lists. This program still helps me today as basic building blocks for my programs. I hope it will help someone else, somewhere along the line. Johannes Click to expand... It is best Code, I'm new to b4a programming, It was really helpful to me
MrKim Well-Known Member Licensed User Longtime User Sep 3, 2013 #18 Excellent! Will save me Tons of time!
S siddsg Member Licensed User Longtime User Sep 8, 2013 #19 Hi Johannes, I am getting an error "android.database.sqlite.SQLiteException: no such table: QueriesTable (code 1): , while compiling". Would you know why? Thanks, Siddharth
Hi Johannes, I am getting an error "android.database.sqlite.SQLiteException: no such table: QueriesTable (code 1): , while compiling". Would you know why? Thanks, Siddharth