How can I validate that a calculated field equals a specific number?

Thanks in advance for your input and advice. I have a calculated field that adds up the sum of two percentages (e.g 25% and 50%). I want to validate the sum of those percentages equals 100%. Thanks, Any help would be appreciated.

Thanks for your response. If the sum of the values in the calculated field does not equal 100%, an alert should appear to indicate that the sum of those fields must equal 100%. As far as checking whether both of the fields being calculated, that is not as important; only one of those fields could have an entry as long as it equals 100%.  Does that help? Thanks again for your help.

Similar Messages

  • How can I validate that start date occors on or before end date?

    I am using jDev 11.1.1.6.0
    I have a effectiveStartDate and and an effectiveEndDate and I want to validate that if both dates are specified, that the effectiveEndDate occurs on or after the effectiveStartDate.
    I have added validators in my backing bean as shown below, but there is still a problem
    Consider the following scenario:
    1) set effectiveStartDate to 1/1/2011
    2) set effectiveEndDate to 1/1/2010
    I get the validation, as expected. Now
    3) I change effectiveStartDate to 1/1/2010, but the validation message remains on effectiveEndDate because I did not update the effectiveEndDate.
    Can I remove the faces message somehow?
    Can I re-trigger the validation?
    My .jsff page contains
    <af:inputDate label="#{ZspBusinessRulesAttrBundle['ColAttr.StartDate.RuleFolderEffectiveStartDate.RuleFolderEO.EffectiveStartDate']}"
    id="id1"
    value="#{pageFlowScope.manageRuleFolder.effectiveStartDate}"
    autoSubmit="true" required="false"
    validator="#{pageFlowScope.manageRuleFolder.startDateValidator}"
    partialTriggers="id2">
    <af:convertDateTime pattern="#{applCorePrefs.dateFormatPattern}"/>
    </af:inputDate>
    <af:spacer width="10" height="10" id="s4"/>
    <af:inputDate label="#{ZspBusinessRulesAttrBundle['ColAttr.EndDate.RuleFolderEffectiveEndDate.RuleFolderEO.EffectiveEndDate']}"
    id="id2"
    value="#{pageFlowScope.manageRuleFolder.effectiveEndDate}"
    autoSubmit="true" required="false"
    validator="#{pageFlowScope.manageRuleFolder.endDateValidator}"
    partialTriggers="id1">
    <af:convertDateTime pattern="#{applCorePrefs.dateFormatPattern}"/>
    </af:inputDate>
    My backing bean contains
    public void startDateValidator(FacesContext facesContext,
    UIComponent uIComponent, Object object) {
    Date startDate = (Date)object;
    if (!Utility.validateStartDateAndEndDate(startDate,
    effectiveEndDate)) {
    throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR,
    Resource.getValidationEndDate(),
    null));
    public void endDateValidator(FacesContext facesContext,
    UIComponent uIComponent, Object object) {
    Date endDate = (Date)object;
    if (!Utility.validateStartDateAndEndDate(effectiveStartDate,
    endDate)) {
    throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR,
    Resource.getValidationEndDate(),
    null));
    }

    Although not ideal, I have worked around the problem. I'd prefer an approach that would retain the error messages on the component, but here is the best I could come up with. I changed the start and end date validators so that they do not throw a ValidatorException but rather add a faces error message that is not tied to any component. This causes the validation message to appear as a popup when changing the start or end date in such a way as to violate the constraint. Unfortunately, the message disappears when you click the ok button.
    The changes in the backing bean are as follows:
    public void startDateValidator(FacesContext facesContext,
    UIComponent uIComponent, Object object) {
    Date startDate = (Date)object;
    if (!Utility.validateStartDateAndEndDate(startDate,
    effectiveEndDate)) {
    AdfUtility.addFacesErrorMessage(facesContext, Resource.getValidationEndDate(),
    null);
    public void endDateValidator(FacesContext facesContext,
    UIComponent uIComponent, Object object) {
    Date endDate = (Date)object;
    if (!Utility.validateStartDateAndEndDate(effectiveStartDate,
    endDate)) {
    AdfUtility.addFacesErrorMessage(facesContext, Resource.getValidationEndDate(),
    null);
    }

  • How can I validate an X509Certificate ?

    I'm not really sure of what makes a certain cetificate different from a certificate that I create in my comupter... I mean, how can I validate that a certain certificate belongs to the entity it says it belongs to?
    Is my question clear enough?
    I hope someone can help me with this...

    Hello,
    You do not validate certificates per say, they are either valid or they are not.
    Certificates contain a certificate chain/path leading back to a certification authority. Your computer/java has a list of trusted authorities. If the afore mentioned path does not lead back to one of them, authenticity (of software/documents) amongst other things can not be gauranteed. In this case, you would contact the publisher of the cert and verify it is them by comparing keys.
    Yes you can create you own certificate and distribute it, but you will be the one to handle all requests to verify that the pub.key in the cert is actually yours.
    I hope this has cleared it up... and is accurate for that matter (if anyone cares to point out).
    Warm regards,
    Darren

  • How can I validate a date field in Portal Forms

    I have a date field in portal forms that I want to perform validation on to make sure it's in the proper format before being accepted (mm/dd/yyyy). How can I validate against that field?

    Hi Ben,
    I took the time to test and revise. This is code that will validate a date entry (format MM/DD/YYYY). Just paste this in the "Before the start of the form..." window of the Additional PL/SQL code section of the form. Then add validateDate(); into the onBlur event window of the field in question. Replace the CYCLE_END_DATE with the field name in question.
    HTP.P('
    <SCRIPT LANGUAGE=javascript>
    function validateDate() {
    var ddObj;
    var mmObj;
    var yyObj;
    var day;
    var mon;
    var year;
    var field_val;
    var field_name;
    for (var j=0; j < document.forms[0].elements.length; j++) {
    field_name = document.forms[0].elements[j].name;
    field_val = document.forms[0].elements[j].value;
    if (field_name.substring(field_name.indexOf(''DEFAULT.'') + 8, field_name.lastIndexOf(''.01'')) == ''CYCLE_END_DATE'') {
    var delimPos = field_val.search(/\//i);
    if (delimPos < 0)
    alert(''Invalid date entry! Please enter in MM/DD/YYYY format. '' +
    ''e.g, Dec 21, 2003 would be entered as 12/21/2003'');
    else
    if (field_val.length != 10)
    alert(''Invalid date entry! Please Please enter in MM/DD/YYYY format. '' +
    ''e.g, Jan 1, 2003 would be entered as 01/01/2003'');
    else {
    month = field_val.substring(0, field_val.indexOf(''/''));
    day = field_val.substring(field_val.indexOf(''/'') + 1, field_val.lastIndexOf(''/''));
    year = field_val.substring(field_val.lastIndexOf(''/'') + 1, 10);
    /* Need to subtract 1 from value because in Javascript, January begins with 0
    and ends with 11 for December */
    month = month - 1;
    ddObj = new Date(year, month, day);
    mmObj = new Date(year, month, day);
    yyObj = new Date(year, month, day);
    if (ddObj.getDate(ddObj.setDate(day)) != day)
    alert(''Invalid day!'');
    if (mmObj.getMonth(mmObj.setMonth(month)) != month)
    alert(''Invalid month!'');
    if (mmObj.getYear(mmObj.setYear(year)) != year)
    alert(''Invalid year!'');
    </SCRIPT>
    ');

  • How can i validate  the field directline under personal information of ESS?

    Hi all,
    How can i validate the field directline under personal information--> communication data  of ESS?The thing is we don't have NWDI setup in our organization.Is there any possibility of doing it under SPRO trn.
    Thanks and Regards,
    sam

    Hi,
    This is probably a wrong forum that you have posted your question to.
    Regards,
    Siddhesh

  • How can i validate input number into a Field of  type char in oracle form?

    hi.....
    can any one help me.....please...!!!?!!
    How can i validate input number into a Field of type char in oracle form?

    i have tried doing that, but still the field except numbersthere was an error in that code. it should have been
    var_num:=to_number(var_char);however, it appears that you want the entry NOT to be a number. if this is the case then try
    begin
      if to_number(:block.item) = 0 then null; end if;
      message('The entry cannot be numeric');
      raise form_trigger_failure
    exception
      when value_error then
       /* this is where you put the code you want to be run when the
          entry is non-numeric */
    end;

  • How Can I validate an Cust_Id that has nubers and letters within it

    I am trying to validate a cust_id that has both numbers and letter in it. like this 111A12345678. the valid letters to be imputed are A,C,D,E,G,Z how can I validate this so that when the fourth character is any other letter than the above, like this 111B12345678 it display an error message that A,C,D,E,G,Z are the only valid letter that can be imputed in the fourth character.
    Your help is greatly appreciated
    Thanks
    Hank

    I think Sergio was wondering what Db version, 10G will give you regexp, if you're running 9i then a sql exists may do it for you
    select 1
    from dual
    where substr(:cust_id_item,4,1) in ('A','C','D','E','G','Z')

  • How can I create a Text-Input Field in BexAnalyzer for a Planning Function

    Hello,
    i want to create a pre calculation(contribution accounting) for Materials in BI-Integrated Planning. These Materials aren't in the master data. So I create a new Info Object for pre calculated materials with only a material-number as key and a text-description.
    Now I want to write a Exit-Function, which creates new materials in these Info Object. The user should start this function in a planning application in BexAnalyzer. There the user should have the possibility to enter a text-description for the new material. How can I create such a Text-Field in BexAnalyzer and how can I read this text filed in a planning function (exit).
    Thanks in advance

    Hi Jürgen,
    you can create a parameter for this in the exit function and a variable for the parameter. In BEx Analyzer then create a button for the planning function; in the button parameterization use VAR_NAME = , i.e. use an Excel formula here to get the value from an Excel input field.
    The command range should be some 'hidden area' in your Excel sheet.
    But may be you don't need this. Use a characteristic without master data. Then ensure that that the query uses the option 'key' as display. In new lines you can then enter the key, the system creates a SID on the fly (but the text table will not be updated). In this scenario you may take text also from the key. May be you can update the text table (online or in batch) by simply using function modules from function group RSNDI_MD (not released by SAP).
    But observere that the system in BI Planning reads only the active version, i.e. if you change something on the fly the changes may not be visible.
    Regards,
    Gregor

  • How can i validate wild characters.

    Hi
    i am having peculiar problem . in my report  i have a parameter where user is asked to enter postal code. to validate that field i need to see that he is not entering any wild character(*,!.@.#,$....) like that. how can i do that
    help me out.
    Thanks,
    Nagaraju.

    <b>PARAMETERS: p_post type char10.
    AT SELECTION-SCREEN On p_post.
    if p_post CO sy-abcde.
    only alphabets
    elseif p_post CO int_char.
    only numberics
    else.
    message e000(ZDMW) with 'Invalid Post code'.
    endif.</b>
    Reward points if this Helps.
    Manish
    Message was edited by:
            Manish Kumar
    Message was edited by:
            Manish Kumar

  • How can i validate on ALV grid for the user

    Dear Freinds,
                     I have developed one custom report using ALV Grid program , as per the requirement i have to enter on the
    data and when i press the value save the program sumits the data into my custom table . Till here every thing is fine
    but one particular field i have declared as Char1 in my internal table , on the ALV output it is allowing me to enter
    more than one character   eg : it is allowing me to enter as Hyderabad .........even though i have declared as char 1 in the internal table ....however it is saving in the database table as H only that is correct.......but it is giving confusion to user
    i want to validate that user shouldnt allow to enter more than one character in the alv output of the input field .
    Please could any one let me know how can i validate.
    regard
    divya

    Hi,
    check  that field length in the final internal table .
    might be that filed lenth in final internal table declartion is more than 1 char.
    regards,
    Rama reddy
    Edited by: ram reddy on Jul 15, 2009 7:57 AM

  • If i export my project, it runs much faster than in the canvas. How can I fix that?

    If i export my project, it runs much faster than in the canvas. How can I fix that?
    I'm from germany, sorry for my english!

    When you export your project, it is "compiled" into video format. Any player will play it at its frame rate.
    Motion is a compositing application. It has to make many more times the calculations needed to animate everything and 90% of the time, it's just not possible for Motion to keep up with "real time".  It's to be expected. Learning to live with that fact will make life a lot easier for you, I promise.
    There are a few things you can do to help speed up Motion:
    Reduce temporary play ranges to no more than about 5 seconds at a time. You can move the Play Range In and Out markers from section to section. Motion does all of its real time rendering in RAM. The longer the play range, to more it has to work managing that memory.
    Remove Preview Icons from the Layers list ( View menu > Layers Columns > Preview will toggle the views)
    When you play your animation, turn off on screen guides: (command - / will toggle onscreen guides)
    In Motion 5, reducing the quality of playback from the Render menu does not make a lot of difference anymore, so you might as well keep the default settings of Dynamic, Full and Normal on. However, Motion Blur, Frame Blending, Field Rendering, as well as the lighting options will affect playback, sometimes by quite a lot. So if you have Lights, turning off Lighting, Shadows, and Reflections will get back a lot of real time playback speed (just remember to turn on all that you need before rendering, or these things will be left out of the export!)
    HTH

  • How can i do to add custom field in subscreen bidder

    Hi experts,
    I am working on SRM 7.0 with rfx-Bid invitation and in this version of srm the BAdI BBP_CUF_BADI are no longer used. Then, i know that if i want add fields in rfx header i will use the structure INCL_EEW_PD_HEADER_CSF_BID and other structure for Shopping cart, Purchase order etc. But, i need add fields in subscreen Bidder in bid invitation and i do not know how can i do that.
    could anybody tell me something about this?
    Best regards
    Manuel

    Hi,
    you can add a field in a table through Append Structure,that it shoud not populated in screen Find Any user exit is avilable
    Regards,
    Phani

  • How can i do to add a field in TAB BIDDER

    Hi expert,
    Does anyone know how can i do to add a field in TAB BIDDER. I am working on SRM 7.0 in RFX-Bid invitation. In Spro does not exist a structure to do that. 
    I think that i can do that with webdynpro, but i do not the way.
    I do not have problem to add fields in header or item in rfx. By the way my real problem is add field in TAB BIDDER.
    Could anybody help me, please?
    Thanks in advance.
    Manuel

    Thanks G.Ganesh, but i did not receive the document because my job´s mail does not allow receive this kind of message. Therefore i change the  business card with my personal mail.
    Please, can you send the document again?
    Thanks a lot, and i apologize by this situation.
    Manuel Juez
    Edited by: Manuel Juez on Nov 3, 2009 2:47 PM

  • How can I validate my warranty with a refurbished iphone?

    On August 28th I visited Miami and I went to the Apple Store to replace my Iphone 4 broken out of warranty with a Refurbished Iphone.
    The problem is that the refurbished Iphone replacement never worked! I tried to verify my coverage status but it is out of warranty. I know that there are 90 days of warranty. However, how can I validate this warranty because the IMEI is not accepted to chat or contact Apple Support? Somebody can help me?
    Thank you

    SILsam wrote:
    I've already checked it, however the device does not have coverage. It was a refurbished iphone 4 and theoretically it has 90 days of warranty.
    According to your original post, your limited warranty is scheduled to expire on November 28th.  That service replacement warranty was never intended to include live support via chat or phone conversations with an AppleCare advisor.

  • 4 tables in 1 report. How can I do that?

    I have 4 tables (4 selects)  and I need place in one report.
    How can I do that?

    select t1.field1, t1.field2, .. t1.fieldn, t1_idenifier "t1"
    from table 1
    where
    union
    select t2.field1, t2.field2, .. t2.fieldn, t2_idenifier "t"
    from table 2
    where
    select t3.field1, t3.field2, .. t3.fieldn, t3_idenifier "t3"
    from table 3
    union
    select t4.field1, t4.field2, .. t4.fieldn, t4.t_idenifier "t4"
    from table 4
    Then, in Crystal Reports, create formulas
    total1 where it is a summary of all the values where t1.t_identifier = "t1"
    total2 where it is a summary of all the values where t2.t_identifier = "t2"
    etc.
    This is simplified, of course.  You need to make sure that the values held in each fieldn contain the same field for each value of n (IE, field1 for each table must be, say, the id; field2 for each table must be, say, the cost, etc).  Where there is no matching field across tables, you'll need to
    set the values to null or a blank (or whatever) in the ones that don't have a corresponding field.  It's cumbersome, but it's faster processing and makes things a lot simpler on the CR side.
    Edited by: Sandra Kear on Mar 3, 2009 5:52 PM

Maybe you are looking for

  • DVD drive not recognized as a start up drive

    I have a Pioneer DVR-106D I installed in my Mac. It works fine except for one problem. I wanted to start up from it to re-install a program that's been finicky (another post for another time) and found out that when I hold down the "C" key, the drive

  • Do I Need A New Wireless Router?

    I just got the MacBook 2.0GHz Duo Core Laptop and I am attemping to use it on my wireless network at home. Airport is finding my network but it won't let me connect to it. I have an older D-Link Router which 802.11b and I am guessing the Airport in m

  • Getting data back from ALV grid

    This looks like a topic discussed before but i still need some clearifications. I display an internal table in ALV grid, in editable format. user changes the data and presses A BUTTON. On doing that I need to re-capture the changes made in a internal

  • [SOLVED]Kmail imcoming notification stopped working

    Hi! I have up-to-date system. My notification theme is colibri. Until few hours ago incoming notification worked but after i changed my plasma-theme to caledonia it stopped working. I doubt it that this is a reason because i changed the theme back to

  • Query: Star Rating Usage

    (Added:  I see it's been 18 months since I settled on the now "old" system.) There are seven ratings in the built-in star rating system: Rejected, Un-rated, and 1- to 5-star. Do you use all of them?  What specifically do they signify? I'm about to ch