Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
on Mar 20, 2013 5:10 PM by InoL
Mar 20, 2013 4:39 PM
The user should enter exactly 4 digits.
I created an item text ,*number*,*maximum length*=4
I created this function:
FUNCTION numeric (v in varchar2)RETURN boolean IS
if NOT numeric(:block.item) then
=> when I entered *0123* or *1234* should be acceptable ..but always the message displayed is "invalid item"
This content has been marked as final.
Show 1 reply
Re: Regular Expression
Mar 20, 2013 5:10 PM
in response to
The value 0123 is not a number, but a character. So, your item cannot not be NUMBER, but has to be CHAR.
But it is way easier to use standard Forms functionality for this. Create a Char item with these properties:
Maximum length = 4
Fixed Length = Yes
Format Mask = 9999