Issue 2817 - Long texts disappear when selected in grid
Summary: Long texts disappear when selected in grid
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: 641
Hardware: PC Windows 2000
: P4 Trivial (vote)
Target Milestone: ---
Assignee: ocke.janssen
QA Contact: issues@dba
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-12 12:34 UTC by schulten
Modified: 2006-05-31 14:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
shows disappearing long varchar text (8.31 KB, image/gif)
2002-01-31 21:32 UTC, schulten
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description schulten 2002-01-12 12:34:44 UTC
On my grid form based on select * from Filme (5.2 db sample), when I open the 
form and put the cursor into a cell in the FTEXT column, the column text 
disappears. 

Now, when I enter a new line with a short FTEXT and save it by clicking the 
diskette icon on the form footer, every other FTEXT cell I select from now on 
always shows the newly entered FTEXT.

This only happens in a grid, not in a normal text field.

FTEXT is a VARCHAR(500), Adabas cannot order by it. Maybe this has to do with 
the field length.
Comment 1 marc.neumann 2002-01-14 08:12:44 UTC
I will check this
Comment 2 marc.neumann 2002-01-14 10:27:45 UTC
Hi,

I can't reproduce this. 
The field content doesn't disappear when click in the column.

Can you reproduce it with any other table?

Ciao Marc
Comment 3 schulten 2002-01-31 21:29:59 UTC
Yes, I defined a new table "Test" in SOFFICE, the datasource for the 
5.2 database example.

create table ("TID" Integer
, "TText" Varchar(500))

Then I copied the text from the field FTEXT in Filme that belongs to 
Terminator into my new field TText in the new table.

Finally I used the Autopilot to create a form with a grid control 
containing both columns. Same effect - whenever I set the cursor into 
the TText field, the TText content disappears. See attached 
screenshots.
Comment 4 schulten 2002-01-31 21:32:03 UTC
Created attachment 1017 [details]
shows disappearing long varchar text
Comment 5 marc.neumann 2002-02-04 09:00:40 UTC
Yes, now I can see the problem.

The problem is that the length of the column is limit to 30 chars per
default. 
If you change the max text length of the control to the length of the
database table field length, than everythings works fine.

But that there is nothing displayed in the textfield is still a
"small" bug. 


Comment 6 Frank Schönheit 2002-02-18 08:36:54 UTC
accepting the issue, though I'm not yet sure what the best solution
would be
Comment 7 Frank Schönheit 2002-10-16 12:13:17 UTC
From a investigation of bug 6118, it rose that we need to care not
only for the grid columns (where we already changed something), but
also for other text fields (simple ones and formatted fields).
We need a defined behaviour for a situation where a control (no matter
if in a grid, or a "normal" control) is filled with a text which is
longer than the max text len property.

Current state:
* normal text fields: either the text is accepted (which is bug 8399
deep in VCL), or the old text, means from the previous record, is kept
(which is definately wrong)
* grid controls:
  - before the recent fix: the text vanished
  - after the recent fix: the text is cut to the proper len

We should implement the latter for normal text controls, too.
Comment 8 Frank Schönheit 2002-10-16 13:47:17 UTC
Ocke, please care for this.
We need, for normal text controls (forms/source/component/Edit.cxx) a
behaviour similar to what you already implemented for grid columns.
Please feel free to ask for details if necessary.
Comment 9 Frank Schönheit 2002-10-17 07:17:53 UTC
now really assigning to Ocke ...
Comment 10 ocke.janssen 2002-10-18 11:16:17 UTC
I'll take care about.
Comment 11 ocke.janssen 2002-10-18 13:27:17 UTC
Fixed.
Comment 12 ocke.janssen 2002-12-13 09:50:49 UTC
close
Comment 13 hans_werner67 2004-02-02 13:01:31 UTC
change subcomponent to 'none'