B4J Question Update HTML table...

rbghongade

Well-Known Member
Licensed User
Longtime User
@Erel, billzhan
How can I add table rows based on timer expiry event? To be more precise, I want to add the current data after some time interval on webpage. So finally, i should get the log of all the data with time stamp on the webpage.
The project is to count the pulses and create a webpage report displaying date.time,current count and total count. Currently I start the timer from the client end just for ease of debugging.
I tried to populate the html table by loading the log.csv file, but have not succeeded.
Project attached.
 

Attachments

  • COUNTER_WEB.zip
    4.7 KB · Views: 206

billzhan

Active Member
Licensed User
Longtime User
Demo attached may help to update datatable ( ws not ajax)

Not sure I understand your application, suggestions:
Not try to display too many rows in a table, will have performance issue
Use sqlite db instead of csv file. Show the last 10 or 50 rows with SQL (select ... limit 10)
 

Attachments

  • FLOW_COUNTER_WEB v1.zip
    5.7 KB · Views: 234
Upvote 0

rbghongade

Well-Known Member
Licensed User
Longtime User
Dear billzhan,
Thank you so very much! You seem to be a java,html wizard!
Actually I was not clear in mentioning the desired result, sorry for that, but with your code I was able to pull it off! The count need not be recorded or displayed for every increment but only when the counting stops. So no performance issues were encountered!
Thanks once again,
warm regards,
 
Upvote 0
Top