NGClient RTF_AREA not shows

Forum to discuss the new web client version of Servoy.

NGClient RTF_AREA not shows

Postby Juan Etec » Thu Mar 31, 2016 5:47 pm

Hi, I am migraiting my solution to servoy 8 and I have a form with a field which display types is RTF.

It doesn't show anything.
What could be the alternative to solve that?
You do not have the required permissions to view the files attached to this post.
Un Saludo

Juan Ramírez
Juan Etec
 
Posts: 64
Joined: Mon Apr 20, 2009 8:23 pm
Location: Gran Canaria - Spain

Re: NGClient RTF_AREA not shows

Postby Juan Etec » Mon Apr 04, 2016 9:28 am

Hi, I can answer myself, but is a trick.
Under the assumption that RTF AREA doesn't work in NGClient it could be transform to a HTML Area.
I didn't found any documentation in the wiki that RTF Area doesn't work in NGClient.
Could any one deny or insure that?
Un Saludo

Juan Ramírez
Juan Etec
 
Posts: 64
Joined: Mon Apr 20, 2009 8:23 pm
Location: Gran Canaria - Spain

Re: NGClient RTF_AREA not shows

Postby jdbruijn » Tue Apr 05, 2016 9:19 am

As far as I know there is no default component for RTF in the ng-client.
You could switch to a html area, but then you will have to convert your rtf data to html code.
I seem to remember there is a sample solution somewhere that does that for you.
Jos de Bruijn
Focus Feedback BV
Servoy Certified Developer
Image
jdbruijn
 
Posts: 492
Joined: Sun Apr 11, 2010 6:34 pm

Re: NGClient RTF_AREA not shows

Postby Juan Etec » Tue Apr 05, 2016 9:56 am

Thanks Jos for your reply.
I know the solution that you say, is only to be sure that RTF fields does not work on NGClient.
Un Saludo

Juan Ramírez
Juan Etec
 
Posts: 64
Joined: Mon Apr 20, 2009 8:23 pm
Location: Gran Canaria - Spain

Re: NGClient RTF_AREA not shows

Postby skrizvi » Thu Jun 27, 2019 6:48 pm

Have there been any updates on using a RTF Area in the NG Client?
skrizvi
 
Posts: 17
Joined: Wed Jun 12, 2019 10:13 pm

Re: NGClient RTF_AREA not shows

Postby sean » Fri Jun 28, 2019 12:34 pm

Hi Skrizvi,

RTF area is not supported in the NG client and we don't have plans to support it, as it is no longer a strong standard of the internet.
We recommend that you migrate your data from RTF to HTML and use the HTML Area component for capturing and rendering stylized text. There are converters available for one-time conversion, or this could be scripted to automate lots of data / dynamically migrate if you really need to support RTF capture in a legacy system.

For example:
https://github.com/iarna/rtf-to-html
https://www.npmjs.com/package/rtf2html
Software Engineer
Servoy USA
sean
 
Posts: 370
Joined: Mon May 21, 2007 6:26 pm
Location: USA

Re: NGClient RTF_AREA not shows

Postby skrizvi » Wed Jul 10, 2019 1:59 am

sean wrote:Hi Skrizvi,

RTF area is not supported in the NG client and we don't have plans to support it, as it is no longer a strong standard of the internet.
We recommend that you migrate your data from RTF to HTML and use the HTML Area component for capturing and rendering stylized text. There are converters available for one-time conversion, or this could be scripted to automate lots of data / dynamically migrate if you really need to support RTF capture in a legacy system.

For example:
https://github.com/iarna/rtf-to-html
https://www.npmjs.com/package/rtf2html


Hello Sean! I like the npmjs project but I am unsure about how to work with npm inside of servoy. How can I import and use rtf2html? My goal is to have a function I can call within servoy which will take in rtf and output html. I tried the rtf-to-html.js from github but I couldn't get it to run inside of Servoy.
skrizvi
 
Posts: 17
Joined: Wed Jun 12, 2019 10:13 pm

Re: NGClient RTF_AREA not shows

Postby sean » Wed Jul 10, 2019 7:13 pm

Hi Skrisvi,

Those libraries will probably not run directly in Servoy. They are more likely compatible to a different JS engine, like NodeJS.
You could probably do the conversion 1x outside Servoy. If you want to run it inside Servoy, then there could be a Java lib that does it.

All java libs can run in Servoy because we use a Java-based JS engine.

There was a project that did some RTF to HTML for outlook integration. This might be easier:
https://github.com/tuanway/servoyMailMerge

Best,
Sean
Software Engineer
Servoy USA
sean
 
Posts: 370
Joined: Mon May 21, 2007 6:26 pm
Location: USA


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 8 guests

cron