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

Similar Messages

  • 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

  • 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

  • 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.

  • 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

  • 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

  • Regarding Triggers in Oracle Forms

    Hello Gurus,
    Please help me .I am very new to Oracle Apps .I got the requirement from my client. Iam a technical developer .Please see the below requirement.
    Order Management Super User >>
    Pricing >>Price Lists >>Price list Setup
    When an item is created in the Price List Form ie.(Reatil) and saved it .The same item should automatically appeared in COST and ZERO DOLLAR Forms . Except Price value.
    Iam planning to do triggers.Can any one help me to create triggers ..step by step procedure .or Please give me any suggestions to done this requirement.Please help me .
    Best Regards,
    Sandeep

    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

  • 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

  • Oracle forms standard/default menu - Record Delete option

    Hi ,
    Oracle forms provides a standard menu with the below options.
    Action , Query , Block , Record , Help etc.
    Under each of these Menu options there are sub options.
    Eg: Under Record we have Previous , Next , Insert , Delete etc.
    Can someone please tell me how to control this menu item options for different forms.
    Eg: for 1 form i want to allow the Record - Delete option but for another form i dont want to give this option.
    How to do this ??
    Please help....
    I tried to search for the solution but couldnt get the right answer. Hope someone will help me out here.
    Regards,
    SRT

    Hello,
    The Oracle Forms documentation states:
    The Default menu is built-in to every form, and is not a separate menu module.
    You cannot change the structure of the Default menu or edit the menu items it
    displays.
    If your application requires
    unique menu functions, you must create a custom menu module and attach it to
    your form.
    If the internal default menu almost meets your needs, you can attach the
    "menudef.mmb" approximation of the default menu to the form. You can then
    rename and edit this menu.
    You can download the demo version for 10g R2 and menudefs_10g.mmb is included with the demos.
    http://download.oracle.com/otndocs/demos/Forms_Demos_10gr2.zip
    You will get menudef_10g.mmb and menudefs_10g.mmb.
    If needed check metalink note:
    Differences between menudef.mmb and menudefs.mmb menu files. [ID 1081136.1]
    Kind regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly.

  • 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,

  • Regarding installation and usage of oracle forms 11g on windows 7

    dear all,
    i am new to the oracle forms and reports feature. i tried installing forms and reports following certain steps which i could find from the internet, but it could not be installed.
    i ended up crashing my system.can anyone of you help me in providing the step by step installation of oracle 11g forms and reports on windows 7 64 bit.
    regards,
    sreejith

    When I was cleaning my email account i noticed message from OTN forum. I forgot to reply :/
    I followed instructions from the message above and it worked. Oracle XE + PPRD (only forms to save disk space and RAM) + weblogic, i have also installed APEX 3.2.1. It all works at my win 7 system
    There where one bug in forms builder database connector, solution was to replace it with the file from SQL*Plus (AFAIR it was tnsnames.ora file)
    So thank you Chris999, you helped me a lot.

  • URGENT:regarding oracle forms

    i created a form to insert data into a table in apps.i have customized the form and registered it in front end.When i try to insert a record to the table through this form ,the same record is inserted twice in the table.why this is happening.

    There are many references, both within Oracle and on the Internet.
    Oracle® HTTP Server Administrator's Guide
    http://download-west.oracle.com/docs/cd/B14099_19/web.1012/b14007/toc.htm
    Oracle® Forms Services 10g Advanced Configurations
    http://www.oracle.com/technology/products/forms/pdf/10g/advancedformsconf.pdf
    How to use FORMS with FIREWALL and PROXIES
    Metalink Note 291606.1
    Apache Module mod_proxy
    http://httpd.apache.org/docs/2.0/mod/mod_proxy.html

  • Regards sending text sms from oracle forms 10g

    Do anybody know about sending the sms from oracle forms.If anybody had means please send me the script......

    Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>Announcement: Forums Etiquette / Reward Points
    </ul>
    Do anybody know about sending the sms from oracle forms.If anybody had means please send me the script...... This is a commonly asked question. Have you tried searching the forum for possible solutions? Take a look at this search result. I would also recommend you take a look at the Oracle Forms Services 11g web page and scroll down to the Oracle Forms 11g calling a web service link. This is a white paper published by Grant Ronald that specifically describes the process of sending SMS from Oracle Forms.
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Null Validation in Tabular Form in APEX 4.2.2

    Hi to all respected Gurus of this Forum!
    Recently downloaded APEX 4.2.2. As we know that this version has some improved features and one is the best is i.e. *"Validation on Tabular Form".*
    For test purpose I succeeded to apply validation on field of tabular form and I am not allowed to "SUBMIT" data as per Validation Rule.
    But now, I want to customize that validation as per below logic.
    If required field is null than a message-box should appear with two buttons , as under:
    Blank field not allowed. Do you really want to submit? (Buttons should be = YES NO)
    If user press "YES" then validation should be false and record should be saved
    AND
    If user press "NO" then no data should be submitted/inserted as per validation logic.
    Please help. Your as usual cooperation is highly appreciated in advance.
    Regards
    Muhammad Uzair Awan
    ORACLE APEX Developer
    Pakistan

    Hello Sabine,
    >> I read about enhanced validation in 4.1 and would love to get rid of g_f-programming.
    The major “trick” is to associate the validation/process with a Tabular Form. On the first screen of both wizards, the first field is Tabular Form. You must select the tabular form on your page (currently there can be only one. In future versions this will change).
    Another factor that might influence the behavior of Tabular Form validation/process is the new attribute of Execution Scope. Unfortunately, you must enter Edit mode to gain access to this attribute (i.e., it can’t be set directly from the Tabular Form create wizard). Set it according to your need.
    The rest is very simple. You should treat your Tabular Form as a simple form, where every column header stands for a form item. The following is a very simple example of validating the SAL column:
    if :SAL < 1500 then
      return 'Sal Value is under 1500';
    else
      return null;
    end if;In this validation I’m using the Function Returning Error Text type.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

Maybe you are looking for

  • Advice on sequence settings - frame size for VHS video in FCP

    Hello, I was hoping that I could get some advice on editing and output for video captured from VHS Tapes to ensure the best quality possible. My current workflow to digitize the VHS tapes is: VHS signal from JVC S7600u with TBC into ADVC 300 (no de-i

  • Error while creating candidate (Message no. HRRCF0001155)

    Hi experts, I am launching recruiters page thorugh NWBC. While creating external candidate application, I am getting this error - Error while creating candidate Message no. HRRCF0001155 In SLG1, below is error analysis - @5C\QError@ Error while creat

  • Doubt in File to idoc scenario

    Hi All, My scenario is to post the Customer Master Idoc  in R/3 from file. XI configuration has done and R/3 settings were made and i am able to see the idoc in R/3 but it is with error saying that "Account group in the IDoc is different". Kindly sug

  • Which monitor for mac pro and FCP

    Hi, I'm using a quad core mac pro with a Dell 2407wfp. In this setup I mainly do FCP editing. The monitor is 4 years old and I like to replace it for a larger one. I recently saw a setup with a Samsung P2770HD full hd and a tv tuner on board. Will th

  • The best import setting?

    Hi, I'm hearing conficting info from friends as to the best import setting on iTunes; AAC Encoder or MP3 Encoder? What do ya'll have your settings on? Thanks! craftychick