Validation based on items on an page !

Hi there
Any pointers greatly appreciated...
Trying to do :
If I click on button 1, I wish to check if 4 select lists have a value (!='%'), if they do, complete process. Otherwise, stop, and get user to select something.
Same for button 2, but different select lists.
Problem:
If I click on button 1 or 2, it checks ALL select lists if they are populated i.e. !='%'
Details
Following objects :
Buttons (2)
--each button has button request value
Button1 'archive', Button2 'current'
Select Lists (1...4)
Select Lists (5..8)
Each select list - has default value > '%'
Processes (2) - PL/SQL anonymous block Conditional (after submit)
--Each process has simple condition, based on button (When Button Pressed (Process After Submit When this Button is Pressed))
Validation
--Each select list has type - PL/SQL expression
:PX_SelectListX !='%' and :PX_ButtonX ='archive' (or 'current')
Associated Item - validation not associated with item
Condition - Based on ButtonX
Condition Type - (tried different combinations) - current - Value of item in expression 1 is not Null, Expression 1 --> PX_SelectListX

That is wrong. This is why it doesn't work.
1. Request will never be :P4_Button1 - Request is 'Go'
2. The value of your select list is not '%'. That is a display value. Look into the select list to see what it has as a null return value. If it is empty than it will be '%null%'
(You should use something easier to handle as a null return value. Put there 0 or something else) and include that into your validation. It will work for sure.
I would recommend using two day developer guide to start with the basics.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------

