B4J Question Updating a table in a Webapp with live data

coley

Member
Licensed User
Longtime User
Hi,

I'm looking for some advice.

I have a small app written that displays live data from a constantly updated csv file.
Every time the csv file is updated the app updates the tableview, nice and simple and it works well.

I'm now looking to try and do this in a webapp and serve the data as a webpage.

What would be the best way to approach this? I don't want any user interaction I would want the webpage to refresh automatically when the data is refreshed.

Any pointers in the right direction would be appreciated.

Thank you.
 

EnriqueGonzalez

Expert
Licensed User
Longtime User
You need 2 main technologies.

WebSockets, so you can comunicate with X number of users looking at the web app in realtime
https://www.b4x.com/android/forum/threads/webapp-web-apps-overview.39811/#content

FileWatcher, so you can know when the CSV is modified.
https://www.b4x.com/android/forum/threads/jfilewatcher-watch-system-file-events.56613/

Then, you have 2 options for the UI, AbMaterial that may be is a cannon vs fly thing or SkeletonCSS
https://www.b4x.com/android/forum/threads/skeleton-css-library.82128/
https://www.b4x.com/android/forum/threads/abmaterial-framework-for-webapps.60072/


You can find here an example like what you want to do
https://www.b4x.com/android/forum/t...-using-jquery-mobile-websockets-sqlite.41460/
 
Upvote 0

coley

Member
Licensed User
Longtime User
You need 2 main technologies.

WebSockets, so you can comunicate with X number of users looking at the web app in realtime
https://www.b4x.com/android/forum/threads/webapp-web-apps-overview.39811/#content

FileWatcher, so you can know when the CSV is modified.
https://www.b4x.com/android/forum/threads/jfilewatcher-watch-system-file-events.56613/

Then, you have 2 options for the UI, AbMaterial that may be is a cannon vs fly thing or SkeletonCSS
https://www.b4x.com/android/forum/threads/skeleton-css-library.82128/
https://www.b4x.com/android/forum/threads/abmaterial-framework-for-webapps.60072/


You can find here an example like what you want to do
https://www.b4x.com/android/forum/t...-using-jquery-mobile-websockets-sqlite.41460/

Thanks, they are great resources, now for some reading ;-)
 
Upvote 0
Top