As per the attached file I have a table called Projects which has a one to many relationship with Notes.
If I add a Note it only displays a certain amount of the Note despite all the data being present in the database.
Can this be changed?
Not displaying all text
5 posts
• Page 1 of 1
Not displaying all textAs per the attached file I have a table called Projects which has a one to many relationship with Notes.
If I add a Note it only displays a certain amount of the Note despite all the data being present in the database. Can this be changed?
Re: Not displaying all textList view by default truncates all fields to 255 chars (i think it's 255). This prevents accidentally loading entire sets of records complete with longblob data and longtext data. One workaround is to provide the "struct" directive for the specific field in the fields.ini file. This is intended to inform Xataface that the field contained structured data that cannot be truncated.
e.g.
-Steve
Re: Not displaying all textThat doesn't work.
I've found that none of these constructs seem to work if the field is from a relationship. i.e. I have table Projects and table Notes with a 1 to many If I put the struct=1 under the relevant field in Myapplication\Notes\fields.ini it does nothing as does using the widget:type=hidden directive!
Re: Not displaying all textOK. I have fixed this in SVN and the 2.0.x branch (rev 4281) so that it will respect these directives in relationships. While I was in there I noticed a workaround that you can use in the mean time, though. You can implement the renderCell() method for the field as this will override the default field truncation.
renderCell is described on this page http://xataface.com/documentation/how-to/list_tab -Steve
Re: Not displaying all textYes that worked thanks.
5 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 11 guests |