Page 1 of 1

Configuring and Customizing the List Tab

PostPosted: Wed Jul 11, 2012 9:29 am
by igor-jar
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

Re: Configuring and Customizing the List Tab

PostPosted: Wed Jul 11, 2012 1:56 pm
by igor-jar
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?

Re: Configuring and Customizing the List Tab

PostPosted: Thu Jul 12, 2012 11:34 am
by shannah
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

Re: Configuring and Customizing the List Tab

PostPosted: Thu Jul 12, 2012 1:33 pm
by igor-jar
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