NetTalk Central

Author Topic: Keep left spaces for string field into a browse  (Read 4889 times)

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Keep left spaces for string field into a browse
« on: December 02, 2016, 05:45:39 AM »
Hi,

How to keep the left spaces for a string field that is used into a browse?

Thanks
« Last Edit: December 02, 2016, 05:56:23 AM by walter.dasilva »
Walter - SOFTVALE

Poul

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: Keep left spaces for string field into a browse
« Reply #1 on: December 02, 2016, 07:23:23 AM »
Code: [Select]
<pre>   if you allow xhtml
probably best if its a fixed-width  column  as it may
not auto-size properly, there mght be a css way ....</pre>

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: Keep left spaces for string field into a browse
« Reply #2 on: December 05, 2016, 05:47:09 AM »
Hi Poul,

Thanks for your answer but doesn´t work.

Regards,
Walter - SOFTVALE

Poul

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: Keep left spaces for string field into a browse
« Reply #3 on: December 05, 2016, 07:40:42 AM »
Code: [Select]
'<pre>     TEST   :'& clip(loc:mystring) & '</pre>'
in the Display: prompt of the template

womm, perhaps i misunderstand, or fiddler would shed some light.

alternatively, you could prepend some  &nbsp;  characters
you still need to tick the allow xhtml on  the column though.

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: Keep left spaces for string field into a browse
« Reply #4 on: December 05, 2016, 11:58:12 AM »
Hi Poul,

Prepending something it´s work. but not wath i´m looking for.

Regards,
Walter - SOFTVALE

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Keep left spaces for string field into a browse
« Reply #5 on: December 12, 2016, 02:01:55 AM »
where are you using it in a browse Walter? in a browse column?

From Poul's answer;
'<pre>' & clip(loc:mystring) & '</pre>'
and make sure the column has "allow xHtml" ticked on.

cheers
Bruce