NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: walter.dasilva on December 02, 2016, 05:45:39 AM

Title: Keep left spaces for string field into a browse
Post by: walter.dasilva 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
Title: Re: Keep left spaces for string field into a browse
Post by: Poul 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>
Title: Re: Keep left spaces for string field into a browse
Post by: walter.dasilva on December 05, 2016, 05:47:09 AM
Hi Poul,

Thanks for your answer but doesn´t work.

Regards,
Title: Re: Keep left spaces for string field into a browse
Post by: Poul 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.
Title: Re: Keep left spaces for string field into a browse
Post by: walter.dasilva on December 05, 2016, 11:58:12 AM
Hi Poul,

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

Regards,
Title: Re: Keep left spaces for string field into a browse
Post by: Bruce 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