T Tata Mapassa Active Member Licensed User Longtime User Mar 31, 2024 #1 Hello, I have a sqlite database with 1 table (Test) and 3 fields (ID, Label, Date). I want each time the application is started to display a customlistview (Icon, label) of all the records with only the Date field corresponding to today's date? If possible that the label is of a different color from one recording to another? THANKS
Hello, I have a sqlite database with 1 table (Test) and 3 fields (ID, Label, Date). I want each time the application is started to display a customlistview (Icon, label) of all the records with only the Date field corresponding to today's date? If possible that the label is of a different color from one recording to another? THANKS
Alexander Stolte Expert Licensed User Longtime User Mar 31, 2024 #2 Tata Mapassa said: If possible that the label is of a different color from one recording to another? Click to expand... Yes, it's possible. Upvote 0
Tata Mapassa said: If possible that the label is of a different color from one recording to another? Click to expand... Yes, it's possible.
josejad Expert Licensed User Longtime User Mar 31, 2024 #3 Tata Mapassa said: I have a sqlite database with 1 table (Test) and 3 fields (ID, Label, Date). I want each time the application is started to display a customlistview Click to expand... Upload a small project with your code and what you want to achieve. It will make easier to help you Upvote 0
Tata Mapassa said: I have a sqlite database with 1 table (Test) and 3 fields (ID, Label, Date). I want each time the application is started to display a customlistview Click to expand... Upload a small project with your code and what you want to achieve. It will make easier to help you
T Tata Mapassa Active Member Licensed User Longtime User Mar 31, 2024 #4 There Attachments Test.zip Test.zip 10 KB · Views: 394 Upvote 0
josejad Expert Licensed User Longtime User Mar 31, 2024 #5 Sorry, I just see a B4XTable showing the data. Where's your xCustomListView? Here an example based on the CLV's original example. Attachments CLVExample.zip CLVExample.zip 20.9 KB · Views: 401 Upvote 0
Sorry, I just see a B4XTable showing the data. Where's your xCustomListView? Here an example based on the CLV's original example.
T Tata Mapassa Active Member Licensed User Longtime User Mar 31, 2024 #6 sorry Attachments Test.zip Test.zip 11.6 KB · Views: 408 Upvote 0
T Tata Mapassa Active Member Licensed User Longtime User Mar 31, 2024 #8 Yes, I initially adapted my code to display data with customlistview by following the example but the app crashes..... Upvote 0
Yes, I initially adapted my code to display data with customlistview by following the example but the app crashes.....
T Tata Mapassa Active Member Licensed User Longtime User Mar 31, 2024 #10 I use the application directly on an Android smartphone after sending the APK from the PC to the phone via Bluetooth. Attachments Capture d'écran 2024-03-31 231619.png 131.9 KB · Views: 473 Upvote 0
I use the application directly on an Android smartphone after sending the APK from the PC to the phone via Bluetooth.
T Tata Mapassa Active Member Licensed User Longtime User Mar 31, 2024 #11 I don't use B4A-Bridge Upvote 0
josejad Expert Licensed User Longtime User Mar 31, 2024 #12 Tata Mapassa said: I don't use B4A-Bridge Click to expand... Please, use B4A-Bridge and tell us the error you get. Upvote 0
Tata Mapassa said: I don't use B4A-Bridge Click to expand... Please, use B4A-Bridge and tell us the error you get.
T Tata Mapassa Active Member Licensed User Longtime User Apr 1, 2024 #13 Hello, the display query is not working without an error message. THANKS Attachments CLVExampleV2.zip CLVExampleV2.zip 12.9 KB · Views: 409 Upvote 0
josejad Expert Licensed User Longtime User Apr 1, 2024 #14 Hi: Please, check how to make sql queries. My comment "'Modify the query to select just date = today" is not literal Check DateTime docs too Your query should be something like Code: "SELECT ID, Info, Date FROM Test Where Date = '" & DateTime.Date(DateTime.Now) & "'" Upvote 0
Hi: Please, check how to make sql queries. My comment "'Modify the query to select just date = today" is not literal Check DateTime docs too Your query should be something like Code: "SELECT ID, Info, Date FROM Test Where Date = '" & DateTime.Date(DateTime.Now) & "'"
T Tata Mapassa Active Member Licensed User Longtime User Apr 1, 2024 #15 Everything is OK, thank you for your help. Upvote 0