|table row context menu when table is empty [message #1349420]
||Mon, 12 May 2014 03:25
| davide .
Registered: March 2014
Hi all. Following the minicrm tutorial, I've added a context menu to the person table row (adding a subclass of AbstractExtensibleMenu to the subclass of AbstractExtensibleTable that implements the table) so that when I right click on a table row a context menu appears enabling the user to choose the "EDIT selected" person or adding a "NEW" person.|
so far so good.
unfortunately, when the originating database table is empty, no row is displayed on the table, and right-clicking on the empty table does not show the context menu. This way I cannot add any new row to the table. Is there any way to overcome this situation?
Maybe is is possible to attache the context menu not to the table row, but to the originating table (maybe a different menu)?
Maybe I can add an item to the main menu, spawnig a new person form, but in this case how to be aware of the fact that maybe there's a person table shown that needs to be notified that the user added person information, pressed the ok button in the new person form to store the new database row?
thanks in advance!
Powered by FUDForum
. Page generated in 0.12331 seconds