Validation problem with dependent selectOneChoice

Hi,
I have two af:selectOneChoice box. Both have valueChangeListener. 1st box will load the value in 2nd box and the 2nd box listener has some logic for rendering other component. Required and immediate attribute are true for both the box.
Now if I change the 1st box then automatically 2nd box "required" validation gets executed, ideally it should happen when I will click the submit button.
Plz help.

I am going to Lov from a multi line table Inv Lines to get the current row. and then set where clause based on that.
I also have another requirement to set where clause based on the columns that are not set as criteria.
It is like, it is not mandatory to enter two base page columns, but if entered I need to consider in filter my Lov rows.

Similar Messages

  • JAXB - validation problem with regexp bound int type

    Hello everyone,
    I have a simpleType defined in my schema as follows:
    <xs:simpleType name="BasketRetentionType">
    <xs:restriction base="xs:int">
    <xs:totalDigits value="10"/>
    <xs:pattern value="(0|[1-9][0-9]*)"/>
    </xs:restriction>
    </xs:simpleType>
    '020' and '+20' values are not allowed (as I need it to be), but I've got them validated by JAXB.
    I wonder if there's anyone who can confirm this or shall I add any java code I may have ignored.
    I'm working with :
    - OS : Microsoft Windows NT v4.0 Serv.Pack6
    - java : j2sdk1.4.1_05
    - jaxb : jwsdp-1.3
    Thanks
    L. Chiartano

    Try this pattern: +\\d*|\\d*
    Also take a look at:
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html
    I don't know if it's \\d or \d, trail and error.
    bye ki

  • WSDL validation problem with WS-I

    I created a WSDL with jDeveloper 10.1.3.2 following the Oracle Tutorial
    http://www.oracle.com/technology/obe/obe1013jdev/wstopdown/wstopdown.htm
    At the point where i have to validate the WSDL with the WS-I tester i get an error message:
    Assertion: BP2701
    The wsdl:definitions namespace is not: http://schemas.xmlsoap.org/wsdl/
    All the entrys inside teh WSDL are written from jdeveloper.
    the output WSDL looks like:
    <definitions targetNamespace="urn:CreditRating"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="urn:CreditRating"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:types="http://CreditRating.xsd">
    <types>
    <schema targetNamespace="http://CreditRating.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
    <element name="ssn" type="string"/>
    <element name="rating" type="int"/>
    <element name="error" type="string"/>
    </schema>
    </types>
    <message name="CreditRatingRequestMessage">
    <part name="ssn" element="types:ssn"/>
    </message>
    <message name="CreditRatingResponseMessage">
    <part name="rating" element="types:rating"/>
    </message>
    <message name="CreditRatingFaultMessage">
    <part name="error" element="types:error"/>
    </message>
    <portType name="CreditRating">
    <operation name="processCreditRating">
    <input message="tns:CreditRatingRequestMessage"/>
    <output message="tns:CreditRatingRequestMessage"/>
    <fault message="tns:CreditRatingFaultMessage" name="negativCredit"/>
    </operation>
    </portType>
    <binding name="CreditRatingSoapHttp" type="tns:CreditRating">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="processCreditRating">
    <soap:operation soapAction="urn:CreditRating/processCreditRating"/>
    <input>
    <soap:body use="literal" parts="ssn"/>
    </input>
    <output>
    <soap:body use="literal" parts="ssn"/>
    </output>
    <fault name="negativCredit">
    <soap:fault use="literal" name="negativCredit"/>
    </fault>
    </operation>
    </binding>
    <service name="CreditRatingService">
    <port name="CreditRatingServiceSoapHttpPort"
    binding="tns:CreditRatingSoapHttp">
    <soap:address location="tbd"/>
    </port>
    </service>
    </definitions>
    I can not see where the porblem is. Can someone help me please?
    Tanks Bs

    Hi ,
    there is not any problem in code or in function.
    You just need to double click on Excel field where you are having that problem of ####.
    Whenever display size of cell is less then the data size then it's showing as ###. so you just need to double click on it and make it as per data length...
    -Maharshi

  • Validation problem with the selected Month-Year and Days in the Month.

    Hi,
    I am unable to figure out the logic for the below senario.
    There are two fields Period and Date
    If Users sets the Period to FEB-11
    and User has to select the Dates of the February Month only and if he selects any other month It should throw an error.
    How could I restrict the user to not enter any other date from the selected period.
    Please suggest.
    Thanks,
    Krishna

    Hi Gyan,
    Thanks for the update.
    I am just tring to copare the values
    able to get the period value and unable to compare to the date format.
    just look at the below code with the output of sop
            OAMessageTextInputBean mtb =
            (OAMessageTextInputBean)webBean.findIndexedChildRecursive("item1");
                OAMessageDateFieldBean mtb1 =
                (OAMessageDateFieldBean)webBean.findIndexedChildRecursive("item2");
            String period = (String)mtb.getValue(pageContext);
            System.out.println("Value of Period:::"+period);   // FEB-11 is the out put
               Date date = (Date)mtb1.getValue(pageContext);
                System.out.println("Value of Period:::"+date); // 2011-02-09 is the output
    // Converting the date to string using SimpleDateFormat
                DateFormat df = new SimpleDateFormat("dd-MM-yyyy");
                String date1 = df.format(date);
                System.out.println("String Date::"+date1);
                String date2 = date1.substring(3,5);
                System.out.println("SubString::"+date2);
           // 02 is the out put I am not able to Format the month in SimpleDateFormat("dd-MON-yyyy") to get the
          //  month as FEB is there any converter.
                String date3 = date1.substring(8,10);
                System.out.println("SubString2::"+date3);
         //11 is the out put
            if (period.equalsIgnoreCase(date2.concat(date3)) )
      // after concatinating the format is 02-11 so its going to exception
                System.out.println("Date in the same Period");
            else {
                throw new OAException ("Date Selected is out of range::");
            }I am not able to Format the month in SimpleDateFormat("dd-MON-yyyy") to get the month as FEB is there any converter.
    The logic is working fine but the month is not getting converted.
    Thanks,
    Krishna

  • Problem with using SelectOneChoice for a Table column..

    Hi
    Thank you for reading my post
    I have a Table in my database which one of its fields is an status field.
    the status can be :
    Done
    Pending
    In-Progress
    I have a form that one can edit the records of this table and i want to use a ComboBox for this field.
    As you know, the ComboBox should indicate the current value and its change should be reflected to database after user pressed the submit/commit button.
    But all my tries failed, i tried to
    -put a SelectOneChoice in the form and bind it to the field
    -Use Drag and Drop feature to drag and drop the Data Control field on the form as a SelectOneChoice, it shows a Binding Dialog that i can not configure it correctly and it has no help.
    Can you please help me to resolve it?
    Thanks

    Hi user,
    Have a look at Steve M's example at http://www.oracle.com/technology/products/jdev/tips/muench/screencasts/editabletabledropdown/dropdownlistineditabletable.html?_template=/ocom/technology/content/print
    Hope this helps,
    John

  • Issue with dependent selectOneChoice

    I have 1 selectOneChoice and 1 table
    I want When i choose value from selectOneChoice then table value change
    please help me
    thanks

    Hi User,
    Welcome to OTN!
    Please go through the following before you post your queries on this forum.
    https://forums.oracle.com/forums/ann.jspa?annID=56

  • Problem with af:selectOneChoice in the Search Panels

    Hello
    I've made a ComboBox in my ViewObject and then I've draged it on a page as search panel form. But there is a problem in the ComboBox. When I search and the result in the table is "null", the list attributes in the comboBox dissapeare, it happens only when the results is null.
    Does anybody has an idea?

    I've forgotten to say that I'm use TP4...

  • HT5559 I've followed the instructions to re-enable apple supplied Java SE 6 but this does not work. Java is still disabled and I'm having problems with dependant applications.

    I've followed the instructions to re-enable apple supplied Java SE 6 following upgrade to version 7 which caused a number of applications to stop working.
    I wondered if anyone has had any joy re-enabling JAVA SE 6. I've tried contacting Apple but cannot get any response. They've sent me back default messages claiming that they have tried to contact me - they haven't!  I'd be grateful for some help with this. Thanks

    This is the latest news about Java.
    http://www.macobserver.com/tmo/article/java-7-update-13-addresses-security-vulne rability-os-x-block
    I do not use Java. So I cannot verify that this is the solution or not..
    Best.

  • Problem with date validation

    The enclosed trivial sample illustrates a problem I'm experiencing with validating dates
    The date field is initialized when the form opens.
    Once the form is open,  click the button and a popup appears saying there is a validation problem with the date field. Yet if the date is selected with the date selection widget the appearance is exactly the same, but without the validation problem. What's going on?

    OK, I've solved this, but I am hoping some kind person can tell me why I solved it.
    On the trivial form I enclosed before before, the "click" script used to say
    xfa.forms.recalculate(1);
    Now I've changed it to
    xfa.forms.recalculate (0);
    And I no longer see the undesired date validtion errors when I click the button. (See updated enclosure on this post).
    The difference is supposed to be that, if the parameter is 0 (or false) then only "pending" calculation scripts are fired, and if 1 (or true) then all calculation scripts are fired. So what does it mean to my DateTime field having unjust validation errors? The DateTime field has no calculation script, only an iitialize script.

  • Validation Errors with adf dialog

    Hi!
    We are using Oracle BC and ADF Faces.
    I'm having some validation problems with a adf dialog.
    The scenario is the following:
    An editing page.
    A field in this page has a LOV.
    The LOV has some search criteria, and a search button.
    When the button is clicked, the results appear on a table. The user selects one and the lov is closed.
    When filling the editing page the Lov is opened.
    When i don't put search criteria in the fields, no validation errors appear.
    If i put one or more search criterias, validations errors of the editing page appear.
    Why is this happening?
    Thanks.

    Please post a link to your site.
    Gramps

  • Dependent selectonechoice validation problem

    I have in my page two dependent selectonechoice's, the first of countries an second of states. States has a not null validation. First time two selectonechoice's starts with a blank item first, nothing selected, the problem is when I select a country the selectonechoice of states execute the validation before filters the states and I never can't select states. Sorry for my english....

    Or use empty values in lov, then validation won't trigger on client side.

  • Problem with Validations

    Hi All,
    I have another problem with validators. I have some components like inputText and selectOneChoice and selectBooleanCheckBox. I set the Required attribute to "true" and immediate attribute to "true". For selectOneChoice component autoSubmit attribute is set to "true".
    Here My problem is when i select one option in the selectOneChoice component then the value of the InputText should be changed depending on the value of the selectOneChoice Component.
    But When I select the option in the selectOneChoice component, I'm getting error popup dialog for the validation of all other components as selectOneChoice. so I'm unable to perform the required task.
    could anyone help me out,
    Thanks in advance,
    -Prapansol

    Prapan Sol,
    Please refer to the tag documentation on the af:subform tag. A combination of subforms and the use of the immediate attribute should solve your problem.
    http://www.oracle.com/technology/products/adf/adffaces/11/doc/multiproject/adf-richclient-api/tagdoc/af_subform.html
    --Ric                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • The timesheet creation failed, because of problems with the project I server or with data validation

    Hi,
    One of my user is facing issue in creating new time sheet,
    "The time sheet creation failed, because of problems with the project server or with data validations".
    This issue is coming to only few members out of 10000 members.
    Note: For the same user, can able to do in other machines. only the problem in his machine. Have ran the office diagnostics, but still the problem persists.
    Is any add-on's/any settings need to update in IE. Could any one please help me on how to fix this issue?
    Many thanks in advance.

    I would check the compatibility settings in IE etc, or try another browser (chrome, safari etc.)
    Ben Howard [MVP] | web |
    blog | book

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

  • 1 year ago i installed Elements 12 on my PC with a serial number.  Today i have installed Elements 12 also on my laptop. But,...there is a problem with validation of the serial number on my laptop. Is there a need to validate Elements  or will this progra

    One year ago i installed Elements 12 on my PC with a serial number and it was OK.
    Today i have installed Elements 12 also on my laptop.
    But,...there is a problem with validation of the serial number on my laptop. Is there a need to validate Elements  or will this program real disapeare in 7 days?
    Hans

    Hi,
    Since you already have one copy activated the serial number must be logged in your account details - I would first check that the one logged and the one you are attempting to enter are the same.
    You can check your account details by going to www.adobe.com and clicking on Manage Account. You need to sign in with your Adobe Id and then click on View All under Plans & Products. Next click on View your products and after a while it should produce your list.
    If there is a problem with the serial number, only Adobe can help you there (we are just users). Please see the response in this thread
    First of all, I would have to say that getting in touch with you is a nightmare and I am not at all happy that I can't just email or live chat with someone who can help!  I am not a technical person, I just want to be able to use Photoshop Elements and ge
    Brian

Maybe you are looking for