Hiding the view tab

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

Hiding the view tab

Postby wyhauyeung » 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 ?
wyhauyeung
 
Posts: 3
Joined: Wed Dec 02, 2009 2:26 am

Postby shannah » Sat Dec 19, 2009 6:54 pm

Use
Code: Select all
[view > view]
    condition="false"


in your actions.ini. You'll also want to change your default browse action to edit by adding the following to the beginning of your conf.ini file:

Code: Select all
default_browse_action=edit
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 27 guests

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