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.

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

  • Help for designing the same forms like Oracle form!!!

    Hi everyone!
    I am working for some projects and now I want to make a form like Oracle form, there are some features in Oracle form that I don't know how to do the same so I would like to ask someone here. Please help me to design form like the form I mention below. I mean when I open my form, it must be the same with Query Material after that I press Enter then it must be the same Material Workbench form. Please help me!!! Thanks in advanced.
    Inventory => On-hand Availability => On-hand Quantity, it will display Query Material Form then Enter after that it will display Material Workbench.

    Hi, welcome to the forums. Please take a few minutes to reveiw 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>
    If you follow these general guidelines, you will greatly increase your chances of getting a solution to your question in a shorter period of time. While your questions may make sense to you - when you post a question here, you have to remember that we do not have the same point of reference as you. You can't assume we will understand vague references like *"I want to make a form like Oracle form"*. I've seen so many different UI variations in Oracle Forms that a blanket statement like this has no meaning. The only thing that limits the funtionality of a Form is your imagination.
    Perhaps, after reviewing the aforementioned articles, you could provide us with some basic information like your Oracle Forms version, Browser and version, OS and version and a more detailed description of the type of functionality you are trying to emulate. With this information, we (the Forum participants) will be better able to help you.
    Regards,
    Craig...

  • 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

  • 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

  • Not able to use SRW.USER_EXIT in oracle forms.

    Hi,
    Below is my requirement in oracle forms:
    I have a query form, which has Inventory Category Set field and Category 'From' and 'To' fields. Based on the values selected by the user for Category Set, possible combinations for Categories should be displayed in Cateogory 'From' and 'To' fields. Upon clicking the 'Find' button, only the items which belong to this category set and the range of Cateogies selected should be displayed.
    Note that 'Item Categories' Key flex field should be used here. Number of Segments for each Category set will differ. To acheive this, I have attached the Key flex field to the Cateogory 'From' and 'To' fields.
    In the PRE-QUERY trigger of the datablock, I have to use where condition to filter the items based on the category sets and categories. This where condition should be generated dynamically based on the search criteria.
    In oracle report, we have provision to use the below USER_EXIT to get the where condition to append to my PRE-QUERY statement.
    SRW.USER_EXIT('FND FLEXSQL CODE = "MCAT"
    OUTPUT = ":P_WHERE_CAT"
    APPL_SHORT_NAME= "INV"
    MODE = "WHERE"
    DISPLAY = "ALL"
    NUM = ":P_STRUCT_NUM"
    TABLEALIAS = "MCA"
    OPERATOR = "BETWEEN"
    OPERAND1 = ":P_CATEGORY_FROM"
    OPERAND2 = ":P_CATEGORY_TO"');
    But in forms, I am not able to use this USER_EXIT. Please let me know the alternate ways to get the where condition dynamically in forms.
    Thank you in advance.
    Regards,
    Kalyan

    RAISE APPLICATION_ERROR built-in is raised in a DB procedure/function or trigger.
    You can write an ON-error trigger that will trap any DB error messages
    or
    You can use Dbms_Error_Code & Dbms_Error_Text for trapping the Error.

  • Urgent : i am not able to coonect the report through oracle forms  10g

    i created a report "test1" through oracle report 10g and calling from oracle forms 10g
    i tried to run the report from forms builder but i am getting the following error
    "server can not connect 41213 error"
    from run mode i already given the following command for running the report server
    rwserver server=rep_fsprod
    The help is saying like that
    cause:  There is a problem connecting to the specified Report server. Action:  Check the Report server and make sure it is up and running. Level:  20
    Any pleae provide me the necessor setting for this issue and give me some good reselution
    But i am not sure where is the problem
    If anybody thats will be helpfull for me. please provide the step that i need to take
    the following are the code
    ------------------------------------------------------------>
    Declare
         PL_Id     ParamList;
    v_Report VarChar2(30) := 'TEST1';
    v_Rep_Id Report_Object;
    v_Rep_Job_Id VarChar2(100);
    v_Job_Id VarChar2(100);
    v_Rep_Status VarChar2(100);
    v_Rep_URL VarChar2(1000);
    v_Host_Name VarChar2(100) := 'localhost';
    v_Port     VarChar2(100) := '8889';
    v_Rep_Server VarChar2(100) := 'abc';
    Begin
    PL_Id := Get_Parameter_List(v_Report);
    If Not Id_Null(Pl_Id) Then
    Destroy_Parameter_List(Pl_Id);
    End If;
    Pl_Id:=Create_Parameter_List(v_Report);
    Add_Parameter(PL_Id, 'Usr_Id', Text_Parameter, 'cms');
    Add_Parameter(Pl_Id, 'ParamForm', Text_Parameter, 'NO');
    --Find Report Object
    v_Rep_Id := Find_Report_Object('TEST1');
    --Communication Mode
    Set_Report_Object_Property(v_Rep_Id, Report_Comm_Mode, Synchronous);
    Set_Report_Object_Property(v_Rep_Id, Report_Desformat, 'HTML');
    --Handled Destination Type and Name
         Set_Report_Object_Property(v_Rep_Id, Report_DesType, CACHE);
    --Specify Report Server and Report File Name
    Set_Report_Object_Property(v_Rep_Id, Report_Server, v_Rep_Server);
    Set_Report_Object_Property(v_Rep_Id, Report_FileName, v_Report);
    --Run Report
    v_Rep_Job_Id := Run_Report_Object(v_Rep_Id, PL_Id);
    v_Rep_Status := Report_Object_Status(v_Rep_Job_Id);
    If v_Rep_Status = 'FINISHED' Then
              v_Job_Id := SubStr(v_Rep_Job_Id, length(v_Rep_Server)+2);
              v_Rep_URL := 'http://' || v_Host_Name || ':' || v_Port || '/reports/rwservlet/getjobid' || v_Job_Id || '?server=' || v_Rep_Server;
    Message(v_Rep_URL);
                   Web.Show_Document(v_Rep_URL, '_blank');
    Else
         Message('Error Running Report');
    End If;
    End;
    ------------------------------------------------------------>

    i am facing same please do some favour me for this report issue

  • 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

  • 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

  • Generate DB DOC functionality should be able to specify a schema like TOAD.

    I have created a request for this previously. I was hoping it wold be in the next release.
    Its awesome to be able to specify a schema if you have the rights to generate documentation for it.
    Generate DB DOC functionality should be able to specify a schema like TOAD.
    Description I like the Generate DB DOC functionality.
    It only seems to work for the account you are connect to.
    I would like to see it work more like TOAD in that you could specify a schema and see the layout of that schema without having to find the account for it if you have rights to the objects via SELECT_CATALOG_ROLE or SELECT DICTIONARY_ANY or whatever objects you have rights to..
    This is good for admins who have dictionary rights but now the password of the schema or a person who has been granted rights to a particular set of objects..
    Looks like I got to sign onto TOAD to do this one for now since I don't know the schema password..

    Hi,
    You can submit any feature requests at Oracle SQL Developer Exchange - https://apex.oracle.com/pls/apex/f?p=43135:1:2266866887402592:::::

  • The IPHONE 3GS Rom computer was able to charge, I would like to ask is how my phone?

    The IPHONE 3GS Rom computer was able to charge, I would like to ask is how my phone?

    Please explain.  This makes no sense to me at all.

  • When will Adobe Reader Touch App for Surface be able to draw on documents like the desktop application?

    When will Adobe Reader Touch App for Surface be able to draw on documents like the desktop application?

    We have noted down your feature request. We might consider providing support for drawing on PDFs in our upcoming release.

  • How would i be able to convert music files, like wma to mp3 on my mac

    how would i be able to convert music files, like wma to mp3 on my mac

    If the music was just purchased on the iPod from iTunes Store, then sync with iTunes. You will be prompted to transfer purchased items to iTunes. You can also re-download prior purchases directly in iTunes: Download past purchases.
    Otherwise, you will need a third-party utility for the chore such as Pod To Mac or Pod To PC.

  • How to Create a ADF Form same like in Oracle Forms

    Hi,
    I need to create a Form in ADF where in on the top I have two text fields with LOV and one Text with out LOV and a button. Selecting values from the first two should populate the value of thid text
    and pressing the button should actually populate the fields below.
    Below I have several other fileds of which few are queried from the database and other are calculated fields (aka like control fields in Oracle Forms).
    Now I am a Forms Developer and know quite a few things in ADF as well, like creating Master Details Forms and some of the work flows. Some basic functionaliy.
    I want to make an attempt to create something like this which is created in Oracle Forms.
    What I have tried as of now is create a query and added LOV to first Text. Displayed all the fields as ADF form and on top I have put a ADF Query panel , using this I am able to populate few of the columns.
    Can someone tell me what is the best way to do the things which I have mentioned.
    TIA

    Hi,
    If your need is to auto populate other employee fields of the page based on previous 2/3 fields like deptno, empno, loc, then you can achieve this with button action listener. You can add runtime bind variables to your view object and set them with user input values and execute query.
    for e.g, you can add below code in your AMImpl class and expose it to UI and invoke it from UI (from page, create a managed bean and call AM method)
    /***** Sample code only*****/
    public void refreshVO(Integer EmployeeNo, Integer DeptNo, Integer locNo)
    ViewObject vo = this.getEmployeeVO();
    vo.setWhereClause(null);
    vo.setWhereClauseParams(null);
    //Adding empNO where clause
    vo.setWhereClause("employeeno = :empNum);
    vo.defineNamedWhereClauseParam("empNum", null, null);
    vo.setNamedWhereClauseParam("empNum", EmployeeNo);
    // similarly add logic for DeptNo, LocNo and you can additional check if they are null or not null
    vo.executeQuery();
    Regards,
    Ravi Nuka

Maybe you are looking for

  • Help with Intranet DB app..

    I am looking into Oracle for building an intranet database application for at most 10 users and ~1GB database. I am having trouble determining which licenses I would actually need. I just want to be able to add,edit, and feed sql queries into pre-gen

  • B110a won't upgrade nor show ePrint email

    Hi there, I'm having a difficulty getting my B110a printer to work through ePrint. The printer is connected to the WiFi and can print any document from any computer within that network no problem. I wanted to start using ePrint though, so wanted to c

  • Calendar Invitation Time

    I face problem with my iPad its in sync with Exchange 2003 when ever I receive an invitation in my iPad I got the Time 12 Hours earlier, like if the invitation request time is 9:00 AM I got it in my iPad 9:00 PM of the previous day! How can I solve t

  • How do I stop quicktime from playing mpg in firefox?

    I want quicktime to NOT play mpg files in firefox. How can I add a mpg file to the applications section of FF to setup this properly?

  • ScrollPane, only vertically

    Hello, I have as ScrollPane with a JPanel inside it. The JPane inside has flow layout and I add some components in there. At the moment all the components end up in one long row. I'd like them not to expand the JPane horizontally, when they reach the