Put_line long string
Hi guys
I am trying to ult_file.put_line a long string ~maximum 5000 characters to a file. I think i have exccess the default limit and receive an error. So i extend the maximum character per line by override the utl_file.fopen method. After that it stopped the error, but the output characters are all non readable characters - 扡扡扡扡扡扡扡扡扡扡扡扡扡扡扡扡扡扡
Could someone suggest me a solution to insert my long string?
Thank you
Bryan
Procedure Write_to_file(filename in string, orderid in number, orderversion in number) is
f SYS.Utl_File.file_type;
tmporderid number(10);
tmporderversion number(10);
str string(1032);
begin
tmporderid := orderid;
tmporderversion := orderversion;
f := utl_file.fopen('EXPORTDIR2',filename,'W');
FOR s in
(Select SAP_STRING1
FROM BSACC_V_SAP_TABLE_2
where OrderId = tmporderid
AND OrderVersion = tmporderversion )
Loop
utl_file.put_line(f,s.sap_string1||chr(10));
end loop;
utl_file.fclose(f);
end;
Window XP professional English
Oracle 10g
Similar Messages
-
AES256 bit encyption key from 64 character long string
Hi,
I have Oracle 10.2 on Windows 2003. I have recently started working on a project that requires encrypting information before sending it over. I have got 64 character long string to use it as a key.
I am getting ORA-06502: PL/SQL: numeric or value error: raw variable length too long
<pre>
declare
input_string VARCHAR2 (200) := 'SomeText';
output_string VARCHAR2 (200);
encrypted_raw RAW (2000); -- stores encrypted binary text
decrypted_raw RAW (2000); -- stores decrypted binary text
key_bytes_raw RAW (32); -- stores 256-bit encryption key
encryption_type PLS_INTEGER; -- total encryption type
begin
DBMS_OUTPUT.PUT_LINE ('Original string: ' || input_string);
encryption_type := DBMS_CRYPTO.ENCRYPT_AES256 + DBMS_CRYPTO.CHAIN_CBC + DBMS_CRYPTO.PAD_PKCS5;
key_bytes_raw := UTL_I18N.STRING_TO_RAW('eiccmkjd94jfgniw03ljkdlfutcnv3209kfjd67023jlclmxzlmc9543ykflseu6', 'AL32UTF8');
encrypted_raw := DBMS_CRYPTO.ENCRYPT
src => UTL_I18N.STRING_TO_RAW (input_string, 'AL32UTF8'),
typ => encryption_type,
key => key_bytes_raw
-- The encrypted value in the encrypted_raw variable can be used here
decrypted_raw := DBMS_CRYPTO.DECRYPT
src => encrypted_raw,
typ => encryption_type,
key => key_bytes_raw
output_string := UTL_I18N.RAW_TO_CHAR (decrypted_raw, 'AL32UTF8');
DBMS_OUTPUT.PUT_LINE ('Decrypted string: ' || output_string);
end;
Please let me know hot to convert 64 character long string in to 256bit key.
Thanks
-Smithsmith_apex wrote:
My client is using Java and they are saying that they are using this key for their AES256 Encryption and working fine. I have asked them to provide me 32 bytes key as in Oracle 256bit is 32 character string.
Let me see what they have to say.
I was wondering why Java has 64 bytes for 256 AES encryption when Oracle need only 32 bytes for same encryption.I am not sure I completely understand how those built-in packages work but the doc example produces the raw key that is same in length (in terms of number of characters) as the one you are using.
Yet your UTL_I18N packaged function fails for your key but works for the documentation example.
Documentation example:
SQL> select * from v$version ;
BANNER
Oracle Database 10g Release 10.2.0.5.0 - Production
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for Linux: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production
declare
input_string VARCHAR2 (200) := 'Secret Message';
output_string VARCHAR2 (200);
encrypted_raw RAW (2000); -- stores encrypted binary text
decrypted_raw RAW (2000); -- stores decrypted binary text
num_key_bytes NUMBER := 256/8; -- key length 256 bits (32 bytes)
key_bytes_raw RAW (32); -- stores 256-bit encryption key
encryption_type PLS_INTEGER := -- total encryption type
DBMS_CRYPTO.ENCRYPT_AES256
+ DBMS_CRYPTO.CHAIN_CBC
+ DBMS_CRYPTO.PAD_PKCS5;
begin
DBMS_OUTPUT.PUT_LINE ('Original string: ' || input_string);
DBMS_OUTPUT.PUT_LINE ('Encryption Type: ' || encryption_type);
key_bytes_raw := DBMS_CRYPTO.RANDOMBYTES (num_key_bytes);
DBMS_OUTPUT.PUT_LINE ('Key Bytes(RAW): ' || key_bytes_raw);
encrypted_raw := DBMS_CRYPTO.ENCRYPT
src => UTL_I18N.STRING_TO_RAW (input_string, 'AL32UTF8'),
typ => encryption_type,
key => key_bytes_raw
DBMS_OUTPUT.PUT_LINE ('Encrypted string: ' || encrypted_raw);
-- The encrypted value in the encrypted_raw variable can be used here
decrypted_raw := DBMS_CRYPTO.DECRYPT
src => encrypted_raw,
typ => encryption_type,
key => key_bytes_raw
output_string := UTL_I18N.RAW_TO_CHAR (decrypted_raw, 'AL32UTF8');
DBMS_OUTPUT.PUT_LINE ('Decrypted string: ' || output_string);
end;
32 33 34 /
Original string: Secret Message
Encryption Type: 4360
Key Bytes(RAW): 52EC66508FDF1E5DE5FD38EC2467FAA91009B738A2926AA870E142C080C72EBF
Encrypted string: 0BDDC2B94F7044700D85624297A39025
Decrypted string: Secret Message
PL/SQL procedure successfully completed.
SQL> select length('52EC66508FDF1E5DE5FD38EC2467FAA91009B738A2926AA870E142C080C72EBF') from dual ;
LENGTH('52EC66508FDF1E5DE5FD38EC2467FAA91009B738A2926AA870E142C080C72EBF')
64
SQL> select dump('52EC66508FDF1E5DE5FD38EC2467FAA91009B738A2926AA870E142C080C72EBF') from dual ;
DUMP('52EC66508FDF1E5DE5FD38EC2467FAA91009B738A2926AA870E142C080C72EBF')
Typ=96 Len=64: 53,50,69,67,54,54,53,48,56,70,68,70,49,69,53,68,69,53,70,68,51,56,69,67,50,52,54,55,70,65,65,57,49,48,48,57,66,55,51,56,65,50,57,50,54,65,65,56,55,48,69,49,
52,50,67,48,56,48,67,55,50,69,66,70Your example:
declare
input_string VARCHAR2 (200) := 'SomeText';
output_string VARCHAR2 (200);
encrypted_raw RAW (2000); -- stores encrypted binary text
decrypted_raw RAW (2000); -- stores decrypted binary text
key_bytes_raw RAW (32); -- stores 256-bit encryption key
encryption_type PLS_INTEGER; -- total encryption type
begin
DBMS_OUTPUT.PUT_LINE ('Original string: ' || input_string);
encryption_type := DBMS_CRYPTO.ENCRYPT_AES256 + DBMS_CRYPTO.CHAIN_CBC + DBMS_CRYPTO.PAD_PKCS5;
key_bytes_raw := UTL_I18N.STRING_TO_RAW('eiccmkjd94jfgniw03ljkdlfutcnv3209kfjd67023jlclmxzlmc9543ykflseu6', 'AL32UTF8');
DBMS_OUTPUT.PUT_LINE ('Key Bytes(RAW): ' || key_bytes_raw);
encrypted_raw := DBMS_CRYPTO.ENCRYPT
src => UTL_I18N.STRING_TO_RAW (input_string, 'AL32UTF8'),
typ => encryption_type,
key => key_bytes_raw
-- The encrypted value in the encrypted_raw variable can be used here
decrypted_raw := DBMS_CRYPTO.DECRYPT
src => encrypted_raw,
typ => encryption_type,
key => key_bytes_raw
output_string := UTL_I18N.RAW_TO_CHAR (decrypted_raw, 'AL32UTF8');
DBMS_OUTPUT.PUT_LINE ('Decrypted string: ' || output_string);
end;
27 28 29 30 /
Original string: SomeText
declare
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: raw variable length too long
ORA-06512: at line 12
SQL> select length('eiccmkjd94jfgniw03ljkdlfutcnv3209kfjd67023jlclmxzlmc9543ykflseu6') from dual ;
LENGTH('EICCMKJD94JFGNIW03LJKDLFUTCNV3209KFJD67023JLCLMXZLMC9543YKFLSEU6')
64
SQL> select dump('eiccmkjd94jfgniw03ljkdlfutcnv3209kfjd67023jlclmxzlmc9543ykflseu6') from dual ;
DUMP('EICCMKJD94JFGNIW03LJKDLFUTCNV3209KFJD67023JLCLMXZLMC9543YKFLSEU6')
Typ=96 Len=64: 101,105,99,99,109,107,106,100,57,52,106,102,103,110,105,119,48,51,108,106,107,100,108,102,117,116,99,110,118,51,50,48,57,107,102,106,100,54,55,48,50,51,106,
108,99,108,109,120,122,108,109,99,57,53,52,51,121,107,102,108,115,101,117,54 -
PLSQL - Output a long string to screen
I am trying to create an XML file, but I don't have FTP access on the server, only read rights.
So I need to output a long string on the screen.
By using the
DBMS_OUTPUT.PUT_LINE ('<Environment> ' || long_string_01 || long_string_02 || '</Environment>');
I get the 255 buffer error.
Whats the easiest way around it?
Thanks in advance everyone!
Edited by: 866635 on Aug 5, 2011 5:16 AMHi,
I agree with Mr Robertson.
SQL> SET SERVEROUTPUT ON SIZE 1000000
SQL> SET LONG 1000000000 LONGC 1000000000
SQL> set pagesize 200
SQL> select TO_CLOB('When I use a LONG setting smaller than the length of the TEXT column,
2 I got it truncated. When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the
length of the TEXT column, I got it wrapped. When both are huge, it seems I am getting the expectin
g result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.sql ?
3 When I use a LONG setting smaller than the length of the TEXT column, I got it truncated.
4 When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the length of the
5 TEXT column, I got it wrapped. When both are huge, it seems I am getting the expecting
6 result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.sql ?
7 When I use a LONG setting smaller than the length of the TEXT column, I got it truncated.
8 When I use a LONG setting smaller than the length of the TEXT column,
9 I got it truncated. When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the
length of the TEXT column, I got it wrapped. When both are huge, it seems I am getting the expectin
g result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.sql ?
10 When I use a LONG setting smaller than the length of the TEXT column, I got it truncated.
11 When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the length of the
12 TEXT column, I got it wrapped. When both are huge, it seems I am getting the expecting
13 result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.sql ?
14 When I use a LONG setting smaller than the length of the TEXT column, I got it truncated.
15 When I use a LONG setting smaller than the length of the TEXT column,
16 I got it truncated. When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the
length of the TEXT column, I got it wrapped. When both are huge, it seems I am getting the expectin
g result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.sql ?
17 When I use a LONG setting smaller than the length of the TEXT column, I got it truncated.
18 When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the length of the
19 TEXT column, I got it wrapped. When both are huge, it seems I am getting the expecting
20 result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.sql ?
21 When I use a LONG setting smaller than the length of the TEXT column, I got it truncated.
22 When I use a LONG setting smaller than the length of the TEXT column,
23 I got it truncated. When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the
length of the TEXT column, I got it wrapped. When both are huge, it seems I am getting the expectin
g result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.sql ?
24 When I use a LONG setting smaller than the length of the TEXT column, I got it truncated.
25 When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the length of the
26 TEXT column, I got it wrapped. When both are huge, it seems I am getting the expecting
27 result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.sql ?
28 When I use a LONG setting smaller than the length of the TEXT column, I got it truncated.
29 When I use a LONG setting smaller than the length of the TEXT column,
30 I got it truncated. When I use a huge LONG setting but a setting smallerthe length of the TEXT
column, I got it wrapped. When both are huge, it seems I am getting ') from dual
31 /
TO_CLOB('WHENIUSEALONGSETTINGSMALLERTHANTHELENGTHOFTHETEXTCOLUMN,IGOTITTRUNCATED
When I use a LONG setting smaller than the length of the TEXT column,
I got it truncated. When I use a huge LONG setting but a LONGCHUNKSIZE setting s
maller than the length of the TEXT column, I got it wrapped. When both are huge,
it seems I am getting the expecting result. So why not setting SET LONG 2000000
000 LONGC 2000000000 in your login.sql ?
When I use a LONG setting smaller than the length of the TEXT column, I got it t
runcated.
When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the leng
th of the
TEXT column, I got it wrapped. When both are huge, it seems I am getting the ex
pecting
result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.s
ql ?
When I use a LONG setting smaller than the length of the TEXT column, I got it t
runcated.
When I use a LONG setting smaller than the length of the TEXT column,
I got it truncated. When I use a huge LONG setting but a LONGCHUNKSIZE setting s
maller than the length of the TEXT column, I got it wrapped. When both are huge,
it seems I am getting the expecting result. So why not setting SET LONG 2000000
000 LONGC 2000000000 in your login.sql ?
When I use a LONG setting smaller than the length of the TEXT column, I got it t
runcated.
When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the leng
th of the
TEXT column, I got it wrapped. When both are huge, it seems I am getting the ex
pecting
result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.s
ql ?
When I use a LONG setting smaller than the length of the TEXT column, I got it t
runcated.
When I use a LONG setting smaller than the length of the TEXT column,
I got it truncated. When I use a huge LONG setting but a LONGCHUNKSIZE setting s
maller than the length of the TEXT column, I got it wrapped. When both are huge,
it seems I am getting the expecting result. So why not setting SET LONG 2000000
000 LONGC 2000000000 in your login.sql ?
When I use a LONG setting smaller than the length of the TEXT column, I got it t
runcated.
When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the leng
th of the
TEXT column, I got it wrapped. When both are huge, it seems I am getting the ex
pecting
result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.s
ql ?
When I use a LONG setting smaller than the length of the TEXT column, I got it t
runcated.
When I use a LONG setting smaller than the length of the TEXT column,
I got it truncated. When I use a huge LONG setting but a LONGCHUNKSIZE setting s
maller than the length of the TEXT column, I got it wrapped. When both are huge,
it seems I am getting the expecting result. So why not setting SET LONG 2000000
000 LONGC 2000000000 in your login.sql ?
When I use a LONG setting smaller than the length of the TEXT column, I got it t
runcated.
When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the leng
th of the
TEXT column, I got it wrapped. When both are huge, it seems I am getting the ex
pecting
result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.s
ql ?
When I use a LONG setting smaller than the length of the TEXT column, I got it t
runcated.
When I use a LONG setting smaller than the length of the TEXT column,
I got it truncated. When I use a huge LONG setting but a setting smallerthe len
gth of the TEXT column, I got it wrapped. When both are huge, it seems I am gett
ing
SQL> -
Is there an easy way to convert a long string into an array?
I can convert a long string into a 1-d array by parsing and using build array, but I would like to know if there is a function to make this easier.
For example:
from/ aaaaaaaabbbbbbbbccccccccdddddddd (string of ascii)
to/ an array that is 1-d with each element having eight characters
aaaaaaaa
bbbbbbbb
cccccccc
dddddddd
Thank you.
Solved!
Go to Solution.Try something like this:
(If you can guarantee that the string length is an integer multiple of 8, you an drop the two triangular modes in the upper left. )
Message Edited by altenbach on 03-14-2010 06:40 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
ChopString.png 9 KB -
Inserting long string into Oracle
When my code inserts about 5K character into a table, I got an error message saying that the Oracle could only handle 4K character. I am currently looking at LOB but havn't had a clear idea yet. Could someone give me some help on this? According to the sample code, I will have to use Oracle JDBC driver for LOB. But we are using BEA's Kona driver for all JDBC connections. Is there an easy way to insert long string?
hii
nams u solve ur problem using setCharacterStream method
but it does't work if the string more than 4000 char
raises "java.sql.SQLException: Protocol violation"
here's the code
PreparedStatement ps = con.prepareStatement( "UPDATE candidate SET cv_new = ?");
StringReader cvReader=new StringReader(cv_new);
int abc=cv_new.length();
ps.setCharacterStream( 1, cvReader, abc);
ps.executeUpdate();
is that any problem in that code or it's a jdbc driver broblem ??
i'm using classes 12.zip
thanks -
How to find out if a long String has a "subString" twice or more.
I need to find out if a long String has the same number twice or more.
I need to look matches for numbers running from 000, 001....999 and if a number is found twice or more, return that number and lines there were found.
example String:
-;000 ; 1 ; 2006-12-11 ; -; job;
x;001 ; 2 ; 2006-12-11 ; 2006-12-12; do this
-;002 ; 3 ; 2006-12-11 ; -; work
-;003 ; 0 ; 2006-12-11 ; -; some
-;004 ; 2 ; 2006-12-11 ; -; thing
x;005 ; 1 ; 2006-12-11 ; 2006-12-11; reads
-;003 ; 0 ; 2006-12-11 ; -; here
Should return from example String:
003 at lines 4 and 7
Any ideas?So there are newlines in the String?
You could use a StringTokenizer to break the String into lines, then searching on each line if it contains any of the search strings. (You need to clarify if a line can contain more than one search string).
Probably you should use a Map<String, Integer> to record the searchcounts.
Or an int[] Array if you are really sure that the Strings you search for really are numbers.
Another option is to use:
LineNumberReader lnr = new LineNumberReader(new StringReader(searchString));This will save you from explicitly having to take care for the line number.
In any case your example looks like the individual lines are semicolon separated fields and the numbers you search for always are in column two.
So after breaking up the original String in lines, you could use another StringTokenizer to break up the line in fields. -
In report layout, can format a long string display as Column mode?
Hi,
Just want to check in report builder any way can format a long string into a column mode?
Example: I have a field to hold 8000 character, and would like to print
30 character in each line, when reach 50 line, then print in column i/o to print next page?
Any idea ? Thanks a lot if you can share your experience with me.
best Regards,
Klnghauhi let say your field name is x
then if your want it word wrap then it's simple just get one field and make it's vertical
elasticity variable. and asign the field to it..
but if you want your field to be displayed as
first colunm and then beside continuation of that column but in 2nd one...
then create 2 formula columns make your field legth been distributed half in each.
so cf_1 is:
decalre
t varchar2(1510);
begin
if length(:x) > 1500
t := substr(x, 1, 1500); -- as 30 x 50 = 1500
else
t := :x;
end if;
return t;
so cf_2 is:
decalre
t varchar2(1510);
begin
if length(:x) > 1500
t := substr(x, 1500, length(:x)-1500); -- as 30 x 50 = 1500
else
t := '';
end if;
return t;
and then in design view
field1 field2
for field1 source is cf_1 and
for field2 source is cf_2
that's all
Enjoy Oracle... -
Problem in displaying long string in JTextField
Hi All,
I got problem in displaying long String in JtextField. It does center alignment & I can see middle part of string where length of JTextfield is 6 char. How can I do left alignement so that I can see starting 6 character?
--Harishyou may try this:
yourTextFieldName.setHorizontalAlignment(JTextField.LEFT);
or
yourTextFieldName.setHorizontalAlignment(JTextField.LEADING);
hth. -
The email I receive from OWA has no line breaks, it is all one long string. This is creating a big problem when I forward the emails received with my BB as they are difficult to read by the recipient. Is there anyway to correct this? I use BIS and access my work email via OWA. I also have a separate personal email set up with no problems with the email I receive or send.
BB Curve 8310 v4.5.0.55
OWA v5.5 SP4
Any help will be appreciated!I'm experiencing the same issue (no line breaks) when pasting rows directly from Excel (2008 & 2011) into a Flex TextArea on a Mac. However, when pasting the exact same data from a Windows Excel spreadsheet, it contains the line breaks.
From Mac: Customer\tPhoneCustomer 1\t555-555-5555Customer 2\t555-555-5556
From Windows: Customer\tPhone\rCustomer 1\t555-555-5555\rCustomer 2\t555-555-5556\r
This appears to be a bug in a flash.display class as pasting the data from Excel to a text editor and then copying/pasting into the same Flex TextArea preserves the original line breaks.
Has anyone figured out a work around? -
When I forward an e-mail, I get a long string of gobblygook that goes with it and I cannot figure out how to eliminate it without having to delete it every time I forward an e-mail. The following is only part of the string that I am talking about. How can I eliminate this from the e-mail?
Here is part of an excerpt from one of the strings:
From: - Mon Aug 19 18:12:47 2013
X-Account-Key: account1
X-UIDL: 065B31352CC6B3C0789DEA7954395B55
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:
Return-Path: <[email protected]>
Received: from hrndva-mxlb.mail.rr.com ([10.128.255.126]) by hrndva-imta07.mail.rr.com with ESMTP id <20130819211326470.DBUO12525@hrndva-X-Roving-StreamId: 0Sorry, Firefox doesn't do email, it's strictly a web browser.
If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
If your problem is with Mozilla Thunderbird, see this forum for support.
[https://support.mozillamessaging.com/en-US/home] <br />
or this one <br />
[http://forums.mozillazine.org/viewforum.php?f=39] -
How can I copy a long string of texts from my iPhone 4s to a word document?
I need to copy a long string of texts to a word document on my PC.
One method would be to use 3rd party software. The following is one example but there may be better/cheaper or even free options: http://www.wideanglesoftware.com/touchcopy/
-
I have an editable combo box that I'm sticking in a compact spring layout. The problem is if you use a list that contains very long strings (like a long hex string), the combo box sizes itself to fit it and all the other controls are made to be that length as well. Is there a way to stop the control from becoming so long, like a horizontal scroll bar in the list?
Read this [url http://www.objects.com.au/java/examples/src/examples/SteppedComboBoxExample.java]example
Here's its [url http://www.objects.com.au/java/examples/swing/SteppedComboBox.do]picture
ICE -
How to indent the 2nd line of a long string?
Hi all,
I would like to achieve something like below where the 2nd line will be indented automatically. How to do format this in Oracle Report? The "<--indent-->" below is to illustrate the indentation, which I can't show in this posting as the formatting is not supported.
Okuda, M., & Okuda, D. (1993). Star Trek chronology: The history of the
<--indent--->future. New York: Pocket Books.
Please advise.
Thank you.Yes, chr(10) can make the string break to next line, but that cannot fulfill my requirement.
What I need is a single long string that will automatically get indented for the 2nd line onwards when display in report.
I can't use chr(10) because I won't know when to break to next line because it does not have fixed rule that after which part should I break it to next line. I'm referring to bibliographic citation that normally display as indented for the 2nd line.
Hope you got what I mean. -
GP - How to display a long string value
I'm trying to display a really long string value and then allow the user a couple of result state choices (to either go back and do another search or finish).
None of the forms (WD, display, etc.) will display a really long string.
I tried using a loop type decision dialog, but there doesn't appear to be a way of having it pick up a parameter value as the message (or part of the message) to display.
I can get it to display in the complex type decision dialog, but I don't need the group/options and I can't seem to get rid of the second set of buttons that show up (the long string parameter value was put into the 'Info Texts' area and does display ok).
Is there any easy way of displaying the complete contents of a long string value and have buttons for results states? I'd even be happy if I could just display the whole string and use a separate callable object for the choices.
Thanks,
CindyI think you should try calling a JAVA or ABAP Webdynpro as the callable object. As you know, we can display long texts in the webdynpro fields. Other alternative is an Adobe form as well.
Cheers,
Mandrake -
Automatic trim of too long strings
Hi,
if I try to insert a too long string value into a VARCHAR column, I get the error ORA-12899.
Is it possible to set the Oracle database so that too long strings get trimmed automatically?
Thank you.Hi,
Welcome to the forum!
Unfortunately, there's nothing quite like what you want in Oracle.
Even if you write a trigger to cut off the excess, you can still get the ORA-12899 error. For example, if table_x.col_1 is defined as VARCHAR2 (10), this statement:
INSERT INTO table_x (col_1) VALUES ('ABCDEFGHIJKLMNOP');will get the error, even if you have a trigger that says
:NEW.col_1 := SUBSTR (:NEW.col_1, 1, 10);You could define col_1 as VARCHAR2 (4000), and have a trigger that includes the statement show above, to make sure that the actual values will be 10 characters or less. You cound even have a CHECK constraint (LENGH (col_1) <= 10).
Think carefully about what Someoneelse said. Do you really want to throw away part of what users enter, automatically and without any warning? Will that cause confusion?
Maybe you are looking for
-
Install oracle 8.1.7 on linux 9.0
I want to install oracle 8.1.7 on linux 9.0,but where I run ./Disk1/runInstaller,show a error like 'symbol errno,version GLIBC_2.0 not defined in file libc.so.6 where link time reference (libzip.so) Unable to initialize threads:cannot find class java
-
So I've been editing this documentry for a studio: It was all shot on a Sony XDCam EX at 1080p 24fps and its being cut on FCP 6.1. Now my issue is the studio primarily works on a PC platrom and i need to know which codecs native to FCP i can render o
-
Hi, I am developing a mobile application and I wanted to test it on a real device, so I choose Samsung S5570, because it has Android 2.2 and I read that this Android version is compatible with Adobe Air. When I wanted to install adobeair.apk, on Mark
-
I have about 1800 pictures which i resized and stuck in a folder to sync, they are about 100mb total, but when I sync them to my iPod with iTunes it creates a cache folder that is 1.3gb. Why is it so large and can I turn off the cache folder? Thank y
-
My touchpad (mouse) stops working when I connect it to the power cord?
It works fine when It's not connected to the power cord... but as soon as I connect it and I try to use my touch pad it just goes erractic and like I can't click anything and it's just unusable. What can I do to fix this (aside from buying a new pow