|
|
|
Re: HOW TO RESTRICT TEXT ITEM INPUT [message #426686 is a reply to message #426675] |
Mon, 19 October 2009 00:24 ![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) |
fci_mohamed
Messages: 5 Registered: October 2009 Location: egypt
|
Junior Member |
![fci_mohammed%40yahoo.com](/forum/theme/orafaq/images/yahoo.png)
|
|
Thank u for your interest,
I try this process before and work as required, but i want if the user try to type for example character(;),text item don`t accept this trying, not wait until the user finish inputing process then check entered string.
I want the process of check to be performed char by char entered.
Thanks for u again.
[EDITED by LF: disabled smilies and changed font case from UPPERCASE to Sentence case]
[Updated on: Mon, 19 October 2009 03:23] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: HOW TO RESTRICT TEXT ITEM INPUT [message #431110 is a reply to message #430190] |
Sun, 15 November 2009 01:49 ![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) |
fci_mohamed
Messages: 5 Registered: October 2009 Location: egypt
|
Junior Member |
![fci_mohammed%40yahoo.com](/forum/theme/orafaq/images/yahoo.png)
|
|
hello 4 all,
i partially solved the problem as following:
1- write this code in the WHEN-NEW-ITEM-INSTANCE trigger
DECLARE
SEC_TIMER TIMER;
ONE_SECOND NUMBER :=1000;
F_TIMER TIMER;
BEGIN
F_TIMER := FIND_TIMER('ALARM');
SEC_TIMER := CREATE_TIMER('ALARM',ONE_SECOND,REPEAT);
END ;
2- write this code in WHEN-TIMER-EXPIREDtrigger
DECLARE
TEMP VARCHAR2(1);
TEMP1 VARCHAR2(25);
CURR_VALUE VARCHAR2(1);
N NUMBER;
SEC_TIMER TIMER;
BEGIN
FOR I IN 1..LENGTH(:LOC)
LOOP
TEMP := SUBSTR(:LOC,I,1);
CURR_VALUE := TEMP;
IF (ASCII(CURR_VALUE) NOT BETWEEN 65 AND 90)
AND (ASCII(CURR_VALUE) NOT BETWEEN 97 AND 122) THEN
TEMP1 := REPLACE(:LOC,CURR_VALUE);
:LOC := TEMP1;
SET_TIMER('ALARM',100,REPEAT);
END IF;
END LOOP;
END;
3- write this code in POST-TEXT-ITEM trigger
DELETE_TIMER('ALARM');
this code is already tried and work properly, but there is some problem that if u type in text item first time it work and no errors occured but if u try to type another time as to edit data in this text and erased all data in the text box this code will not work as previously, could any one help me to solve this problem?
thanks 4 all...
|
|
|
Re: HOW TO RESTRICT TEXT ITEM INPUT [message #431111 is a reply to message #431110] |
Sun, 15 November 2009 01:59 ![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) |
|
Hey FCI
Quote:try to type another time as to edit data in this text and erased all data in the text box this code will not work
I tried two three times its working tell me the exact walkthrough where its not working.
JAK
|
|
|
|
|