🎯 Super simple app with server code as a first step in understanding Jam
17 views
Skip to first unread message
Dean Babic
unread,
Apr 8, 2026, 1:52:33 AM (8 days ago) Apr 8
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jam.py Users Mailing List
Home is a Virtual table with nothing in it but a JS code and a template:
<!-- Home page start -->
<divclass="home-view">
<divclass="form-body">
<divclass="row">
<divclass="date"></div>
<divid="date"></div>
</div>
</div>
</div>
function on_view_form_created(item) {
var date = newDate(newDate().setMonth(newDate().getMonth() - 48));
$("#date").text(date);
}
It displays:
Now that we know how to "bind" the value to some DIV ID (date), we can calculate summary for some table. For example "test" table with f1 field and display it:
Here is a JS code:
function on_view_form_created(item) {
var total;
item.server("get_total", function (total, error) {