Hiding the view tab
Posted: Fri Dec 18, 2009 11:30 pm
Hi All,
I am trying to customize the tabs/forms for my application. Now I want to hide the view tab when clicking in the record (so that it goes directly to edit <- this is my main purpose )
I read some posts and said that if I add actions.ini in the table folder and add something like that will do the job:
[view]
condition = 0
but I got some errors and exceptions as below:
Fatal error: No template found for action 'view'.On line 48 of file C:\xampp\htdocs\xataface\actions\default.php in function printStackTrace()
On line 1115 of file C:\xampp\htdocs\xataface\Dataface\Application.php in function handle(array(array(,customer,view,view,View,v,action:view label,action:view description)))
On line 1544 of file C:\xampp\htdocs\xataface\Dataface\Application.php in function handleRequest()
On line 20 of file C:\xampp\htdocs\traviscars\index.php in function display()
in C:\xampp\htdocs\xataface\actions\default.php on line 48
By the way, after I change the line to '[view > view]'. no more errors but the tab is still there..
Could anyone kindly help on that ?
I am trying to customize the tabs/forms for my application. Now I want to hide the view tab when clicking in the record (so that it goes directly to edit <- this is my main purpose )
I read some posts and said that if I add actions.ini in the table folder and add something like that will do the job:
[view]
condition = 0
but I got some errors and exceptions as below:
Fatal error: No template found for action 'view'.On line 48 of file C:\xampp\htdocs\xataface\actions\default.php in function printStackTrace()
On line 1115 of file C:\xampp\htdocs\xataface\Dataface\Application.php in function handle(array(array(,customer,view,view,View,v,action:view label,action:view description)))
On line 1544 of file C:\xampp\htdocs\xataface\Dataface\Application.php in function handleRequest()
On line 20 of file C:\xampp\htdocs\traviscars\index.php in function display()
in C:\xampp\htdocs\xataface\actions\default.php on line 48
By the way, after I change the line to '[view > view]'. no more errors but the tab is still there..
Could anyone kindly help on that ?