Item Level Validation - on a page

I have condition where I have 2 item on a page. One is a check box and another Items is for entering the Number . I have to have a condition where When the Check box item is checked alone the next ITEM should run ITEM not NULL condition. If the Check box is left unchecked its ok for the ITEM to be NULL.

I have to check the condition for the "other ITEM" not to be NULL when "Check box ITEM" is Checked.
ITEM 1 - CHECK box
ITEM 2 - NUMBER
When ITEM 1 CHECK is CHECKEd
ITEM 2 should not be null.

Similar Messages

  • Adding item level validation to a field

    Hi All,
    I am new to Oracle APEX.
    I have a field named semester_code in my page and I want end user to enter only alphanumeric values. I want to create item level validation using regular expressions, but I don't know what expression to write for this purpose.
    Any help will be highly appreciated.
    Thanks
    Bilal

    Hi,
    Go to the validations section of the application builder (for the application you are working on)
    -> add item level validation
    -> select the field that you are trying to validate
    ->item string comparison
    -> select 'Item specified is alphanumeric' from list
    Chris

  • Item Level Validations on Submit

    Hello guys,
    I would like to use Item level Validations but I have a problem. When I submit the page from a button the Item Level Validations automatically fire, can I not run the item validaitons when a specific button is pressed and not 'on submit'? If so how...
    Thanks in advance
    Spam

    Hi "user502286",
    in APEX 4.0 you have more control if validations (also the built-in one for required) should automatically fire during submit or not than in previous APEX versions. It's all about the two new settings
    -) "Execute Validations" which is available in the "Action When Button Clicked" section of a button and
    -) "Always Execute" for validations
    Please consult the field level help for this attribute to find out how they should be set.
    Hope that helps
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • PO item level validation if create with ref to contract

    Hi
    Pl help me to fulfill the following client requirement:
    When user create the PO with ref to contract , system fetch the all data from the contract to PO at line item level, but in the PO, user is able to change the contract line item rate.
    Now contract line item rate is already fixed with vendor & PO creator should not allowed change this rate.
    Could you provide the any standard configuaration or development to restric the user to chage the PO line item rate if created with ref to contract
    Pl give me replay as soon as possible as it is very urgent
    Rgds
    Nishit

    Hi,
    First you have to create a separate document type which is to be used for creation of PO referring a contract . Than define functional authorisation to buyers going by the menupath -Materials management > Purchasing > Authorisation management > Define function authorisations for buyers-Function Authorizations: Purchase Order. Here enter the field selection key of the new PO document type you created . Than check the box "Display Prices" . Uncheck all other boxes .You can check reference to Contract against possible reference Objects. Than save . Than in the User id enter the User parameter EFB and allocate the aparameter to the user . Also remove other document types of POs except the newly created document type in user authorisations. This will prevent change of price field in the specific document type.
    Dhruba

  • Item Level Validation Not Working As Supposed To...

    Hi All,
    I have an item validation type: SQL(Not Exist) that checks whether the value in the id number field exists in the database when Create button is clicked. If the id number exists in the database then an error message is displayed in line with the field & the transaction doesn't go through; however, when this happens Apply Changes & Delete button appear & Create button dissapear. It's as if the record has already been inserted. I would like this validation to work like the Not Null validations.
    I repeated this process several times without success & now I can't even create a new user or update & delete existing ones - I get the error:
    ORA-06550: line 1, column 7: PLS-00428: an INTO clause is expected in this SELECT statement
    ORA-2015: User ID number already exists in the database.NB:The second message is the one I use whenever there's duplicates so, it's oracle reserved message. Any help is highly appreciated.
    Regards
    Kamo

    The buttons probably have conditions to appear if a certain item is not null. You can set this item to null as part of the validation, e.g.,
    :P1_X := null;
    ...but to do that you'd need to change the validation type to PL/SQL Function Returning Boolean and code the "not exists" logic into the PL/SQL block.
    Scott

  • Why item level validation can only execute function but not procedure?

    Dear all,
    When execute my form, some parameter values will be passed to the text items.
    Those values are the procedure name or function name for that particular item which are already defined in a package and those items are non-database items.
    Suppose a particular item can be validated by a procedure or function. It depends on what value is passed into the program.
    If the item when-item-validation is triggered, that corresponding procedure or function will be executed by calling the following codes A) or B):
    A) EXECUTE IMMEDIATE 'BEGIN' || procedure || '(:1);END;' USING v_value;
    OR B) DBMS_SQL.EXECUTE(...)
    Basically, the form is working fine except 2 blocks which can only accept Function, i.e. only fired the function but cannot fire the procedure. Actually these 2 blocks are similar to the others blocks and they are also non-database blocks.
    I am using Form10g.
    Anyone have idea for that? Thanks for advance.
    Regards.

    You cannot use Execute Immediate in Forms. You have to do that on the server in a stored procedure.
    You should not use DBMS_SQL either. In Forms, you use EXEC_SQL, which is almost the same, except for the error handling. And it is VERY slow, since you make a number of calls to it, plus one for each variable passed.
    Now... if you call a function, it must return a value. If you write code to dynamically call a function, this process must be complex enough to handle the returned value. The same occurs if your procedure that you call has any parameters. If there are no parameters, then it would be simpler.
    If you want dynamic function or procedure processing, then I would suggest you just pass the value being validated plus the table.column name to a server-side stored procedure or package, and do all the processing on the server.
    Good luck... it won't be easy.

  • Item Level Validation

    Hi
    I want to add a validation on one Item which will fire as soon as I exit that field (like POST-TEXT-ITEM) , For Example. I have one Field VND_CD and One Display Field VND_NAME, I Want a Validation on VND_CD field at that too fire as soon as I leave VND_CD field. At VND_CD I want to write , IT should Check VND_MST and fetch VND_NAME from VND_MST and Display in VND_NAME Field.
    Please advise.
    thanks in Advance.

    You should investigate the use of AJAX for this. Lots of posts on forum.
    Gus

  • Item Level Validation in Detail Block

    Hi Experts,
    I have to Block Master and Transaction Block, When I am trying to enter the same item code in my Detail block it is accepting, but want to valid one one record will be there in my Details Block, please help me and send me some usefull code to solve this problem.
    S P Mishra

    The easy bit would be just a validation displaying the error message in the notification area. For this, one would just loop over the rows in the report for that column, checking each. If an error was found then return false. For displaying the error message under the actual row with the problem, one would have to do this manually. You could possibly do this using a div which has a class containing "display:none" and then manually set the style of the error'ed row in your validation routine. Would be messy but I'd imagine you could get it working.

  • Item Level & Page Level Validation..

    Hi ,
    What is the difference between Item Level validation & Page Level validation..
    in which sceneario it will be useful.
    Anoo..
    Edited by: Anoo on Dec 16, 2008 5:04 AM

    Hi,
    From the APEX help:
    * Item level validations are specific to a single item.
    * Page level validations do not apply to any single item, but apply to an entire page.
    {code}
    Paulo Vale
    [http://apex-notes.blogspot.com]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Page level validation to prevent duplicate data entry into the database

    Hello,
    Can anyone please help me out with this issue.
    I have a form with two items based on a table. I already have an item level validation to check for null. Now I would like to create a page level validation to check that duplicate data are not entered into the database. I would like to check the database when the user clicks on ‘Create’ button to ensure they are not inserting duplicate record. If data already exist, then show the error message and redirect them to another page. I am using apex 3.2
    Thanks

    Hi,
    Have you tried writing a PLSQL function to check this?
    I haven't tested this specifically, but something like this should work:
    1) Create a Page Level Validation
    2) Choose PLSQL for the method
    3) Choose Function Returning Boolean for the Type
    For the validation code, you could do something like this:
    DECLARE
        v_cnt number;
    BEGIN
        select count(*)
        into v_cnt
        from
        your_table
        where
        col1 = :P1_field1 AND
        col2 = :P2_field2;
        if v_cnt > 0 then return false;
        else return true;
        end if;
    END;If the query returns false, then your error message will be displayed.
    Not sure how you would go about redirecting after this page though. Maybe just allow the user to try again with another value (in case they made a mistake) or just press a 'cancel' button to finish trying to create a new record.
    Amanda.

  • Problems with Item level access rights

    I am having problems with a page group I created. I have applied item level security to an item on a page, managed by me and viewable by one access group. I then created multiple users and signed in as one user who was not in the access group to see that item. When I navigated to that page, I could see the item. When I restricted access to the tab on the page, I could not see the tab, so that worked. But when I opened access to the tab, I could still see the item.
    Here are my settings:
    Page Group Properties: Display Page To Public Users checked and Enable Item Level Security checked.
    Page Properties: Display Page To Public Users checked and Enable Item Level Security checked.
    Tab Properties: Specify Access Settings checked and added all of the appropriate groups with view access.
    Text Item Properties: Define Item Level Access Privileges and managed by me and viewable by one access group.

    I am having problems with a page group I created. I have applied item level security to an item on a page, managed by me and viewable by one access group. I then created multiple users and signed in as one user who was not in the access group to see that item. When I navigated to that page, I could see the item. When I restricted access to the tab on the page, I could not see the tab, so that worked. But when I opened access to the tab, I could still see the item.
    Here are my settings:
    Page Group Properties: Display Page To Public Users checked and Enable Item Level Security checked.
    Page Properties: Display Page To Public Users checked and Enable Item Level Security checked.
    Tab Properties: Specify Access Settings checked and added all of the appropriate groups with view access.
    Text Item Properties: Define Item Level Access Privileges and managed by me and viewable by one access group.

  • Categories and Item Level Security

    Hi,
    We have implemented item level security on our pages. We also use Categories so that a user can retrieve all content that falls into a particular category easily e.g. address books or Policies and Procedures.
    The desire is that if a user clicks on a category and an item the user normally would not see because of item level security on the page where the content is located, then the user should not see that item among all the other items returned by the category search.
    What is happening is either that a link to the item is returned among all the other items in the category or we get an access error for the entire category.
    We have tried playing with the settings on the template used for the category and with the access on the category result page but have not found the magic bullet yet.
    One other interesting behavior in the situation where the restricted item is visible in the returned category search is that clicking on the Page link (instead of showing the page group the item is on, we show the link of the page the item is on)it takes us to the page and the display link for the secured item is now visible followed by what looks like a "smudge" type of character. The item's link can then be clicked and the item's content is now available to the user.
    Thanks in advance for any help,
    Peter

    Tabs don't work with Item Level Security in 9.0.2. Fixed in the upcoming 9.0.2.6 release.
    Regards,
    Jerry

  • Item & page level validation

    1. How do I check/see if a validation rule is page level or item level, I couldn't find any difference in the definitions between the two as seen on the definition screens in APEX.
    2. (Could be related to 1.) I expected the validation rule 'Item in Expression1 contains at least one of the characters in Expression2' to imply that Expression1 can not be NULL. I had to create a separate IS NOT NULL validation rule however. To me that does not make sense or is there a reasonable explanation?
    tia,
    Martin

    Martin,
    As Tony said, there is no difference between page and item validations other than the ability for item validations to have error messages positioned right next to their label.
    As for the null value problem, the following "item comparison" -type validations do not produce a validation error if the specified item is null:
    * Item specified contains no spaces
    * Item specified is a valid date
    * Item in Expression 1 contains only characters in Expression 2
    * Item in Expression 1 contains at least one of the characters in Expression 2
    * Item in Expression 1 does not contain any of the characters in Expression 2
    This allows you to account for the null value case with a separate "not null" validation. Without this behavior there would have to be a "Item in Expression 1 is NULL OR <remainder of validation>" -type validation in addition to each of the above validation types.
    However, the following validation types do result in a validation failure if the item is null:
    * Item in Expression 1 equals string literal in Expression 2
    * Item in Expression 1 is contained in Expression 2
    This behavior appears to be an oversight, also spelled bug.
    Scott

  • How to implement a page level validation !!

    Hello ,
    I want to implement page level validation.
    thanks
    Edited by: kumar73 on Apr 21, 2010 1:41 PM

    Should be pretty easy - your condition would probably just be the click of the button (button name) or the request value sent by the button (SUBMIT?) You can do a function returning boolean as the type
    The code would be something like:
    begin
      if :P1_SHUTTLE is not null or
      :P1_SHUTTLE2 is not null or
      :P1_SHUTTLE3 is not null or
      :P1_SHUTTLE4 is not null or
      :P1_SHUTTLE5 is not null then
        return(true);
      else
        return(false);
      end if;
    end;

  • Button condition on page item and Validation error Conflict

    Hi,
    I have a select list page item and a button on page whose condition is based on the select list page item value(eg, If (:P2_item1='val1'){return true;}) with condition type=PL/SQL function returning boolean. This buttons submits the page.
    It' coming fine in normal case. However, if I select some value val2 from the list and then click the button, and if there are any validation errors (like mandatory check or email check fail etc), then the button disappears because it evaluates the button condition based on the changed value(val2), but the page has not yet been submitted because of validation errors.
    I think this can be solved if I create the button condition based upon database column value instead of page item as db col value won't change until the page is submitted.
    This look like very basic use-case and I would like to know if there is any better solution to this problem.
    Note: I am using Apex 4.2.1

    I don't want to show/hide the button on the change of the page item lov value, so i am not using Dynamic action.
    What i was is to make button visible based on a condition(which is based on page item), for which we have condition attribute of a button available.
    This is a very common thing where a user chooses the button condition as Value of item/column in expression 1 is null/expr2. But what if the user changes the page item value but it doesn't get submit due to validation error. In that case, the button condition fails.
    So, i guess i have to use column name in expression 1, can u tell how to do that?
    Expression 1 = IF (:P2_STATUS='val1') then return true;
    How to change the above to use db column 'status' instead? Any direct way(like #Status#) or I have to query db to get it using select.
    Any alternative approach?

Maybe you are looking for