hiding column

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

hiding column

Postby bjlockie » Sat Jan 22, 2011 8:20 pm

I have an autoincrement column that I use as a unique ID but there is no point showing it to the user.
Is there any way to make xataface not display it?
If I have to display it, can I make it non editable?
bjlockie
 
Posts: 6
Joined: Fri Jan 21, 2011 11:04 pm

Re: hiding column

Postby shannah » Sat Jan 22, 2011 8:40 pm

are you wanting to hide it list view, details view, or on the edit form?

Auto increment fields aren't displayed on the edit form by default. To hide a field in list view you could add:
Code: Select all
visibility:list=hidden


or

Code: Select all
visibility:browse=hidden

for the details view.


If it is showing up in the edit form you might want to double check and make sure that the field is indeed set as auto increment.

(Side Note: To hide a field from the edit form it is probably best to use permissions, but you can also set widget:type=hidden).

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: hiding column

Postby bjlockie » Sat Jan 22, 2011 9:50 pm

Thanka.
I want to hide it everywhere. :-)
bjlockie
 
Posts: 6
Joined: Fri Jan 21, 2011 11:04 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 21 guests

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