Unique item validation

Good day apex user,
how can I make an item unique in apex 4 and it when insert the same data on the field which already exist and error message should appear??
regards,

Dear Sake1,
You have number of ways to check the unique values in ApEx.
1. You can apply the function return validation [Which is readily available in ApEx]
2. If you want to check on the fly you can use dynamic actions
3. If you want to do on your own you can do it by using JScript and AJAX
Lemme know if you have any queries
Thanks and Regards
Maheswara

Similar Messages

  • Mandatory item validation at a page level?

    Hi,
    We have a page where the list of mandatory items changes according to how some 'key' items are set by the user e.g. if they select option 1 on item 1 we need a different set of mandatory fields than if they set option 2 - setting option 1 in item 4, may imply that some further items are mandatory, In addition, some items become mandatory due to circumstances known only on the database. We have in excess of 40 items on this page. Once all mandatory items are complete, the status of the page is saved as 'complete' - the user can always save the page as 'incomplete'.
    We already have a database package that can check a table row to see if it is 'complete', it knows all the circumstances for when an items becomes mandatory and can produce a list of fields and the reasons why they have failed validation.
    Is it possible to call this db package during page validation and use it to perform 'item' validations i.e. identify the invalid items and place the appropriate message inline with them?

    Hi,
    You can create a pl/sql page validation where you call you procedure.
    begin
    package_k.proc_p(item1,item2,...,itemN);
    end;
    You should define the type of the validation, but it is very straight forward,
    Regards,
    Max.

  • Problem with Item Validation

    Hello,
    I am running an advanced tutorial: http://download.oracle.com/docs/cd/E14373_01/appdev.32/e13363/issue_track_ui.htm#BGBJCGIC
    and I have a problem with item Validation.
    Tutorial offers the following:
    You must manually create another validation to ensure that the Actual End Date is the same or later then the Start Date.
    To add a validation for the Actual End Date:
    1.Under Page Processing, Validations, click the Create icon.
    2.For Level, accept the default, Item level validation, and click Next.
    3.For Item, select Project Details: 50.P3_ACTUAL_END_DATE (Actual End Date) and click Next.
    4.For Validation Method:
    a.Select PL/SQL and click Next.
    b.Accept the default, PL/SQL Expression and click Next.
    5.For Sequence and Name:
    a.Sequence - Enter 50.
    b.Validation Name - Enter P3_END_AFTER_START.
    c.Accept the remaining defaults and click Next.
    6.For Validation:
    a.Validation - Enter:
    to_date(:P3_ACTUAL_END_DATE,:APP_DATE_FORMAT) >= to_date
    (:P3_START_DATE,:APP_DATE_FORMAT)
    b.Error Message - Enter:
    Actual End Date must be same or after Start Date.
    c.Click Next.
    7.For Conditions:
    a.Condition Type - Select Value of Item in Expression 1 is NOT NULL
    b.Expression 1 - Enter P3_ACTUAL_END_DATE
    8.Click Create.
    Is there a mistake in explanation? I did it 3 times already, very carefully! I ran the page, entered the date, which is After the Start date, and get the error message: Actual End Date must be same or After Start Date!!
    Thank you for your consideration...

    I got it solved. I don't know if this is documented(or a bug) but what I did was declare an exception and then raise it and put the form_trigger_failure into the exception handler rather than raise form_trigger_failure in the body.
    declare
    alreadyExists exception;
    begin
    -- select .....
    raise alreadyExists;
    exception
    when alreadyExists then
    message('.....exists');
    raise form_trigger_failure
    end;

  • Page item validation

    I created a page in APEX Express 4.2.3.00.08.  On the page there are two items: a text field named P55_KEY_ID and an LOV named P55_REASON with the values LOST, BROKEN, OTHER.  I created a dynamic action that enables P55_REASON when P55_KEY_ID changes. Our business rule is if P55_KEY_ID has been changed then P55_REASON must have a value, i.e. not null.  Can I define a validation on P55_REASON  with a condition to test the disabled property of the page item with javascript, if it is disabled then return false otherwise true.  Where would I place the following javascript?
    IF $x(‘P55_REASON’).disabled then
      Return  false;
    Else
    Return true;
    End if;

    What is the validation? What version are you in?
    There are some item validations that execute automatically based on settings like 'Required'.
    Date pickers has other attributes that can declaratively validate range.

  • Page item validation does not get removed

    Hi All,
         I had a page item validation defined on the page and later removed by deleting the validation in the 'page processing' in Application Builder. However, the validation still seems to execute at runtime. Can anyone tell me if it needs to be deleted from some other place as well.
    Thanks

    What is the validation? What version are you in?
    There are some item validations that execute automatically based on settings like 'Required'.
    Date pickers has other attributes that can declaratively validate range.

  • Item Validation on a Form - Receives ORA-0094: Invalid Idenitier error

    I'm fairly new to APEX and having an issue with an Item Validation on a Form receiving the ORA-0094: <Column Name>: Invalid Identifier error. I have looked at postings in this form on this error and tried many of the suggestions. I still can not get it to work. My lack of experience with APEX is not helping either.
    I'm using APEX release 2.2 with IE6.
    I'm trying to create a new Invoice in the Invoice table (CTS_INVOICE). The RFA Number for this invoice must be an active RFA record in the RFA table (CTS_RFA). Before I add the check for the RFA active status, I wanted to get the code that checks for the existence of the RFA record working first.
    After filling in the fields on the forms, click the Create button, and receives an error page with the following error ORA-0094: "RFA_NUMBER": Invalid Identifier.
    I have checked to make sure the table name, column name, and item name were correct with spelling and capitalization.
    Used the Wizard to setup the Item Validation.
    Type: EXISTS
    Validation Expression 1: Select 1 from CTS_RFA where RFA_Number = :P25_RFA_NUMBER
    Error message: Enter an active RFA number.
    location: Inline with Field and in Notification
    Associated Item: P25_RFA_NUMBER
    Any help would be greatly appreciated.
    Thanks,
    Vivian

    Vivian - Might the column have been created as a quoted identifier with mixed upper/lower case characters?
    Run this in SQL*Plus:
    select count(rfa_number) from cts_rfa;
    If that works without error then this is not the problem.
    Scott

  • Page copy seems to mess up item validation referenced fields in new page

    Hello team,
    this morning i create two pages as a copy of an existing page in Apex 4.0.1.
    This page contained 4 regions, each one containing 4 items, sort of:
    reg1
    P44_ITEM_A1
    P44_ITEM_B1
    P44_ITEM_C1
    P44_ITEM_D1
    reg2
    P44_ITEM_A2
    reg4
    P44_ITEM_D4
    There were field item validations defined on each pair of items P44_ITEMCn - P44_ITEMDn and each validation was associated with its corresponding field (the element attribute linking the validation with the error message visualization i mean).
    After creating the new page, i saw that some of these validations in the new page had lost their associated item attribute value or they were associated to the item with the highest item sequence, for instance P44_ITEM_A1 lost its associated item, while P44_ITEM_D1 was associated to P44_ITEM_D4.
    I just did this again a few seconds ago, so i am pretty sure this is a repeatable error.
    Flavio
    http://oraclequirks.blogspot.com
    http://www.yocoya.com

    Hi Flavio,
    I was able to reproduce this, of sorts. I created 2 regions each containing 4 page items, named in the way you describe. Then created item validations on all of those page items. Copied the page and the copied page contains some validations with a null 'Associated Item' value. Although, none were changed to a different item as you describe, in my test case.
    I have filed bug #10198224 for this issue.
    Thanks for reporting.
    Regards,
    Anthony

  • OB28 line item validations

    Hi Experts ,
    Please help me for the following scnerio
    My OB28 line item validation is as follows .
    Prerequiste
    BKPF-TCODE = 'FBVB' AND ( BSEG-KOART = 'S' ) AND (
    BSEG-BSCHL = '40' OR BSEG-BSCHL = '50' )
    check
    BSEG-SAKNR = '' "
    message
    Error! SAKNR is initialised. Please delete this line and re-create again.
    For the above scenario  I need validation as follows .
    <b>I am  implementing validation to ensure when user performed posting of parked document (tcode FBVB, FBV0), the field SAKNR is not being initialised with any value when the line items contained posting key(BSCHL) 40/50.
    ]As I am  unable to create a wrong document with the above scenario, I  need a program to create such an entry (this entry should not hardcode the information) so I could test if the validation rightfully trigger and stopped such wrong entry from being created.</b>
    may be I need to  write user-exit for the above scenario , how I can validate SAKNR field with value and with out value ,
    I debugged the program ZGGBR000 , and I inserted the field  SAKNR  with value , then the FI validation was triggered . but I want to implement the above bolded information.
    Please help me as early as possible.
    Thanks & Regards
    Mohan

    Hi Mohan,
    First of all, I'm not sure if you can park a FI doc without a GL a/c (SAKNR) in a productive system? and therefore what's the use of this validation??
    Anyways, you could change the values in the debugger (SAKNR = ' ') in program ZGGBR000 when you are trying to park a document. After changing values of the variables the validation should give you the correct error message.
    Other way is to write a BDC program with SAKNR = ' ' but before reaching the validation the standard program will issue an error message...so I dont think this would be the correct approach.
    Reward points if helpful.
    Regards.

  • Item Validation Organization is not Appearing in LOV in profile options

    Dear All,
    Item Validation Organization is not Appearing in LOV of the Profile options.
    OE: Item Validation Organization
    QP : Item Validation Organization
    Regards,
    John

    Hi,
    Enable profile 'FND: Personalization Seeding Mode', clear the cache and check if this solves your problem.
    --Sushant                                                                                                                                                                                                                                                           

  • Apexlib page item validation not shown correctly

    Good morning guys! I have a question concerning the Apexlib page item validations.
    Basically I just want to validate page item values and have errors displayed in a notification region on the very same page on submit.
    I set up the Apexlib, which works perfectly for reports. However, when it comes to the page item validations, I am always rerouted to the Oracle Error page.
    Do you know why or have you experienced similar problems?
    Here is a part of the debug code when the error page is initialized.
    Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.03: ...Process "ApplyMRU": MULTI_ROW_UPDATE (ON_SUBMIT_BEFORE_COMPUTATION) #OWNER#:VT_TBL_TOTHOLZ:CNT_TOTHOLZ
    0.04: Branch point: BEFORE_COMPUTATION
    0.04: Computation point: AFTER_SUBMIT
    0.04: Tabs: Perform Branching for Tab Requests
    0.04: Branch point: BEFORE_VALIDATION
    0.04: Perform validations:
    0.04: Branch point: BEFORE_PROCESSING
    0.04: Processing point: AFTER_SUBMIT
    0.04: ...Process "ApexLib-Before Computation/Validation": PLSQL (AFTER_SUBMIT) BEGIN ApexLib_Lov.clearLovNullValues; ApexLib_Item.validateItems; ApexLib_TabForm.validateColumns; -- ApexLib_Error.showErrorStack; END;
    0.06: Show ERROR page...
    If you have an idea please be so kind as to let me know!
    Many thanks,
    Seb

    Hi Peter!
    Thanks for having a look!
    I am using Apex 3.2 and Apexlib 1.6!
    Like I said, the report validations are functioning properly! It's just the error message is not displayed on the same page in a notification field. Instead the user is redirected to the original Apex Error Page when the error is caught.
    What validation do I want to carry out?
    I tried to verify the input of a text box with $APEXLIB_MAX_VALUE=10$.
    I thought it might be a minor problem, which I couldn't find. Already checked the installation of Apexlib twice. Seems to be alright.
    Best regards,
    Seb
    PS: Have a splendid WE

  • Whats Item validation org's significance?

    Hi
    I was trying to create a Sales Order and I was not able to find my item from the LOV. I was then told by a friend of mine that the item validation org parameter in OM setup>parameters shld be set to the item validation org.
    My qns are whts the diff between item validation org and item master org?
    Can they be same , if so wht are the disadvantages?
    why at all its reqd? (one answer I got was that to increase perf of OM module it helps restricting huge item list as in a master org and gives subset of saleable items alone)
    Thnx
    Partha

    Thanks for this information...
    We can specify only one Item validation org for one operating unit (OU) in Order management as well as in Purchasing.
    Say we have total 5 orgs in OU, one is ITM item master and others are ORG1, ORG2, ORG3 and ORG4. Suppose ORG1 is an Item validation org...
    Now if Oracle is going to validate attribute values against ORG1 only then problem may come... in case few attributes are controlled at organization level then same attribute can have different values in different orgs say the attributes are Purchasable and Customer order enables..
    If the item is not purchasable and not Customer Order enabled in ORG1 (Item validation Org).. then do you mean it can't be sold or purchased in that OU??... I don't think so...
    So I want to know what is the significance of having Item Validation Organization...ac
    Thanks
    Devendra Gulve
    http://functionalguy.blogspot.com
    Edited by: Deven.G. on Sep 2, 2010 12:04 PM

  • Failed Item Validation = Process Before Headers isn't run? (APEX 2.2.0)

    Hi, all,
    I have an item validation that fails. When the page reloads, I see the following in the debug output:
    Do not run process "P41_BEFORE_HEADER", process point=BEFORE_HEADER, condition type=, when button pressed=If that process doesn't run, a flag I used to decide whether or not to display certain Page 0 regions never gets set properly, resulting in a mess.
    Is there a way around this? The only thing that I can think of is to run the same code in a failed validation that gets run in my process. Is there a more elegant way?
    Thanks!

    I ended up finding Page rendering process doesn't run after validation error which basically says to make a PL/SQL region with an empty template and put any display-related PL/SQL there. I set the PL/SQL region's display point to "After Header", which is before any of my other regions.
    I have a bunch of P0 regions that get conditionally displayed based on session state items set in the "Before Headers" process. All of the items are cleared by an application After Footer process. I don't want to rely on the session state, however, as the user might navigate using the browser buttons on a failed submit, and that might produce odd results. Unfortunately, I've realized that the application-wide processes don't get run either.
    It seems that my option is just to create a PL/SQL function
    FUNCTION SHOW_REGIONS
    THIS_REGION BOOLEAN := FALSE
    , THAT_REGION BOOLEAN := FALSE
    , THE_OTHER_REGION BOOLEAN := FALSE
    and call that function from my empty PL/SQL region, passing in true values for the regions that I want to show. Either this function would set application-level items, or other functions to get the individual flags could be called from each of the Page 0 region conditional display code. I think I will do the latter, unless there is some better way.
    Thanks!
    Message was edited by:
    Don_84
    CREATE OR REPLACE PACKAGE BODY
        TEST_PAGE_0_CONDITIONS
    AS
        my_flag_one BOOLEAN := FALSE;
        my_flag_two BOOLEAN := FALSE;
        PROCEDURE SET_DISPLAY_FLAGS
                FLAG_ONE BOOLEAN := FALSE,
              , FLAG_TWO BOOLEAN := FALSE
        IS
        BEGIN
            my_flag_one := FLAG_ONE;
            my_flag_two := FLAG_TWO;
        END;
        FUNCTION GET_ONE
            RETURN BOOLEAN
        IS
        BEGIN
            RETURN my_flag_one;
        END;
        FUNCTION GET_TWO
            RETURN BOOLEAN
        IS
        BEGIN
            RETURN my_flag_two;
        END;
    END;

  • OE:Item Validation Organization - view only your Org Items in SO Item LOV

    HI All,
    I am trying to set a profile so that I see only the items in my Organization in the Sales Order Item LOV in Order Management when I create a sales order.
    Appreciate your input to achieve this.
    Thanks,
    Jo.

    Thanks for this information...
    We can specify only one Item validation org for one operating unit (OU) in Order management as well as in Purchasing.
    Say we have total 5 orgs in OU, one is ITM item master and others are ORG1, ORG2, ORG3 and ORG4. Suppose ORG1 is an Item validation org...
    Now if Oracle is going to validate attribute values against ORG1 only then problem may come... in case few attributes are controlled at organization level then same attribute can have different values in different orgs say the attributes are Purchasable and Customer order enables..
    If the item is not purchasable and not Customer Order enabled in ORG1 (Item validation Org).. then do you mean it can't be sold or purchased in that OU??... I don't think so...
    So I want to know what is the significance of having Item Validation Organization...ac
    Thanks
    Devendra Gulve
    http://functionalguy.blogspot.com
    Edited by: Deven.G. on Sep 2, 2010 12:04 PM

  • ORA-20001: Please define the item validation organization in the Parameters

    When Manual Inter company invoice is created following error is coming up and as per ‘Metalink’ the solution for this is to select correct operating unit for ‘Item Validation Organization’. Since there are no items involved [Standard Memo Lines used] I don’t need to setup this and so the solution don't work.
    ORA-20001: Please define the item validation organization in the Parameters window in Order Management
    ORA-06512: at “APPS.APP_EXCEPTION”, line 72
    ORA-06512: at “APPS.ARP_TAX”, line 8216
    ORA-06512: at “APPS.ARP_TAX”, line 8361
    ORA-06512: at line 1
    So can anyone help to avoid this error....
    Edited by: 936837 on Aug 8, 2012 1:04 PM

    936837 wrote:
    When Manual Inter company invoice is created following error is coming up and as per ‘Metalink’ the solution for this is to select correct operating unit for ‘Item Validation Organization’. Since there are no items involved [Standard Memo Lines used] I don’t need to setup this and so the solution don't work.
    ORA-20001: Please define the item validation organization in the Parameters window in Order Management
    ORA-06512: at “APPS.APP_EXCEPTION”, line 72
    ORA-06512: at “APPS.ARP_TAX”, line 8216
    ORA-06512: at “APPS.ARP_TAX”, line 8361
    ORA-06512: at line 1Please see these docs.
    Error: Please define the item validation organization in the Parameters window in Order Management [ID 1163873.1]
    Cannot Setup Salespersons [ID 344082.1]
    Thanks,
    Hussein

  • Unique item on tabular form

    Hi,
    Can somebody help me with a unique item on a tabular form.
    I have atabularform with 3 column. One column CODE must be unique. How should this be done??
    Regard,
    Ekas

    Add a unique trigger on the table, so the column can NOT be duplicate.
    Thank you,
    Tony Miller
    Webster, TX

Maybe you are looking for