Conditionally Validating InputDate Fields...

Hi !. My problem is the following one: My project let the user download some reports in excel format. I have like 6 sections each one with a buttom and 2 input date calendars. The thing is that, when the user enters data (let say "asd") and he tries to download another report from another section, a validation appears on a field from another section and the user cant download the report. I tried using af:subForm but I realized that that is for the binding layer not if I am using a convertDateTime for instance... So, what i thought is adding to every buttom a setActionListener to know which buttom was pressed and in a CustomConverter get a reference of it and don't raise up a message for a field that it is not contained in the section of the buttom. The problem is that I can't get a reference to that variable... Does anyone knows if there is another chance ?. Thankx.

<p>So you want to keep the Group Header (GH) and the Details (D), but suppress the Group Footer (GF) if the count of details records is 1...</p><p>Open the section expert (right click on the grey sections to the left of the canvas) - make sure you have the GF highlighted.</p><p>There is an option named "Suppress" - to the right of that is a formula box [X+2].  Click on that and use a conditional formula for the suppresion.</p><p>Formula:</p><p>if Count({Customer.Customer ID}, {Customer.Customer Name}) = 1 </p><p>then false else true </p><p> </p><p>Note: you will need to replace {Customer.Customer ID} for some field in your details section and {Customer.Customer Name} in the formula with appropriate fields from your report. </p>

Similar Messages

  • Conditional validation - When field changed

    APEX 4.2.1
    Simple wizard-generated DML form on a table. Hidden numeric primary key (PK), displayed multi-column unique key (UK1,UK2); standard table design.
    Combination of conditional readonly and editable page items. NOT EXISTS validation to replace ORA-0001 with a friendlier error message. Validation should fire only when key fields (UK1 or UK2) are changed. Changes to other fields on the record should be allowed.
    But APEX server side conditions don't track item level changes. For instance, we can't say "Fire this validation only when P1_X or P1_Y are changed"
    How would this sort of thing be done? By adding OnChange dynamic actions on all the page items of interest to set a hidden page item, save that to session state and refer to it in the validation's Condition?
    Is this the right way to approach this?
    Thanks

    VANJ wrote:
    APEX 4.2.1
    Simple wizard-generated DML form on a table. Hidden numeric primary key (PK), displayed multi-column unique key (UK1,UK2); standard table design.
    Combination of conditional readonly and editable page items. NOT EXISTS validation to replace ORA-0001 with a friendlier error message. Validation should fire only when key fields (UK1 or UK2) are changed. Changes to other fields on the record should be allowed.
    But APEX server side conditions don't track item level changes. For instance, we can't say "Fire this validation only when P1_X or P1_Y are changed"
    How would this sort of thing be done? By adding OnChange dynamic actions on all the page items of interest to set a hidden page item, save that to session state and refer to it in the validation's Condition?
    Is this the right way to approach this?Not in 4.2 in my opinion. Drop the validation, let the DML process raise the ORA-00001 exception, and use the new error handling features to provide a user-friendly message.

  • Validity period field in Info record

    Hi all,
        I encounter the following problem while creating an info record. The validity field was mandatory, but the field was grey and evantually i couldn't enter anything... Can anyone clarify my doubt???
    Message was edited by:
            Antony anburaj

    Hi
    In ME11,While creating Info Record, In Pur.Org.Data1 Screen, you will find that the Valid to Field in Grey....If you want to give give valid to Date, then In the same screen, Go to Conditions, and there you can give Valid from and Valid to Details and all...
    Reward if useful
    Regards
    S.Baskaran

  • Conditional Validation using JSLink

    I have a User field and a Choice field in a list.  When the Choice field has the option "A" selected I want the User field to be mandatory.  Validation formulas in lists cannot use User field data types so this is not an option.  Is
    JSLink the way to go?  If so how would I implement conditional validation?  I can find examples of simple regex validation but nothing that helps to do conditional validation.
    Caroline

    Hi,
    According to your post, my understanding is that you want to set the User field automatically when the Choice field select a value.
    We can use jQuery to achieve it. Using jQuery .Change() method to monitor the choice, then set the value for the User field.
    The following articles for your reference:
    http://runnable.com/Ue9c4krQF7VjAAAP/how-to-get-selected-option-using-jquery
    http://jasonscript.wordpress.com/2013/08/07/javascript-and-working-with-the-sharepoint-2013-people-picker/
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Skipping validation if field is hidden

    Hi, all!
    I have functional requirement, when specific input field becomes visible/invisible based on another field value. Sounds clear, I will define AutoSubmit and PartialTriggers properties between some field and dependent conditionally visible/invisible field. It works fine, but invisible field has attribute 'required=true' and framework reports required field validation error (in spite of the invisibility) and, of course, customer can't submit the form. Required attribute can be set using an EL expression, but I need skip validation for hidden fields at all. Is there any way to do it? And, of course, client-side way is preferable. Thank you.

    Thank you for quick answer.
    1. Studio Edition Version 11.1.1.5.0
    2. In view layer:
    id="TaxPeriod" simple="true" required="#{pageFlowScope.ModelBean.taxPayment}"
    label="blablabla" maximumLength="10"
    styleClass="shortField"
    binding="#{pageFlowScope.ModelBean.taxPeriodField}">
    <af:validateRegExp pattern="^(0)|(..\\...\\.....)$"
    messageDetailNoMatch="Format XX.XX.XXXX"/>
    </af:inputText>
    Yes, I can make the required attribute as EL. But what about other validation? reg exp, etc...

  • Show Alert in PreSaveAction after validation of Fields

    Hi All,
    i have a simple task, but I dont know the function call for this.
    I want to show an alert in the PreSaveAction function after verifying that all Values in the Fields are valid.
    So something like:
     function PreSaveAction() {           
        if (FieldsAreValid) {           
    alert('<%=SPUtility.GetLocalizedString("$Resources:IdeaFactory,PopupTextEditIdeaDialog", null, SPContext.Current.Web.Language) %>');           
    return true;   
    So my question is: Is there some fuction - FieldsAreValid -  like the PreSaveAction, that i can call in this manner?
    Thank for any help
    Martin

    Hi,
    According to your post, my understanding is that you wanted to display validation for fields.
    We can customize the new or edit form with InfoPath to achieve it.
    In the form, we can add a validation rule to validate the filed with a condition, such as below.
    More reference:
    http://www.bizsupportonline.net/infopath2007/infopath-basics-3-ways-validate-data-infopath.htm
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • "Valid on field" on VK13 screen

    Hi SD Gurus,
    Can anyone tell me if there is any link between the "valid on" field on condition records screen (VK11, VK12, VK13) and pricing reports.
    Thank You,
    Alekhya.

    Hi Alekhya,
    The field valid on in VK11/VK12/VK13 is for the validity of your condition record what ever you are maintaining.
    Till the given date your condition record will be valid.For example if the date is 1/12/2008.Means that price will come in the sales order for that condition type will come if you have created the order on or before that date.If that condition type is mandatory and if you create another order on 2/12/2008 means it will not fetch your price because it's validity expires.Then you have create new condition record for that or extend the validity period in change mode by VK12 T.Code.
    Regards,
    Mohan

  • Mass change Condition valid to dates into Info record

    Hi,
    is there any mass changes for condition validity to dates into purchase info record?????
    i have check into MEMASSIN, there is field for conditions valid to Date,
    Pl. guide .
    Regards,
    Devendra

    Hi,
    It is not possible to  change validity date using MEMASSIN - Mass Maintenance t code.
    You need to create LSMW with recording method to achieve this. we are doing the same.
    It is very easy. And take care that while recording select the validity button and click executive to record the do not double click on the validity tab.
    Reg

  • View with selection conditions with system fields.

    Hi Experts,
    I have a view. Now i want to control the data that is selected using 'Selection Conditions'.
    here i want to use system field SY-DATUM.
    My requirement is  i want to control the output like
    Valid_From_Date GE SY-DATUM and
    Valid_To_Date     LE  SY-DATUM
    which means that i would be showing only active users in this view.
    How can i go about this? System is not allowing system fields in comparision value.
    Any help on this is highly appreciated. Thanks.
    regards,
    Simha

    Hi,
    I am getting a warning first 'enter constant as comparision value'
    when i trying to activate the view i am getting the below error.
    A join condition on a field of the system table SY (or SYST) was defined.
    This is not permitted for database views because the system table is not known to the database
    Have tried to activate the view you created?
    How to go about this?
    Regards,
    Simha

  • Spry validation text field across two columns in a table?

    I have a table with two columns.  I can easily insert a spry validated text field into the left cell but when I drag the box over so that box is in the right column and the label is still in the left column then that breaks the widget.
    Is this even possible for me to do or do I have to put the widget in just one column?

    Think I figured it out.
    http://www.adobe.com/devnet/dreamweaver/articles/spry_form_validations.html

  • Is it possible to create a editable pdf with validation(required field) using Adobe Acrobat pro version?

    Hi,
    the subject says it all. I have downloaded the trail version to see if its possible to create a editable pdf with validation(required field) using Adobe Acrobat pro version?
    Basically, I will have to create a pdf form where users fill it and send it back to me. there will be required fields (the textbox and check box) that user need to fill before saving the editable pdf?
    Is it possible. if so, can someone kind enough to point to me right directions?
    Thanks in advance.

    Thanks for reply. What I am trying to achieve is to give an option for the user to download the pdf form and once the user tries to save the pdf, it validates with the required field. I managed to create the editable pdf with required fields option. I just need that validation to be done when user click on save file. How can I achieve this? thanks so much for your help.

  • Using JavaScript to set value of Spry validated text field

    Why can't the value of a text field be set using JavaScript
    when it's validated using the Spry validation widget.
    Example (this works):
    <select name="birthdate_month" id="birthdate_month"
    onChange="document.getElementById('birthdate').value = 'test';">
    <option>1</option>
    <option>2</option>
    </select>
    <input type="text" name="birthdate" id="birthdate"
    value="">
    Example (this doesnt work):
    <select name="birthdate_month" id="birthdate_month"
    onChange="document.getElementById('birthdate').value = 'test';">
    <option>1</option>
    <option>2</option>
    </select>
    <span id="birthdate">
    <input type="text" name="birthdate" id="birthdate"
    value="">
    <span class="textfieldRequiredMsg">please enter your
    birthday</span>
    </span>
    <script type="text/javascript">
    <!--
    var birthdate = new
    Spry.Widget.ValidationTextField("birthdate", "none");
    //-->
    </script>
    Is there a way to change the value of a Spry validated text
    field using JavaScript?
    Thanks.

    Why can't the value of a text field be set using JavaScript
    when it's validated using the Spry validation widget.
    Example (this works):
    <select name="birthdate_month" id="birthdate_month"
    onChange="document.getElementById('birthdate').value = 'test';">
    <option>1</option>
    <option>2</option>
    </select>
    <input type="text" name="birthdate" id="birthdate"
    value="">
    Example (this doesnt work):
    <select name="birthdate_month" id="birthdate_month"
    onChange="document.getElementById('birthdate').value = 'test';">
    <option>1</option>
    <option>2</option>
    </select>
    <span id="birthdate">
    <input type="text" name="birthdate" id="birthdate"
    value="">
    <span class="textfieldRequiredMsg">please enter your
    birthday</span>
    </span>
    <script type="text/javascript">
    <!--
    var birthdate = new
    Spry.Widget.ValidationTextField("birthdate", "none");
    //-->
    </script>
    Is there a way to change the value of a Spry validated text
    field using JavaScript?
    Thanks.

  • Spry validation text field issue

    I've put several spry validation text fields on my site and
    you can still click through to the next page without having to
    enter any information. What am I missing?

    Think I figured it out.
    http://www.adobe.com/devnet/dreamweaver/articles/spry_form_validations.html

  • In SQ02 after joining table if we want write condition on other field how ?

    In SQ03 after joining table if we want write condition on some fields
    for filtering records then what is the procedure.

    Please check forum subject. This is not a right forum for your question. Close your thread and post it on a proper forum.
    Thanks,
    Gordon

  • Adf validation date field timestamp

    while doing some validation of comparing date fields with timestamp fields i am finding inconsistent behavior in jdev 11 1 1 5. is this known issue. what is best way to do EO level declarative Compare Greater Than / Less Than validations on fields which are of type date and timestamp ?

    First of all, "ADF" on the view side (which is where UIX is) has undergone some dramatic changes.
    10.1.2 and before: you had UIX
    10.1.3.x: ADF Faces 10g
    11.x: ADF Faces 11g (which, although is JSF like ADF Faces 10g, the component set is so different as to be almost a "new thing")
    So, when you're asking about the view technologies, 10.1.2, 10.1.3, and 11.x are dramatically different. ADF Business Components, even though they have gone through changes, are "the same enough" across the versions as to be understandably similar, but not the view technologies.
    John

Maybe you are looking for