This content has been marked as final. Show 5 replies
979155 wrote:As salamualikum,
I want to make a verification of an item text ,the user must enter a number of length 4.
So I created a text item :number(4).
and in when-validate-item trigger of this item ,I put this code:
if length(:block.empno) != 4 then
message('this item must containonly 4 digit');
=> the problem, when the user entered "*0123*" ,it should be acceptable !! but this is not the case ...
In a number format data type you cannot insert *0* at first number. but you can display.
979155 wrote:I don't know is there any property name fixed length in form release 10g
I don't found this property : fixed Length = Yes. !!
Fixed length property is obsulate from 10g and later. just use format mask with the relevant data type works...
Check this link http://docs.oracle.com/cd/B12166_01/web/B10469_01/props.htm
Hope this helps
Edited by: HamidHelal on Mar 21, 2013 6:23 AM