Normal Topic TextEditor element problems (Read 432 times)
SesameNubi
Member
*
Offline



Posts: 2
Joined: Jul 1st, 2011
TextEditor element problems
Aug 11th, 2011 at 6:50pm
Print Post Print Post  
Hi,
We are having a strange problem with the TextEditor element.  We have an existing form in an application that has been in production for a few years.  The form has many fields including a single Multi Line Text element.  The user's complained that when there is a large amounts of data in the multi line text element they would have to click in the field and use the down arrow key to scroll through the text.  We removed the multi line text element from the form and then added a TextEditor element in it's place bound to the same data element and with the same element name.  The TextEditor element automatically adds the scroll bars as needed when the data exceeds the size of the text box and this works great.
For some reason, however, we noticed that when we are in add mode we can enter the field and add data as expected.  When we call up an existing record, we cannot change the data in the field.  We have compared the element attributes between the existing Multi Line Text element and the new TextEditor element and cannot find anything obvious.  We are a new group to Sesame that inhereted an existing application we don't have a lot of experience about.  We did check the program layout code and includes and don't see anything programatically setting this element to read only.  Is there anything special about the TextEditor element we should be aware of that might cause this to happen?  Any advice would be greatly appreciated - Thanks!
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: TextEditor element problems
Reply #1 - Aug 12th, 2011 at 2:10pm
Print Post Print Post  
Hello,

First thing I would do is add a command button to your form, Or change the programming on an existing one, to tell us if the element is actually read-only or if something else is going on.

Once you add the command button, Add the following Programming to it's On Element Enter event(Replace NameOfTextEditor with the name of the Text Editor widget)
Code
Select All
Writeln(@ReadOnly(NameOfTextEditor)) 


Preview the application
Open the form in Search/Update mode
Retrieve a record
Click the button

What displays in the Sesame Slate window that appears?

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged