FRM-50016: Legal characters are 0-9-+E [message #418331] |
Fri, 14 August 2009 03:58 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
hssk12
Messages: 4 Registered: August 2009
|
Junior Member |
|
|
In Oracle Forms6i I Have a Item which is Number Datatype. When i Enter Characters it is saying the following error
FRM-50016: Legal characters are 0-9-+E.
That is it says us to enter only numbers as it is number datatype. How to
check for it if i write characters.
Can anyone help me
|
|
|
|
|
|
Re: FRM-50016: Legal characters are 0-9-+E [message #418345 is a reply to message #418331] |
Fri, 14 August 2009 05:08 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
hssk12
Messages: 4 Registered: August 2009
|
Junior Member |
|
|
Hi
Sir,
This is my table
create table convey_reg(
sl_no number(15) primary key,
doc_date date not null,
doc_no number(7) not null,
emp_sl_no number(14) not null references emp(sl_no),
from_date date not null,
to_date date not null,
mode_tr_sl number(14) not null references dcode(sl_no),
amount number(14,2)
);
I am facing problem in the coulmn mode_tr_sl,actual this column is referenced to dcode(sl_no),so while entering data
i have to enter code,after entering code it should save to sl_no.
Thanks
|
|
|
Re: FRM-50016: Legal characters are 0-9-+E [message #418366 is a reply to message #418345] |
Fri, 14 August 2009 07:09 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
hssk12 wrote on Fri, 14 August 2009 11:08 |
I am facing problem in the coulmn mode_tr_sl,actual this column is referenced to dcode(sl_no),so while entering data
i have to enter code,after entering code it should save to sl_no.
|
What code from where?
I suspect you need to use a list item. That'll allow to to display one value on screen but store a differennt value in the database.
|
|
|
Re: FRM-50016: Legal characters are 0-9-+E [message #418368 is a reply to message #418331] |
Fri, 14 August 2009 07:27 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
hssk12
Messages: 4 Registered: August 2009
|
Junior Member |
|
|
Hi
Sir,
This is my coding for that column
KEY NEXT ITEM
declare
a number(14);
begin
select sl_no into a from dcode where sl_no=:convey_reg.mode_tr_sl;
exception
when no_data_found then
g.cent(sqlerrm);
end;
(But i should not use list item,without list item i have to do)
Thanks
|
|
|
Re: FRM-50016: Legal characters are 0-9-+E [message #418375 is a reply to message #418331] |
Fri, 14 August 2009 07:45 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
1) Validation code should go in WHEN-VALIDATE-ITEM not KEY-NEXT-ITEM. KEY-NEXT-ITEM can be bypassed (with the mouse for starters).
2) Variables should always be typed to the database column they're populated from. So:
Should be:
A more meaningfull name than a would also be a good idea.
3) what datatype is dcode.sl_no?
4) How is any of this relevant to wanting to enter characters in a number field?
|
|
|