Is it possible to disable a action of the 'action to be perf

A place for users and developers of the Xataface to discuss and receive support.

Postby 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
sym
 
Posts: 13
Joined: Wed Dec 31, 1969 5:00 pm

Postby 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
zopemgr
 
Posts: 66
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 30 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved