Text field / text area

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

Text field / text area

Postby sceresini » Thu Jun 14, 2012 2:06 pm

Hi guys
We have a problem about text field / text area.
I create a form variable (text type) and put it as dataprovider for 2 field, the first TEXT_FIELD, the other TEXT_AREA.
By a button I write in this form variable a text like this:
'FIRST ROW\nSECOND ROW\nTHIRD ROW'.
If both TEXT_FIELD and TEXT_AREA are not editable the behavior is what we expect (img1); but if I flag both 'editable' property and then modify something in text in TEXT_FIELD it happens a strange thing: after the save is launch disappear '\n' and in both field the string appears in a single row (img2).
Anyone has noted this possible bug?

Thank in advance

Luca

P.S.: if necessary I can send a '.servoy' file which contains my test solution.
Attachments
img2.jpg
img2
img2.jpg (14.75 KiB) Viewed 3717 times
img1.jpg
img1
img1.jpg (13.15 KiB) Viewed 3717 times
sceresini
 
Posts: 28
Joined: Tue Feb 21, 2012 3:24 pm

Re: Text field / text area

Postby Harjo » Thu Jun 14, 2012 2:54 pm

This is not a bug IMHO, when you edit a text-field and save it, it will strip all \n automaticly!
Harjo Kompagnie
byKom B.V.
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: Text field / text area

Postby sceresini » Thu Jun 14, 2012 4:02 pm

ah ok, but why it do this automaticly?!?
sceresini
 
Posts: 28
Joined: Tue Feb 21, 2012 3:24 pm

Re: Text field / text area

Postby sceresini » Fri Jun 15, 2012 3:21 pm

Any news?
sceresini
 
Posts: 28
Joined: Tue Feb 21, 2012 3:24 pm

Re: Text field / text area

Postby david » Fri Jun 15, 2012 4:00 pm

Various field types save data differently, not just text and text area. So assigning the same data provider to multiple field types for editing is not recommended.
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: Text field / text area

Postby sceresini » Mon Sep 24, 2012 10:15 am

Yes, sure, it was only an experiment :-)
sceresini
 
Posts: 28
Joined: Tue Feb 21, 2012 3:24 pm


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 2 guests