Is there a way to truncate text of a fields.text() (in tree view especially), so that lines aren't huge in height ? I was thinking of a widget attribute in xml maybe ?
Thanks for your time. Nicolas
Hi, there is a function which do that in 6.0, function truncate_data, you can find it here :
update with new informations given by comment after :
if you can have status of the page, editable or browse, you can use function I gave before :
create a new field text which is updated by onchange with first you are already created.
in tree view in function of state of the page (editable or browse), one is visible, the second no.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/14/13, 6:57 AM|
|Seen: 4714 times|
|Last updated: 4/15/16, 10:45 AM|