Field Size in list view

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

Field Size in list view

Postby danomatic » Mon Apr 07, 2008 5:07 am

Is there a way to show the entire contents of a field in list view. Right now in the list view, the contents of the given field get truncated until I click on it for detail view and then I see the entire contents of the field.

I see this old post concerning this issue from 2006 but it looks like not much ever happened with it:

http://xataface.com/forum/viewtopic.php?t=3928#19651
danomatic
 
Posts: 1
Joined: Wed Apr 02, 2008 2:15 pm

Postby shannah » Tue Apr 08, 2008 8:40 am

In the name of keeping result sets trim the list view only obtains a "preview" of each field (as you observed).

The Dataface_ResultList class uses the calls the Dataface_QueryTool::loadSet() method to load its results (on line 149). This method contains a 4th boolean parameter which indicates whether it should fetch a preview of each record. Setting this parameter to false will effectively cause it to load entire records.

Perhaps in a future version I'll make this configurable in an INI file. For now you would have to make the manual change.

You may, in addition, have to implement a custom rendrerer for the cell in question do display the entire value, as Xataface's uses the Dataface_Record::preview() method to display the final contents which massages the data even more.

-Steve
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 13 guests

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