Configuring and Customizing the List Tab

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

Configuring and Customizing the List Tab

Postby igor-jar » Wed Jul 11, 2012 9:29 am

Hi Steve,
I used renderRow and renderRowHeader functions as described here: http://xataface.com/documentation/how-to/list_tab to change the order of the columns in the list tab. Everything went fine with the exception that while in the original list tab every cell content in a row was linked to the details view tab the table in my new list tab has no links at all. How can I get back the links?
Thanks in advance and please note that Xataface is a great asset even for such newbies in php and mysql like me :)
Best regards,
Igor
igor-jar
 
Posts: 7
Joined: Wed Jun 27, 2012 2:09 pm

Re: Configuring and Customizing the List Tab

Postby igor-jar » Wed Jul 11, 2012 1:56 pm

OK, this solves the problem for the links in the fields: http://xataface.com/forum/viewtopic.php?t=5525#26570
What about the links in the column headers?
igor-jar
 
Posts: 7
Joined: Wed Jun 27, 2012 2:09 pm

Re: Configuring and Customizing the List Tab

Postby shannah » Thu Jul 12, 2012 11:34 am

If you just want to change the order of the columns, it would be better to just use the order directive in the fields.ini file.
e.g.
Code: Select all
[myfield1]
   order=10

[myfield2]
    order=9


Any reason why this solution won't work for you?
-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Configuring and Customizing the List Tab

Postby igor-jar » Thu Jul 12, 2012 1:33 pm

Hi,
in some cases I needed different orders of the fields in the edit tab and the list tab. But I found the solution by grouping the fields and then assigning an order to the fieldgroups which made one result in the edit tab but did not affect the order in the list tab which picked up the order disregarding the grouping (certainly this may not be a complete solution for all cases).
How to align the content of a cell in the list tab? I have columns with numbers and would like to right align them. If I use [fieldname]__renderCell I cannot use the <td> tag, <p> makes an extra line, etc... Ideally my numbers should be in right align money format both in edit and list tabs but making them right align in the list tab would already be a solution. I use the function suggested here: http://www.php.net/manual/en/function.sprintf.php#99732 but the alignment is not perfect (the starting point on the right side differs a little bit depending on the length of the number).
Thanks,
Igor
igor-jar
 
Posts: 7
Joined: Wed Jun 27, 2012 2:09 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 5 guests

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