简体   繁体   中英

How to handle memo fields in Progress database?

I'm designing a table in a Progress database, which should contain a memo field. I've created a character field for this, containing up to 500 characters: x(500) .
However, when I try to add the correponding DB field control to a window, I get error 4132, mentioning that only 320 characters are allowed.

What can I do in order to add an editor control to a window in order to show the content of that field?

Thanks in advance

Character fields are by default shown as fill-in fields, having a maximum size of 320. In order to allow more, the "VIEW-AS" dialog box must be filled in in the data dictionary, hereby a working example:

VIEW-AS EDITOR NO-WORD-WRAP MAX-CHARS 500 SCROLLBAR-HORIZONTAL SCROLLBAR-VERTICAL
     SIZE 35 BY 6

When this is done, automatically the AppBuilder will put an editor on the window for showing this DB field.

Use the "LARGE" Option on the Editor Widget for more space. An for a really "large" field in the database, you can look for CLOB instead of Character. However CLOB is not supported in any indexes. For the limit of CHARACTER fields, please have a look at:

https://knowledgebase.progress.com/articles/Knowledge/P122087

A DB record is limited to 32k for all fields.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM