Is it possible to disable a action of the ‘action to be perf
Archived from the Xataface Users forum.
sym — Fri Jun 30, 2006 8:35 am
Is it possible to disable a action of the menu (upper left) ‘actions to be performed?
In the index.php file i write a few lines to disable the function, but the action is selectable in the menu:
if ( isset($_REQUEST[‘-new’]) || isset($_REQUEST[‘-delete-one’]) ){
if ( $_REQUEST[‘-table’] == ‘EMPLOYEES_BUSINESS’) {
$_GET[‘-action’] = ‘list’;
$_REQUEST[‘-action’] = ‘list’;
unset( $_REQUEST[‘-new’]);
unset( $_GET[‘-new’]); // disables creation of new records
}
}
Greeting,
Nico Sijm
zopemgr — Mon Jul 03, 2006 11:49 pm
Hi Nico,
The ability to disable/enable actions in the actions menu has been added in version 0.6 which will be released shortly (just some documentation and testing remaining). You would have to edit the code to disable them in Dataface 0.5.x (which is located in the TableView.php file.
-Steve