Hi,
I have a field called description that is defined as a 'text' field in the database. It is a fairly lengthy. When I am in the edit form, I want to display all of the contents of the field. When I am in the Browse form, I want to only display the content based on the 'width' option. I have set the 'width' to 600 but then it still shows the top of each character from the next line.
Is it possible to truncate the display of the field to the defined 'width' or do I need to set the 'height' of each line somewhere?
Thanks,
John
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
How do I truncate data in browse column?
-
- Posts: 148
- Joined: Wed Dec 05, 2012 4:56 am
How do I truncate data in browse column?
You do not have the required permissions to view the files attached to this post.
-
- Posts: 503
- Joined: Thu May 24, 2012 2:08 am
- Location: Milan, Italy
- Contact:
Re: How do I truncate data in browse column?
John,
in forms Browse tab > Display field, you can specify a field name or a SQL function (see http://wiki.nubuilder.com/tiki-index.ph ... uilderDocs).
You can use SQL LEFT(field_name,lenght) or SUBSTR(field_name,start,lenght) functions to specify how many characters to display: Hope this helps.
in forms Browse tab > Display field, you can specify a field name or a SQL function (see http://wiki.nubuilder.com/tiki-index.ph ... uilderDocs).
You can use SQL LEFT(field_name,lenght) or SUBSTR(field_name,start,lenght) functions to specify how many characters to display: Hope this helps.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 148
- Joined: Wed Dec 05, 2012 4:56 am
Re: How do I truncate data in browse column?
John,
Or you could just change the height..
Steven
Or you could just change the height..
Steven
You do not have the required permissions to view the files attached to this post.
-
- Posts: 148
- Joined: Wed Dec 05, 2012 4:56 am
Re: How do I truncate data in browse column?
Steven,
I like both options for different reasons. Thanks for the alternative suggestion.
John.
I like both options for different reasons. Thanks for the alternative suggestion.
John.