Similar Messages

  • How to validate a item in page based on previous item in same page

    Hi,
    I need to know how we can hide items based on page item
    ie i have 5  item in same page like weighed(radio button) yes / no if user select yes na it ll automatically enable remaining fields like weight,packing charges, courier charges and net total
    and based on packing charges,courier charges, other charges the net charge ll be auto calculated.....
    please any one reply asap..
    Regards,
    Priya

    i have  to align the items in single page(form)....
    ie i have  to arrange the regions in sequential manner
    for example i have x , y , z , a  , b , c , d ,l m  regions
    y  and z in horizontal  in first row
    b  and c  in vertical  in first column
    x and a  in  vertical in second column
    d in vertical in third column
    l  and m in horizontal  in last  row
    y -----------------------  z
    b    x
    c    a    d
    l------------------------m
    to achieve this wat i have to do

  • How to create a single 'not null ' validation for all the items in a page ?

    Hi everyone ,
    how to create a single 'not null ' validation for all the items in a page ? I have many textfields . Instead of creating 'not null' validation for each item , I would like to create a a single validation control that will serve the purpose
    Thanks & Regards
    Umer

    Nice1 wrote:
    bob , as u said I have done the following :
    1) under create button , there are 9 items and for each item I have set Required to 'Yes'
    2) under delete button , there is 1 item and have set Required to 'Yes' for the item
    3) defined page validation for 9 items under 'create ' button and have set it to fire when 'create ' button clicked
    4) defined page validation for 1 item under 'delete ' button and have set it to fire when 'delete ' button clicked
    now , when I click 'create' button it even shows for the item under 'Delete ' button that it is a required itemSorry, I didn't see this note. The required template won't work, there is no way to attach it to the button.
    The best solution is as the reply a couple replies up
    Create 2 page type validations as a PL/SQL with code
    1st validation
    :P1_ITEM1 IS NOT NULL and :P1_ITEM2 IS NOT NULL ...... and :P1_ITEM9 IS NOT NULL  include all 9 items
    Set the When Button Pressed to the CREATE button
    2nd validation
    :P1_ITEM10 IS NOT NULL
    Set the When Button Pressed to the DELETE buttonI think that's going to be the easiest way to do it.
    Edited by: Bob37 on Apr 27, 2012 12:02 PM

  • Need - Search page with LOV based flexfield item as search criteria

    Our requirement is to make a flexfield item as search criteria.
    Flexfield is having 2 segments Applicaiton and Responsibility, where 2nd segment *(Responsibility) is dependent on 1st (Application).*
    Accordingly, an LOV must get displayed for each flex segment in the search panel.
    We tried to create a page having this flex (DFF) item as a search criteria, but cannot proceed to get results in results region - we tried to use both properties in the query region - resultsbasedSearch and autocustomizationCriteria:
    Any ideas how to make a search functionality having LOV based flexfield items in the search criteria?
    Any other suggestions regarding the solution are welcome.
    Thank you very much.
    Regards,
    May B.

    Hi,
    try a SQL query that uses bind variables as follows
    ... where column1 like '%:col1param%' and '%:column2%' like :col2param
    Then in the implementation (session facade) check for null values and add '%' in case a value is null.
    The query in EJB is defined in the entity
    Frank

  • Validation on an Item

    Hello,
    I am trying to put a validation on an item.
    I have two columns:
    Ethics Status and Ethics Tracking Number
    Ethics Status is required but Ethics Tracking Number is only Required if Ethics Status is Yes.
    I am unsure how to go about doing this. Can anyone point me in the right direction?
    Thanks,
    Jessica

    I would create a Validation for the item Ethics Tracking Number that says it cannot be NULL, and then set the condition to "Value of Item In Expression 1 Is NOT NULL", and then in the Expression 1 box fill in the name of the page item for the Ethics Status field.
    This way the validation is only applied when the condition evaluates to TRUE, which will only happen when Ethics Status is not null.
    So if you had the item P1_ETHICS_STATUS, then put that in the Expression 1 box.

  • Setting validation based on condition on custom list

    Hi,
    I have a custom Image library. I have two custom columns created as part of metadata.
    One is a dropdown choice column, which contains 2 values - "Free", "Paid".
    I also have a datepicker column (date only). 
    I would like to set a validation based on below condition:
    If dropdown selected is "Paid", then date should be mandatory field.
    Can this be achieved OOB or a JSLink is required.
    How to achieve this?
    Thanks 

    Hi Vankatzeus,
    You can achieve this using Javascript. In New and edit forms of your list, add a content editor webpart with the script explained below -
    There is a PreSaveAction() function that you can use to do a custom validation. Before submitting any item, sharepoint first do the validation in PreSaveAction().
    function PreSaveAction() {
      //Step 1 - Read the choice and date fields. 
    // Step 2 - If choice is 'PAID' and 'date' field is blank { alert('Date can't be blank'); return false;} else {return true;}
    In Step 1, write a script that read values from choice and date fields. You can take the script from
    here and modify it just to read choice and date fields.
    Cheers,
    Manvir

  • Validation during create -- resetting the whole page

    I have a report with the form. On the form I have some validations. Two of them are url and date field
    validations.
    I am trying to create a new record. I entered all the fields including URL field
    I got the URL validation error displayed on the error page.
    When I click OK, system is clearing out all the entered data.
    I want the system to retain all the data. What is that I am doing wrong?
    Thank you for your help.

    Scott,
    Thanks for the reply. I can't display the error message in line, because mine is "Report with Form".
    If I create a validation to display in line, then during submittal of the create mode of the form, create button is disapearing and getting changed to "Apply changes" and when I click on "Apply changes", then I get
    "no data found.." error.
    I found in the user guide the following:
    To create a hard error that stops processing of any remaining validations, you
    must display the error on an error page.
    That is the reason why I have used error page.
    Can you be more clear on: Also try setting the Source Used for these items to 'Only...'.
    Thank you.

  • Creation of additional drop downs in 'Item overview' tab page on portal

    Hi,
    I would like to know how do we add additional fields/drop downs on  the xRPM portal in the  'Item Overview' tab page.
    For eg:
    We are having TECHNOLOGY TYPE field at Item overview tab page in xRPM portal - Portfolio Management view. Wherein we can have different dropdown values for selection.
    Question 1 -> Can we have similar dropdown created on the same page? If yes, how?
    Question 2 -> If we want to create more than one such dropdowns with their own defined dropdown values, can we maintain the dependency between them ?

    I went through the document on the mentioned by you.
    But my requirement is a bit diiferent.
    I want to have 3 different drop downs with a  numeric field attached to them.The sum of these numeric fields should always be 100 (two values are manually selected but the third value should be calculated automatically based on the previously selected values).
    Example,
    I select 10 as a value for Drop down 1, 40 for drop down2 then for the drop down3 the value should populate automatically as 50 (100 - (10+40)).i.e. the sum being 100.
    Can you or any one please help me with this.
    Also I am not sure how do we give multiple options for selection (like 10,20,..50 etc upto 100) for a drop down.

  • Field Validation based on SalesStage

    We have three Sales stages in the Picklist Opportunity Sales Stage, According to these Values one of below fields should be Mandatory. The values are as follows:
    If Sales Stage is
    1.     Closed/Won Then the Reason For Win(Text Field) Should be Mandatory
    2.     Closed/Loss Then the Reason For Loss(Text Field) Should be Mandatory
    3.     Closed/abandoned Then the Reason For abandoned(Text Field) Should be Mandatory.
    Could you please suggest me how to do this. Because we don’t have any field validations on Opportunity Salesstage(It’s a seede one), we can’t edit the things also. my thought’s are to place validation based on Sales stage id, i get the id from Source page and i am trying to validate on Reason for win field by using below query, but it is not working for me:
    IIf((FieldValue('<SalesStageId>')="AHIA-PS3GK" AND [<stReason_for_Win_ITAG>]IS NULL, "Invalid", [<stReason_for_Win_ITAG>])) and how to place combination of all the queries on SalesstageId field.
    Thanks
    Subbu

    Hi you can use another field for validation like Opportunity Name, but you have to mention that this approach only works if you insert a new record, not on update. To workaround this you can have another field that is mandatory and has the salesstages in it. Use a combination of default value and an update workflow for it...

  • Can't use validation to verify item

    Hi , I'm try to learn htmldb.
    I've defined a validation check (NOT EXISTS), with sql statement :
    select 1 from TESTS where ID = :P_TESTID
    From some reason , I can't make it work. I feel I'm missing some simple here .
    I've 2 questions :
    1. Can anyone reference the a working example of not exists validation ?
    2. If some one can look at application 11875 (page 2) , and give me a clue ...
    Thanks for your time

    Hi,
    in your statement:
    select 1 from TESTS where ID = :P_TESTID
    what is :P_TESTID
    is this an item on your page? try adding the page number of where this item is
    such as :P##_TESTID where ## would be your page
    for example, :P200_TESTID
    hope this helps.

  • Hw to deactivate a valid cross-docking item i.e., 2-step picking

    Hi Experts,
    Hw to deactivate a valid cross-docking item i.e.,  the two step relevance should be de-activated for the delivery items. i want to convert 2-step picking to one-step picking based on elapsed time.
    Be helpful. Its urgent.
    Thanks & Regards,
    Madhu

    System will generate XD deliveries once you do the goods receipt against Vendor Purchase Order.In your case two outbound deliveries generated as you have to UB Purchase Orders.After Creation of deliveries then you tried to create the delivery through wf30 .As the deliveries created alredy you got error No entries found relevant to delivery generation;'
    If you delete the deliveries then it is difficult to create new outbound deliveries.

  • Fbl5n: The printer provides me only one customer items for each page...

    Hi all,
    launching t.code FBL5N, and printing the repost list, the printer provides me only one customer items for each page...
    I'd like obtaining more customer items for each page...
    What to do?
    Thanks

    Hi Umberto..
    Thats how the standard report works..
    To meet your requirement, you would probably need to look at another standard report.
    In case you need further clarification, please feel free to write to me..
    Good Luck!
    Lucid-Mind...

  • Authorization check based on item category on sales order (VA01 or VA02)

    I want to be able to restrict authorization of users based on item category. We only want certain users to be able to select a certain item category.  I know I'm going to have to check one of the userexits in MV45AFZZ. The issue I'm having is the authorization object .
    The item category is field VBAP-PSTYV.
    What we are going is having a item category for emergency orders. But this requires more manual steps to associate with the original order. We already have the emergency item categories defined and working (no credit check etc) so there's no reason not to have them added to the original order. The issue is its use has to be restricted so when the user selects an alternative item category it checks whether they have the authority.   
    Any help would be appreciated

    Hi,
    You can achieve this through authorization objects.
    Transaction
    SU20 - Authorization Fields
    SU21 - Authorization Objects
    Create the field PSTYV in the Authorization Fields.
    Then Create the authorization object and include this field along with the standard field ACTVT (which determines what activities can be performed by a certain user i.e. Create, Change or Display) & user-name
    In your your-exit, you can either use the ABAP command AUTHORITY-CHECK or the function-module AUTHORITY_CHECK and pass the values for these fields. The system can perform the test based on this values & based on the sy-subrc value you can restrict the users that are not having the authorization to select item-categories for emergency orders.
    Following link should help you:
    [SAP Authorization Concept|http://help.sap.com/saphelp_wp/helpdata/en/52/671285439b11d1896f0000e8322d00/content.htm]
    Hope that helps you.
    Regards,
    Saurabh

  • Export selected items on each page in InDesign to JPEG

    Hi All,
    I have InDesign CS5.5. I have a document with more than 50 pages and each page has unique image and the description for image.
    I need to export each page as JPEG. but i don't want to export full page. i need only the items on each page. So i go to each page and select all the items and export. while exporting i use the same name of the image used in each page.
    I tried writing a script but it exports only the active page. i do not know how to navigate to the next page and export.
    is some one can help.
    below is my script.
    var myDoc = app.activeDocument;
    var myNumPages = myDoc.pages.length;  //get the number of pages
    var myFilePath = myDoc.filePath; //get the file path
    var myRectangle = app.activeWindow.activePage.allGraphics; //get the graphics of the active page
    var myPageName = app.activeWindow.activePage.name; //get the page name.
               if(myRectangle.length >1)
                        alert("the page has more than one image. Delete the other image to export");
                        exit();
    var myImageName = myRectangle[0].itemLink.name; //get the name of the image
    app.select(NothingEnum.NOTHING);
    for(var i=0; i<myNumPages; i++)
              app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
              app.jpegExportPreferences.exportResolution = 300;
              app.jpegExportPreferences.jpegExportRange = ExportRangeOrAllPages.exportRange;
              app.jpegExportPreferences.pageString = myPageName;
              mySelectedItems();
    function mySelectedItems()
              var myObj = new Array;
              myObj = app.activeWindow.activePage.pageItems; 
              try
                                  app.activeWindow.activePage.groups.add(myObj);
                                  catch(e)
              app.select(app.activeWindow.activePage.allPageItems);
              app.selection[0].exportFile(ExportFormat.JPG, File(myFilePath+"/"+myImageName+".JPEG"), false);

    export all image of each page try like this
    var myDoc = app.activeDocument;
    var myFolder = myDoc.filePath;
    var myImage = myDoc.allGraphics;
    for (var i=0; myImage.length>i; i++){
        app.select(myImage[i]);
        var MyImageNmae  = myImage[i].itemLink.name;
        app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
        app.jpegExportPreferences.exportResolution = 300;
           app.selection[0].exportFile(ExportFormat.JPG, File(myFolder+"/"+MyImageNmae+".JPEG"), false);
        alert(myImage[i].itemLink.name)

  • How do you pass more than 3 items to another page via a Column Link?

    I know this is a simple question, but I don't see it covered in the manual.
    I have a report on page 1, when the user clicks on a column link, I'd like to pass 4 items to the page that is called.
    The Column Link area allows you to specify 3 items. How do people normally accomplish this?
    Do you somehow use page zero? Do you use Application Items for this purpose?
    Also, can someone recommend a good APEX book to supplement the manuals?
    Thanks

    hI
    Oh Varad I didnt know this, Thanks for a new tip ;)
    Just change the target to URL and enter a simple statement
    in the URL section
    f?p=&APP_ID.:50:&SESSION.:10:&DEBUG.::P50_item1,P50_item2,P50_item3,P50_item4:value1,#column_name2#,#column_name3#,#column_name4#
    Use value when u know a fixed value to be passed
    and column names on the same report can be passes by using #column_name#
    Hope this helps
    Thanks
    Ashri
    Edited by: Ashri on Nov 14, 2008 8:34 AM

Maybe you are looking for

  • Copy function for sales order

    I want to create a sales return, and use copy with reference to do that. But if the sales order items cate is TAB, then those items cannot be copied, I check the config dosen't find the TAB item for order type, even in the standard, RE to OR, I quest

  • Error while filling DDIC table.

    hi friends, when i try to insert or modify the DDIC table (which is made by user) it Shows the error message (The type of the database table and work area (or internal table)           "T_FTAB" are not Unicode-convertible . . . . . . . . . .         

  • Installation: Oracle 10g on SUSE Linux 10.1

    Can this be? I sat for hours preparing my all new clean SUSE Linux 10.1 server for the installation of Oracle 10g (Standard Edition)... and when running the installer it simply tells me that SUSE 9 is needed... I've found others here in the forum hav

  • Is there a way to make state transitions/animations of a fl.control states - button for example ?

    Is there a way to make state transitions/animations of a fl.control states - button for example ? All I can do now is change the skin design and that's it, I can't animate between states like I can with Flash Builder skins. So is there a way to do th

  • Can i have an arabic keyboard for my mac?

    Hello, I am willing to buy a new mac book pro and I need an english/arabic keyboard. so is their any possibility to add it on the keyboard itself? If so, how? do i have to go to an apple store and ask them to put arabic keyboard on my mac? Please i n