Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: yap b. on April 06, 2011, 02:22:57 am



Title: HTML tag in TEXTEDIT form field
Post by: yap b. on April 06, 2011, 02:22:57 am
we have a form field defined as TEXTEDIT, it appears that additional HTML tags are added to the field value when we enter url link in that field.

for example, when the following link is entered

< a href="http://www.domain.com/file.pdf">download now< /a>

some additional HTML tags are added automatically by 4gl when we save the form to Informix SE database,
This is the exact text added to the beginning of that field value: <html><head><meta name="qrichtext" content="1" /></head><body style="font-size:8pt;font-family:MS Shell Dlg">

Then we will only see the word "download now" underlined as though it's an html link in the form during edit.  We no longer able to view the full <a href... >download now[/url] text we entered.

We are using GDC 1.33.1f with "Genero Business Development Language Version 1.33.1g"

How can we disable the additional html tags being auto added by 4gl?

thanks


Title: Re: HTML tag in TEXTEDIT form field
Post by: Reuben B. on April 06, 2011, 01:24:27 pm
The TEXTEDIT widget (and LABELS from a later version) have presentation styles that allow the content to be either plain text or HTML.

https://4js.com/online_documentation/fjs-fgl-1.33-manual-html/User/PresentationStyles.html#STYATT_TEXTEDIT 

In your form you'll need to have something like ...

TEXTEDIT f01 = formonly.url, STYLE="plain";

... and a corresponding entry in your style file.

<Style name="TextEdit.plain" >
   <StyleAttribute name="textFormat" value="plain" />
</Style>


Title: Re: HTML tag in TEXTEDIT form field
Post by: yap b. on April 06, 2011, 02:27:40 pm
Thanks!