Hi,
I am trying to figure out how to get my list view looking the way that I'd like and having a few problems.
All of these are in a table named "sessions"
1) I am wanting to display my boolean fields as checkboxes and to truncate a few text fields
From what I can tell, I should be doing this by implementing a renderCell function for those columns. One column is a field whose name is "time". As a test, I added the following in my sessions.php file
class tables_sessions {
function time_renderCell(&$record){
return "test";
}
}
The normal data appears in the time column rather than the "test" reutrned byt the function.
I tried having the class listed as "tables_sessions" and "table_sessions" with the same non-result.
2) DOCUMENTATION NOTE: in the docs it shows the class format for a table as "class tables_tablename" in some places but in others it is listed as "class table_tablename". Which is correct?
3) How can you set the width that a particular column should take up in the list view?
4) How do I specify that some columns should be visible in list view but others visible in form view?
5) How do I specify where fields appear on the page in form view? I have a few short fields that I would like to appear on the same line.
6) How do I display a column in list view that pulls data from a related record?
--
You received this message because you are subscribed to the Google Groups "Xataface" group.
Visit this group at http://groups.google.com/group/xataface.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/CABiRg%2BR9jB9LSbGi26HfTaR55LtExve8F%3Dfv8PgLex4kbRkq3g%40mail.gmail.com.