Add a single Menu Item?

36 views
Skip to first unread message

Rob Hills

unread,
Dec 31, 2025, 4:22:50 AM12/31/25
to Jam.py Users Mailing List
Is there a relatively simple way in the framework to add a single item to the menu?

I need to trigger a server process and at present I can do this via a button on one of the forms, but this isn't an intuitive location for this function.  Ideally I'd like to add it to an "admin" menu that I have created via the framework already.

Hunting through this forum, the only options I've found seem to involve rebuilding the whole menu in code.  I can do this, but it seems overkill when I just want to add a single item to the otherwise perfectly good menu built by the framework.

Drazen Babic

unread,
Dec 31, 2025, 4:27:52 AM12/31/25
to Jam.py Users Mailing List
Adding one Virtual Table to the existing ones?
An VT can be a markdown like on
northwind/Introduction

--
You received this message because you are subscribed to the Google Groups "Jam.py Users Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jam-py+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jam-py/15b378c2-9454-4cd9-ba65-744b5ee9ee9an%40googlegroups.com.

Rob Hills

unread,
Jan 2, 2026, 11:52:46 AMJan 2
to Jam.py Users Mailing List
Thank you, I've added a Virtual Table to my Admin Group so my menu displays as I wanted it to.

I've used the on_view_form_shown(item) event to call my server code and that all works nicely.

I've stripped the form for my Virtual Table so a blank page is opened when I select the menu item.  I advise the user that the server function has completed via an Alert message.
Is there any way to stop the form being displayed at all?

Dean D. Babic

unread,
Jan 2, 2026, 9:51:55 PMJan 2
to Jam.py Users Mailing List
The example I posted is not a form tho
Anything created as a tempate can be displayed. 

Rob Hills

unread,
Jan 2, 2026, 11:14:47 PMJan 2
to jam...@googlegroups.com
Thanks for your reply.

I was hoping to stop anything displaying at all, ie no new tab.  I would just use the "alert" command in the client to advise the user that the server process has finished successfully (or display an error if there is one).  Opening an extra tab is not the end of the world and I understand that I could use a template to display some sort of message or even just a blank screen.  But that's all a bit unintuitive and redundant so if possible I'd like to either not display a tab/form/page at all (ideal) or close it immediately after the server process has been triggered.

Dean D. Babic

unread,
Jan 3, 2026, 2:27:58 AMJan 3
to Jam.py Users Mailing List
There is more to it tho. Imo, any server procedure needs some logging. 
One option is to have a button, like on this vid. But sure, rebuild the
complete Menu in no time,  and add whatever is needed. 
I updated the Docs, as seen.
server_side_build_info.mp4
Reply all
Reply to author
Forward
0 new messages