Idea Summary
A Text Area seems to be limited to the length of varchar2, which is 32767.
Try to make a function with:
- return dbms_lob.substr(cc, 32767, 1); -- results are shown in Text Area
- return dbms_lob.substr(cc, 32768, 1); --Text Area remains empty
- return cc; -- ora_sqlerrm: ORA-06502: PL/SQL: numeric or value; the page does not render at all.
Use Case
Useful whenever the contents to be displayed are longer than 32767, such as a JSON or XML returned from a http call, a file that has been uploaded. I have applications that display such data, or uses it to process in javascript.
We all build workaround solutions for it, but wouldn't it be cool, if a standard Text Area wouldn't suffer from the above mentioned.
Preferred Solution (Optional)
I can think of a few:
- Simply, allow for unlimited or a very large amount of bytes.
- Similar to “Display Image”, which demands a BLOB, add a new type that can use CLOB, prefferably one that can be edited.
Or/and, please, document size limits in “Help”. I might be the single one developer who actually uses it, but:
Textarea
Displays a multiple-row text area.
is not warning me against violations of the size limit.
NOTE: Rich Text Editor suffers from the same.