Test box validations in oracle forms

hai friends,
i want to validate my text box. my text box should accept only alphabets neither the numbers nor the special charcters. if we press any number key or special character key, it should not accept or display in the text box. i want solution for this. please help.
--ajay.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Hello,
What is your version (should be indicated on each post...)
If web version, there is a PJC available ont the Forms Page on OTN that do the job
http://www.oracle.com/technology/sample_code/products/forms/index.html
Watch the KEY FILTER solution.
Francois

Similar Messages

  • Regarding validation in oracle forms

    I have a requirement that in oracle forms i need to validate that i enter the data in one record and the same data in next record also with the checkbox checked for both rows . And when i enter the same data in next record i.e 3rd record it should not allow to checkbox for 3rd record.This should be the frond end validation in oracle forms .
    My requirment looks like this
    A B C --> columns in oracle forms
    1 ab ab --> checkbox checked
    1 ab ab --> checkbox checked
    1 ab ab ---> when i check the checkbox it should not allow as only any of the two rows only should be checked
    Please help me out?
    Regards
    Prasad

    hello
    Change/ modify the properties of the check box item;
    for the check boxes :
    1. Make the data type of the check box as number;
    2. fill the functional a.)value when check = 1 b.) value when uncheck = 0;
    3. add new item to summarize the value of the checkbox;
    change properties of the new added item
    datatype number;
    calculation summary
    summary function :- sum
    summarize block :- your block
    summarize item :- your check box item.
    used :----> when checkbox change trigger
    if nvl(:item_summry,0 > 2 and //double entry of data then
    your code......
    .... message..
    raise..
    else
    your code.....
    end if;
    For Duplicate Item data entry :-
    see this for the duplicate entry for item :-
    duplicate records in  a multi record block
    modify my given code & modify the said link information to satisfied your requirement.
    charles

  • Validations in Oracle Forms 6i

    Hi,
    Can anybody please let me know how do we use phone and email validators in Oracle Forms 6i for textitem.
    and what is the format for phone and email and how do we create.

    hi
    you can validate the format of an email in the WHEN-VALIDATE-ITEM trigger
    by using a function stored in the db that checks if the format of the email is correct
    for example :
    FUNCTION is_valid_email(i_email IN VARCHAR2) RETURN BOOLEAN
    IS
    v_dummy NUMBER := 0;
    BEGIN
    SELECT 1 INTO v_dummy
    FROM dual
    WHERE regexp_like(i_email,'^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*(\.[a-zA-Z]{2,4})$');
    RETURN TRUE;
    EXCEPTION
    WHEN no_data_found THEN
    RETURN FALSE;
    WHEN others THEN
    RETURN FALSE;
    END is_valid_email;
    you can also use regexp for the validation of a tel number
    I hope that helps you.
    Frane

  • Text Item Validation in Oracle Forms 6i

    Dear All Seniors
    Please guide that how to do validation on text fileds in oracle FORMS 6i.
    I have form like that
    table name= emp
    columns:
    Code, Name
    Code is auto generationg and Name field manually data typed.
    now if
    code, Name
    1 Asim
    2 Asim // it should not take .
    please help.

    Hi,
    You mean it should not take dupliate names or it should not take "//"
    If you have a set of character that should not be there for this field try using instr function. You can check if the field contains any character you don't want to be included in the name field.
    If instr(:name,'A') > 0 then
    message('xxxxxxx');
    Regards
    Yoonas

  • Check Box item in oracle forms

    Hello experts,               I am new in oracle forms. I am using oracle forms 11g,weblogic server 10.3.5,oracle database 11g at windows 7 platform. I have a simple data block from base table.there is a tabular form is selected, It has four rows(records). Now I have to make 4 check boxes adjacent to records in data block in another data block.Now I have to make functionality in which only those records should be inserted into database table for which corresponding (in front of the record) check box is checked. Thank you regards aaditya.

    Hi,
    Commit_Form built-in function commits all the available data base fields.  So you have to use separate insert into statement to complete your task.
    Like...
    for i in 1 .. 4
    loop
         first_record;
         if :chk_box='Y' then
              Insert into <table_name>  values(field1,field2,....);
         end if;
         next_record;
    end loop;

  • How to develop a file dialog box in a oracle forms

    please help me its an urgent task,
    how to develop a file dialog box in a oracle 6i forms
    in html we will use <input type ="file"/> to open a dialog box,so that we can upload file to the server .similarly how to upload a file using oracle.

    For Windows there is a library that comes with forms d2kwutil.pll that contains a package win_api_dialog. use the open_file procedure.
    NOTE******** when you select a file from whatever windows directory you choose, it will change your working directory to that directory so right after that you will need to reassign your working directory back to what it originally was.
    Also, you will need to have d2kwut60.dll in the same directory as your d2kwutil.pll. Both come with Developer.
    Example code is
    v_runpath := win_api_environment.get_working_directory(TRUE);
    v_filename := win_api_dialog.open_file('Find File','C:\','*.*',TRUE, 0, TRUE);
    win_api_environment.set_working_directory(v_runpath,true);
    Hope this helps

  • Is LOV able to do real validation like Oracle Forms LOV?

    Dear JHeadstart Team,
    I am using JDeveloper 10.1.3.3 and JHeadstart 10.1.3.2.52.
    To simplify the situation, I explain the problem using scott schema.
    I created a page on the emp table and used a LOV on the deptno and check the lov for validation for the lov. I changed the query of DeptLookupView (which lov uses) and added a where deptno <= 30 to that, so lov just showed the department with deptno <= 30.
    Then, When I entered number 40 in the deptno field and pressed tab, the lov poped up with No rows found in that.I pressed the cancel button and the amount of deptno remained 40. I pressed Save and data successfully commited to database.
    It seems to me a little strange. This capability exists in the Oracle form and when we use lov for validation in the Oracle form it does not permit us to enter a value which does not exist in the lov. I expected to see that functionality here too. Am I wrong or Is it a bug in JHeadstart?
    If it is not a bug and this functionality is not supported in the JHeadstart, is there any way to achieve this functionality.
    Any help would be highly appreciated.
    Thanks in advance,
    Navid

    Navid,
    It is not a bug in JHeadstart, it is intended behavior of ADF Faces. The ADF Faces valueChangesListener that we use to validate and display the LOV window only fires when the user-entered value changed, since the last time the listener fired. When you cancel the LOV and click the Save button the listener no longer fires.
    Note however that you are implementing a business rule (deptno must be <- 30) in the view layer only, which is a bad practice. I suggest that you implement the same rule in Business Components and/or in the database.
    This way, the user will get an error message when he tries to save a value > 30.
    Steven Davelaar,
    JHeadstart Team.

  • Issue for Amount From_amt and to_amt  Overlapping validation On oracle Form

    Hi Expert's
    i need Help on Oracle Form side .
    PROBLEM :-
    i want to put Overlapping check On Fr_amt - To_amt in Oracle Tabular form in Modify MODE after execute query.
    for example : If suppose User key in 1st line Amout range is 10 -100 ,the after 1st line if user key in second line like amount range is 50 -80 or 10-50 then i want to ristrict them and popup the message :- Sales Amount should not Overlap ...
    --Here is my  code  which works only current record
    declare
    fr_amt number(10);
    l_curr number;
    begin
    fr_amt := :blk_name.from_amt;
    l_curr := :system.cursor_record;
    first_record;
    loop
    exit when :system.last_record ='true'
    if :system.cursor_record <> l_curr then
    if fr_amt between :blk_name.from_amt and :bl_name.to_amount then
    message('Sales amount should not be overlap');
    raise form_trigger_failuier;
    go_reccord(l_curr);
    go_item('blk_name.from_amt');
    end if;
    next record;
    end if
    end loop;
    go_record(l_curr);
    first_record;
    end;
    Note : Can anybody correct my code if you come across same problem.
    Thanks
    Abhishek

    Hi Dora ,
    Note : My form is in modify mode and execute query ,mean to every time after open form record always on screen
    so i want to check overlap value in form level only ..
    can u please check my code which i wrote same like you but its not working :
    PROCEDURE TEST IS
    m_loop1_rec number:=1;
    m_loop2_rec number;
    m_exit number :=0;
    m_last_Rec number :=0;
    m_loop_rec NUMBER :=0;
    m_from_amt NUMBER;
    m_to_Amt NUMBER;
    Begin
    go_block('CG$CTRL01');
    last_record;
    m_last_rec := :system.cursor_Record;
    first_record;
    Loop
    go_record(m_loop1_rec);
    m_from_amt := :CG$CTRL01.FR_SLS_AMT ;
    m_to_Amt := :CG$CTRL01.TO_SLS_AMT ;
    m_loop2_rec := m_loop1_rec+1;
    Loop
    go_record(m_loop2_rec);
    If (m_from_Amt between :CG$CTRL01.FR_SLS_AMT and :CG$CTRL01.TO_SLS_AMT) or (m_to_Amt between :CG$CTRL01.FR_SLS_AMT and :CG$CTRL01.TO_SLS_AMT ) then
    m_exit := m_loop2_rec;
    end if;
    exit when m_exit > 0;-- or m_loop_rec >= m_last_Rec;
    m_loop2_rec := m_loop2_rec +1;
    End loop;
    exit when m_exit > 0 or m_loop1_rec = m_last_Rec -1;
    m_loop1_Rec := m_loop1_rec + 1;
    end loop;
    If m_exit > 0 then
    go_record(m_exit);
    message(' This range overlaps with previously entered ranges');
    RAISE form_trigger_failure;
    end if;
    --END IF;
    END ;
    Thanks
    Abhishek

  • Decimal Point Validation in Oracle Forms 6i

    One of my table has a column named interest. Data type of this column is number (4,1) so it can hold 99.9 and 100 both.
    If user enters 9.99, oracle form accepts the values and rounds it to 10. When scale defined for this data type is 1 so user shouldn’t be allowed entering 2 digits after decimal.
    I would like oracle to give error stating that user can enter upto 1 decimal place only so 9.99 is invalid input. Is there any function in oracle form (D2k)that let you know how many digits user has entered after decimal?
    Is there any function in oracle form (D2k) that let you know the length of input ?

    Hi
    Why don't u use Format mask property for the same,so it will not allow user for wrong i/p
    alternatively use forms message to display pop-up .
    Rgds
    NP

  • Check Box Validation in Offline Form

    Dear Experts,
    I have a requirement in an offline form where I have six check boxes, and out of the six check boxes
    user can only select any three.
    Request you to please suggest how to achieve this.
    Warm Regrads,
    Upendra Agrawal

    Thanks a ton Shaira.
    Full points to you
    Just wondering  what is the "Validation Script Message" for each UI.
    warm regards,
    Upendra Agrawal

  • To Calculate total while check box enabled in oracle forms.

    hi All,
    I am Using Oracle 10g forms. I have a form developed with some 15 fields in it and 10 Records in it.
    i have a field called TONS and another CHECKBOX Fied.I have a TOTAL field which is located below to TONS field.
    Now By using this TOTAL Field, i wanted to calculate TONS for records only when CHECKBOX field is enabled.if CHECKBOX field is disabled then
    TOTAL field Should not calculate the Tons field. how can i do it? Pls Help me...
    Thanks in Advance.

    If I were coding this, I would use a Calculated field to total your TONS field. Your Calculated field total would be stored in a hidden field and your checkbox code would simply assign the value from the hidden field to your displayed total field or set the displayed total field equal to null depending on the state of your checkbox.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Oracle Forms 10g - logic for self-limiting dropboxes

    Hi all,
    I do not have any experience with Oracle Forms, and in fact don't even have it installed - what i'm trying to find out is whether something is feasible, and if so how hard it is to accomplish.
    I have three tables (we'll call them A, B and C). Table A is the main table, with 35,000 rows. There is a column that I use to join table A to table B, and another that I use to join table A to table C. Relationships and the SQL necessary for any queries are easy, but that's not the problem. What I am trying to figure out is how hard it is to set up a drop box on an oracle form where the user goes in, selects an item from Table A; the second and third drop boxes are then limited to what is being returned by the relationship mentioned above.
    A
    1 123
    1 234
    1 456
    1 789
    2 009
    2 008
    2 007
    B
    1 ABV
    1 FGJ
    1 KOP
    2 KLJ
    2 IIO
    2 KJO
    C
    1 **(
    1 ***
    1 **&
    2 (()
    2 (((
    2 $$$
    So if I select 123 from my Dropbox for Table A, then the second dropbox will only show ABV, FGJ, AND KOP and the third will have only **(, *** and **&.
    Any help would be greatly appreciated.
    Chris

    Hi Francois,
    I guess I should have explained my reasoning behind posting - I have a meeting this afternoon and was told that the person who develops these forms isn't able to take the time to make modifications to an existing form (which currently is all free text) to have it all these self-limiting drop boxes.
    So, given that it's possible, is it very complex, or is it similar to doing this sort of thing in Access or other MS products where you do a query in drop box B using the selection in A as the parameter?
    Appreciate your help
    Chris

  • Opening a secure web page from oracle forms for credit card validation

    Hi All,
    I searched for the topic in the forms forum but couldn't find a solution.
    Requirement: As per some compliance, our application cannot do a credit card validation from our forms application, instead we need to use a java code which a third party will provide ,it's an iframe (they say, i am layman when it comes to Java, don't know what is it), but they say that, within your forms application you call our iframe do the credit card validation over there get a token of response back from us and use this token as a confirmation in your application.
    Problem: I could not find a solution anywhere wherein i can call a web page from forms. Now, this web page should be modal, i.e. unless i close this page i cannot access my forms application. Please guide me if anyone has done that.
    Secondly if i could make it work, how will i communicate with this external web page, like getting back some token value and use it back in my forms application. I am completely clueless.
    As we are using Oracle designer for generating forms, we cannot use a bean type thing as designer does not have the bean-item type defined!
    Appreciate if anyone could provide me pointers for a solution to this problem statement.
    We are on forms 9i -- Version 9.0.2.11.0
    Edited by: the_wing_rider on Jul 8, 2011 5:10 AM

    The simple way to do it is to use a PJC (java bean) + apache httpclient library..
    If you have a webservice than you can use Axis library and wsdl2java to create java classes from wsdl.
    also you can use httpclient library to simulate http protocol (request/response actions)..
    (for example.. you have a credit card number.. you post this number to specified URL and then you parse the response from credit card validation server)..
    Post here some documentation (specification) on how to call the credit card validation .. (maybe it's a secure webservice?)
    Here you have a httpclient library documentation:
    http://hc.apache.org/httpcomponents-client-ga/tutorial/html/index.html
    Also you can implement bean area in designer.. If you need help I can post here how we do it in our project..
    also look here: Call webservice from PJC over https protocol
    regards
    Peter
    Edited by: Peterv6i on Jul 8, 2011 3:35 PM

  • Validation on unsaved records of block on oracle form.

    In my oracle apps standard form i've approx 8 blocks. i want to write validation on first block(T1) on base of unsaved or saved records on second block(T2).
    Data are only on oracle forms not in data base so i cannot use table.
    Whenever user moved from T2 to T1 then i've check how many unsaved record are there on base need to write validation.
    Its very urgent. Your immediate help would be appreciated.
    Thanks

    Thanks for replying.
    I've checked with GET_RECORD_PROPERTY but i'm getting status like NEW,CHANGED,QUERY.
    My questions is i wanna to make validation on T2 block un saved data.
    i want data values in T1 block.
    Regards,

  • Encounter problem when running test.fmx in Oracle form 11g

    I am new to Oracle form 11g and encounter a problem regarding testing the Form Services.
    I have Oracle form 11g (deployment mode) on my app server.  I opened 'Run a form on the web' and clicked 'Run form' to conduct a test with default values suggested by the screen.  Then I got the below screen showing 'An add-on for the website failed to run'.
    Is the problem in relation to IE setting? or is my set up of Oracle form 11g not OK?

    Hi ,
    This community is to discuss Weblogic Server specific issues, you can post this query Forms in for better response in the below link:-
    Oracle Forms (MOSC)
    Regards,
    Prakash.

Maybe you are looking for

  • Excise Paid Trader scenario with VAT

    Dear All ... I have a scenarion inwhich the trader quotes his price whcih includes excise duty & his commisssion.These are not known at the time of PO. eg PO price 100/- ( excise included)    VAT @ 4% 4 total PO value 104/- Now when i recieve manufac

  • How to read outlook mailbox and create corresponding e-mail activities in CRM

    On premises CRM 2013 SP1: current configuration for incoming and outgoing: all of the users in our organization use Microsoft Dynamics CRM for Outlook as the incoming and The E-mail Router is used to send outgoing e-mail that users create in Microsof

  • Urgent Report help needed

    Hi Guru's,                  I have a query which gives amount of calls for every month.But my requirement is i need to calculate current month calls/lastmonth calls *100.I need suggestion on how to get the last month calls for example                

  • External swf troubles

    Here's the skinny. I created a VERY simple site, main page, one button, and a second page with samples. Each sample is an external .swf with a fade in and fade out for nice transitions between each sample. If I go to the samples page and click on a n

  • Taking black and white pics with iphone 4

    Hello how do i take black and white pics and video on my iphone 4? are there youtube tutorials? can you make the video grainy? Thanks, Peter