best solution for creating formatted text in the client?

Questions, answers, tips and ideas on Servoy Client

best solution for creating formatted text in the client?

Postby tgs » Wed Jul 31, 2013 9:52 am

Customers of my solutions would like to create formatted text in the smart client and print it out or send it by Fax (as jasperReport).

For that I create a form with a field as display type RTF_AREA and also a report with a field as RTF format. This works, but tab stops and blanks are not equal in the report.
Besides the formatting and text creating/editing options in the Servoy client are rather worst... The displayed font in the text editor menue is differnt to active font in the field and so on.

My question is:

How can I build (integrate) a texteditor with basic functions (setting fonts, styles, tab stops,...) into the Servoy client and get printed what I see?


Regards
Thomas
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

Re: best solution for creating formatted text in the client?

Postby ngervasi » Wed Jul 31, 2013 1:05 pm

Use an HTML area, it also works in webclient and you shouldn't have issues with it.
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1485
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Re: best solution for creating formatted text in the client?

Postby tgs » Wed Jul 31, 2013 1:14 pm

Hi Nicola,

if I use HTML_AREA e.g. tab stops in the report output would be ignored.

Regards
Thomas
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

Re: best solution for creating formatted text in the client?

Postby david » Wed Jul 31, 2013 4:15 pm

Implementing a decent rtf solution has never been really possible with Servoy's rtf field. Coming out has always been a problem as you're finding and going in is just as problematic (users pasting in something complicated from MS Word or Outlook for example).

After working on CMS projects for quite awhile now, we've even moved away from html fields and close relatives (TinyMCE and such) for data entry. Too much latitude for the user.

We've moved completely to markdown for formatted data entry. Use a regular text area to input data and onFieldExit show results in a non-editable html area. Formatting nuance is handled in the style sheet. You have to roll up a markdown library (many out there) to make this work.

Been no push-back -- users love it. And it saves on the never-ending hassle of dealing with crappy data entry.
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: best solution for creating formatted text in the client?

Postby tgs » Tue Aug 06, 2013 4:53 pm

@david
I took a look on markdown .... and for me it seems to be a little bit too complicate for my customers solution and does not what I want.

I would like to have an integrated Texteditor with basic functions (like TextEdit on Mac or Notepad on Win) in Servoy for formattable rich text to create jasperreports as what I see on the edit form.
Is it possible to get (create) this as a bean?
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

Re: best solution for creating formatted text in the client?

Postby david » Tue Aug 06, 2013 5:44 pm

Maybe Marcel's Word plugin is a solution? viewtopic.php?f=15&t=19729
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: best solution for creating formatted text in the client?

Postby sbutler » Thu Aug 08, 2013 12:58 am

Try the Browser Suite on ServoyForge, then you can integrate something like TinyMCE inside it.
Scott Butler
iTech Professionals, Inc.
SAN Partner

Servoy Consulting & Development
Servoy University- Training Videos
Servoy Components- Plugins, Beans, and Web Components
Servoy Guy- Tips & Resources
ServoyForge- Open Source Components
User avatar
sbutler
Servoy Expert
 
Posts: 759
Joined: Sun Jan 08, 2006 7:15 am
Location: Cincinnati, OH

Re: best solution for creating formatted text in the client?

Postby tgs » Mon Aug 12, 2013 10:46 am

Thank you all for the input!

I've tried the Browser Suite ServoyHtmlEdidor and I think that's what I'm looking for.

Regards
Thomas
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

Re: best solution for creating formatted text in the client?

Postby tgs » Mon Jul 07, 2014 1:54 pm

Hi all,

I'm still looking for a solution to create simple formatted text (style, tab stops, fonts) in the Smart Client and get what you see as output with JasperReport.
Normally I would like to prefer the html-editor of The BrowserSuite, but the plugin ist not working on Mac OS X and Java 7.

Does anybody have a suggestion?
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

Re: best solution for creating formatted text in the client?

Postby Harjo » Mon Jul 07, 2014 2:13 pm

Go for the: https://github.com/Servoy/svyJFXWebView

For Java 7 and higher!
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: best solution for creating formatted text in the client?

Postby tgs » Mon Jul 07, 2014 3:26 pm

Harjo wrote:Go for the: https://github.com/Servoy/svyJFXWebView

For Java 7 and higher!

Hi Harjo,

I also get this hint from Patrick T., but I don't understand how "svyJFXWebView" can help me to develop a text area in Servoy for individual formatting text, typed by customers?
Customers would like to have the possibility in their solution for writing and formatting individual text (e.g. for letters, headers + footers on offers or invoices,...) without using a seperate application like MS Word, Pages, TextEdit and so on.

Regards
Thomas
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

Re: best solution for creating formatted text in the client?

Postby Harjo » Mon Jul 07, 2014 3:34 pm

in this webpanel you can integrate for example: (html) tinyMCE editor. The same that Servoy is using for web-client.
by scripting the configuration fro tinyMCE you have total control in how the editor works, and which buttons are available.

http://www.tinymce.com/
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: best solution for creating formatted text in the client?

Postby tgs » Mon Jul 07, 2014 3:40 pm

Thank you Harjo,
I will try this!
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

Re: best solution for creating formatted text in the client?

Postby tgs » Mon Jul 07, 2014 4:16 pm

Hi Harjo,
if you have made this, would you please so kind to give me an example how to I get this running?
It's currently a little bit difficult for me and I'm struggeling.

Thomas
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

Re: best solution for creating formatted text in the client?

Postby Harjo » Mon Jul 07, 2014 4:29 pm

I didn't say that it was easy, but with a little bit of effort and html-knowledge, it is doable.
We used the component not for an html-editor, but for some googleMaps and other html-web-components, used in the smart-client.

You have to read-in into the wiki, on howto setup this..
You can do it! Don't give up! :wink:

Or hire a consultant that does it for you!
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Next

Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 7 guests