How Do I get error in validator

I have several validators.  When you do something invalid, it highlights the field and has a message displayed if you position to that field.  I understand that you can include an error object in the validator that will cause a popup window with the error.
1) how do you do that?
2) can the window's text be sizable?
3) do I need multiple validators or can I use one and if so how would I change the message to reflect the field being checked?

I tried it and got this error:
//    TypeError: Error #1034: Type Coercion failed: cannot convert mx.validators::NumberValidator@ac37501 to mx.events.ValidationResultEvent.
//    at FSCalc/swapToResultsState()[C:\Flex Builder 3\FSCalc\FSCalc\src\scripts\FSUtil.as:49]
//    at FSCalc/__calculateButton_click()[C:\Flex Builder 3\FSCalc\FSCalc\src\FSCalc.mxml:1195]
//    var validatorArray:Array = new Array();
//    validatorArray.push(numValResidence);
//    validatorArray.push(numValEarned);
//    validatorArray.push(numValOther);
//    validatorArray.push(numValAsset);
//    validatorArray.push(numValDependentCare);
//    validatorArray.push(numValCourtOrdered);
//    validatorArray.push(numValElderly);
//    validatorArray.push(numValRent);
//    validatorArray.push(numValInsurance);
//    var validatorMsgArray:Array = Validator.validateAll(validatorArray);
//    var validatorPassed:Boolean = validatorMsgArray.length == 0;
//    if (validatorPassed) {
//        Alert.show("**Testing** all validator tests passed");
//    else {
//        var validatorErr:ValidationResultEvent;
//        var errorStringArray:Array = [];
//        for each (validatorErr in validatorArray) {
//            var errField:String = FormItem(validatorErr.currentTarget.source.parent).label;
//            errorStringArray.push(errField + ": " + validatorErr.message);
//        Alert.show(errorStringArray.join("\n\n"),
//                "Invalid form", Alert.OK);
I added the error after this ran so the numbers would be off a little, but I'm sure you will understand.

Similar Messages

  • Getting error "enter valid parameter"

    Hi,
    I am getting  error "enter valid parameter" in R/3 while trying to process inbound messages thru XI. I have assigned partner type as "KU" and store number as partner number in mapping. sxmb_moni shows that messages have been successfully sent to R/3 system.
    But in R/3, transaction WPER shows above error and partner type as "LS" in control recod of idoc.
    please help me in understanding how inbound idoc in R/3 is showing "LS" as partner type and picking the corresponding logical partner profile, instead of customer type partner profile.
    Since in retail,  store number is customer number , inbound sales data should  be posted against this customer.

    Hi Shaik,
    just check when you send IDOC data from XI, then you are mapping the partner type field to which data.....map it to constant KU.............then on SAP R/3 in we20, add the IDOC in inbound parameter for KU partner and give processing code for it.
    Hope this may solve your query.
    Thanks,
    Rajeev Gupta

  • Purchased and downloaded elements one yr. ago.  Now new computer.  Have CD, tried to install, after entering S/N get error-"not valid number"  What can I do?

    Purchased and downloaded elements one yr. ago.  Now new computer.  Have CD, tried to install, after entering S/N get error-"not valid number"  What can I do?

    Go here (You may need to use the chat option.):
    Activation & Deactivation Help
    This is the Photoshop Forum.
    Note to mod: Please move to the Photoshop Elements forum.

  • In F110 I getting error No valid Payment method found but i did

    While doing intercompany clearance using Pay methd Y in F110 payment run in payment proposal system showing error "No valid payment method found" this is showing in vendor line item and if i am clicking customer line item showing debit bal still exit because system not picking my pay mthd Y in vendor line item which one i assigned in vendor master data. But for another vendor its posting clearing this error occur only for particular vendor. Any can help me to rectify my error.

    Hello,
    We were get the same error message and found that the solution was that the vendor must have an address.
    In OBVU, Payment method / country, the required master record specs had Street checked on.  This reqiured an address for the vendor.  Once we entered an address the F110 payment run was successful for this vendor.
    Rgds,
    Dan

  • How can I get error message when calling pl/sql

    Hi,
    I call a pl/sql java wrapper generated by Rosetta.
    public static void startWf(
    OracleConnection _connection,
    BigDecimal p_goal_header_id,
    BigDecimal p_submiter_userid,
    String p_commit,
    String p_init_msg_list,
    String [] x_return_status,
    BigDecimal [] x_msg_count,
    String [] x_msg_data
    ) throws SQLException
    the pl/sql is written by the standard way of OAF backend,
    PROCEDURE start_wf ( p_goal_header_id in number
              ,p_submiter_userid     in number
    ,p_commit in varchar2 DEFAULT FND_API.G_TRUE
              ,p_init_msg_list in varchar2 DEFAULT FND_API.G_FALSE
    ,x_return_status out varchar2
    ,x_msg_count out number
    ,x_msg_data out varchar2);
    when running this procedure in TOAD, in case of error, following script can print error message:
    if l_return_status <> 'S' then
    dbms_output.put_line('Result');
    dbms_output.put_line('status: '||l_return_status);
    dbms_output.put_line('error count: '||l_msg_count);
    dbms_output.put_line('Loop Error');
    dbms_output.put_line('Err: '||fnd_msg_pub.get(-1,p_encoded=>'F'));
    for i in 2..l_msg_count loop
    dbms_output.put_line('Err: '||fnd_msg_pub.get(p_encoded=>'F'));
    end loop;
    end if;
    if l_return_status = 'S' then
    dbms_output.put_line('Success');
    end if;
    end;
    My question is when calling pl/sql java wrapper from Java, in case of Error, return_status="E", then in order to get exact error msg, is there any equivalent java method such as get error from pageContext or OADBTransaciton.. etc instead of calling again pl/sql fnd_msg_pub.get to get error msg?
    thanks
    Lei

    Lei,
    You can use
    checkErrors(OADBTransaction pTx,
    int pMessageCount,
    String pReturnStatus,
    String pMessageData)
    method in OAExceptionUtils Class.For details look at javadoc of OAExceptionUtils Class.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • PO contracts getting error - Enter Valid PO Business Unit (10400,670)

    I am using FSCM 9.1 and testing out the PO contract functionality. When I save the contract using the Demo values I get the following error message:
    Enter Valid PO Business Unit (10400,670)
    The Value entered in the PO Business Unit does not match with the allowable values. Please choose a value from the prompt.

    Did you ever find a resolution how to save the contract?
    I can't even save it.
    let me know,

  • Getting error at validation stage for entity members

    Hi all,
    Any one could pls resolve the below error in FDM.
    Version:
    FDM:11.1.1.3
    Essbase: 9.3.0
    We r loading the data into essbase using FDM and its working fine until now.
    In Essbase Under "Entity" dimension we have hierarchy as below:
    --Entity (Gen1)
    --P10000(Level2)(Gen2)
    --P10010(Level1) 
    --P10009(Level0)
    --P10008(Level0)
    --P10007(Level0)
    ---LL10000(Level1)(Gen2)
    --LL10020(Level0)
    --LL10030(Level0)
    we deleted level0 members under P10010 parent in the above Entity hierarchy
    i.e:P10009 , P10008 level0 members
    After doing these changes in outline and run FDM job , it throughing error at validate stage saying that the following Entity dimension member "LL10030" are not in essbase or not a base member.
    After seeing this error in FDM , we crosscheck in essbase i.e the member "LL10030" is their in essbase as base member only.
    After getting this error, instead of deleting two level0 members we deleted only one level0 member i.e P10009. and executed the FDM job its working successfully.
    Really its strange error we r getting.
    could pls any one resolve the above error we r getting.
    quick response really appreciated.
    Regards,
    Prabhakar.

    Hi Prabhakar,
    We were having the same issue with HFM instead of Essbase. However, for us it was caused by the fact that we use a dedicated FDM server that occasionally has issues connecting with the HFM server. Actually we are still investigating this issue. Sounds stupid, but for us it worked to just press 'update grid' in maps or validating like 5-10 times and then it was ok.
    KR. J
    Edited by: JDeM on 27-jan-2011 5:27

  • Getting error during validating in struts

    Any one can help me, Iam getting this type of problem
    am using validate method of ActionForm to validate my form
    i am getting the folowing error after submit
    this my code and error
    protected boolean isEmpty(String data)
              boolean flag=true;
              if(data.equals(""))
                   flag=true;
              else
                   flag=false;
                        return flag;
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
              ActionErrors errors=new ActionErrors();
              if(isEmpty(getTxtFname()))
                   errors.add("Fname",new ActionError("com.nnri.errors.register.required","First Name"));
              if(isEmpty(getTxtLname()))
                   errors.add("Lname",new ActionError("com.nnri.errors.register.required","Last Name"));
    return errors;
    org.apache.jasper.JasperException: can't parse argument number
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:367)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:753)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:518)
    Please do the needful
    Thanks and Regards

    Hi Ravi,
    Considering above mentioned Object link grouping, I also made the changes in DFM.
    Following is the screenshot showing same. Unfortunately still no luck.
    << Object type setting >>
    << DFM settings for obj synchronization >>

  • How do i get error after compiling package

    Hi ,
    i am compiling some packages by sys schema of hr schema as
    alter package hr.example compile package
    but it shows compiled with error
    how can i see that errors as i dont know the password of hr schema ..
    Thanks in advance

    First of all you should not be using SYS to compile anything ... create a DBA account.
    Second there is not need to be HR to see the errors ... type "SHO ERR" and you should see the errors and if that does not work there is always the simple
    SELECT * FROM dba_errors;In the future please do not post questions without full version number and, when possible, screen scrapes (cut and paste) so we can see what you are doing.

  • Add a shared table into rules without stop any processe,How can I get error

    I have a Single-Source Environment,and want to add a new shared table for replication.
    Where I add capture rule,PROPAGATION rule and apply rule without stop capture process, propagation process and apply process,The replication will not process in this table ,and other replicated tables are OK.I can't find any error in the Environment,
    While it done well when I stop these processess before add rules.
    If this happened,How can I detect this failure?

    Thanks for your reply!
    But I find no error however
    In Streams Replication Administrator's Guide,I find follow word's:
    If you perform administrative steps in the wrong order, you can lose LCRs. For example, if you add the rule to a capture process rule set first, without stopping the capture process, then the propagation will not propagate the changes if it does not have a rule that instructs it to do so, and the changes can be lost.
    I think it is the matter "lose LCRs",but how could I know whether LCRs are losing ?
    thanks again!
    Message was edited by:
    xyz_hh
    Message was edited by:
    xyz_hh

  • Getting error while validating data

    Hi,
    We are in the process of validating standard LO extractor for Sales Order Item 2LIS_11_VAITM
    in R3 >Data Stage->BW system
    In our testing we are following the below scenario's
    R3 Side:
    1 Veify the list of Sales Orders  items in R3
    2 Schedule Batch V3 jobs for updating Extract Structure
    3 Verify the data output for Datasource 2LIS_11_VAITM
    in RSA3
    4.Extract Sales Order items from Delta Queue to LPAD(Data Stage as File)
    BW Side:
    1 All the sales Order Itmes are mapping at Infosource level.
    2 It will goes to Multiple ODS
    3 Data Target
    How to validate source data with bw data
    Edited by: krish aryan on Apr 2, 2009 6:46 PM

    Issue has got resolved

  • SSRS 2008 Created Commssion Report, now getting error message when I run this ( need Help)

    in SSRS 2008 2 years ago created Commission with sub reports added, it was working fine, some how started to get error  
    message when we entered some invoice # see below screen shot of error message
    but same time if I enter different invoice # it process the report without any error message , donot understand the problem
    what's causing this issue, I have looked each sub report,
    can some one suggest any idea,
    I have spent hrs to figure it out, no luck so far.
    thanks in advance
    see the 2nd screen shot with report process
    any help will be greatly appreciated

    Hi Wendy
    thanks for your reply
    I tried creating new report , I have 1 main report and 3 sub report on this
    on main report when I enter some invoice# and accountnum  data shows up with no problem,
    but same time if I enter different invoice# and accountnum , there is no data return  on same query, I have checked my query so many times, donot understand this issue, what's causing this problem, since all the data pulling from same tables, why its
    not pulling for some invoices,
     other strange thing , I created this report , year ago, there was no problem until now,
    all of the sudden this problem just shows up,'
    I am not that expert in sql , can I really use advise
    see below by query , if you can tell me what's wrong with my query I will be really greatfull I have spend so much time to figure it out, but so far no luck
    SELECT        VENDTRANS.DATAAREAID, SALESTABLE.SALESID, VENDTRANS.VOUCHER, SALESTABLE.SALESTYPE, SALESTABLE.SALESSTATUS, VENDTRANS.TRANSDATE,
                             CUSTINVOICEJOUR.INVOICEAMOUNT, VENDTRANS.INVOICE, VENDTRANS.PAYMMODE, VENDTRANS.ACCOUNTNUM, VENDTRANS.TRANSTYPE,
                             VENDTRANS.LASTSETTLEVOUCHER, VENDTRANS.TXT, CUSTINVOICEJOUR.INVOICEACCOUNT, CUSTINVOICEJOUR.INVOICINGNAME,
                             VENDTRANS.LASTSETTLEDATE, LEDGERJOURNALTRANS.ACCOUNTTYPE, LEDGERJOURNALTRANS.AMOUNTCURCREDIT, LEDGERJOURNALTRANS.LINENUM,
                             CUSTINVOICETRANS.INVOICEDATE
    FROM            SALESTABLE INNER JOIN
                             CUSTINVOICETRANS ON SALESTABLE.DATAAREAID = CUSTINVOICETRANS.DATAAREAID AND SALESTABLE.SALESID = CUSTINVOICETRANS.SALESID
    INNER JOIN
                             CUSTINVOICEJOUR ON CUSTINVOICETRANS.INVOICEID = CUSTINVOICEJOUR.INVOICEID AND CUSTINVOICETRANS.SALESID = CUSTINVOICEJOUR.SALESID
    AND
                             CUSTINVOICETRANS.INVOICEDATE = CUSTINVOICEJOUR.INVOICEDATE INNER JOIN
                             VENDTRANS ON CUSTINVOICETRANS.INVOICEID = VENDTRANS.INVOICE AND CUSTINVOICETRANS.DATAAREAID = VENDTRANS.DATAAREAID
    AND
                             CUSTINVOICEJOUR.DATAAREAID = VENDTRANS.DATAAREAID AND CUSTINVOICEJOUR.INVOICEDATE = VENDTRANS.TRANSDATE INNER JOIN
                             LEDGERJOURNALTRANS ON VENDTRANS.DATAAREAID = LEDGERJOURNALTRANS.DATAAREAID AND
                             VENDTRANS.ACCOUNTNUM = LEDGERJOURNALTRANS.ACCOUNTNUM AND CUSTINVOICETRANS.LINENUM = LEDGERJOURNALTRANS.LINENUM AND
                             VENDTRANS.INVOICE = LEDGERJOURNALTRANS.INVOICE AND VENDTRANS.VOUCHER = LEDGERJOURNALTRANS.VOUCHER AND
                             VENDTRANS.PAYMMODE = LEDGERJOURNALTRANS.PAYMMODE AND VENDTRANS.TRANSDATE = LEDGERJOURNALTRANS.TRANSDATE
    WHERE        (VENDTRANS.DATAAREAID = N'AR1') AND (SALESTABLE.SALESTYPE = 3) AND (SALESTABLE.SALESSTATUS = 3) AND (VENDTRANS.ACCOUNTNUM = @Accountnum)
                             AND (VENDTRANS.INVOICE = @Invoice) AND (LEDGERJOURNALTRANS.ACCOUNTTYPE = 2)

  • Error in Validation.

    Hi i am getting error while validating.The error is as below.Kindly help me on this
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

    Solution can be found in the following KM:
    FDM: Unable To Open Intersection Validation Report- Error: "Cannot view XML input using XSL style sheet" (Doc ID 1346956.1)

  • How do I validate my already validated email address?

    I just updated my appleid to the new email address style format, and now itunes and my iphone both want me to validate the email address, but both claim it is already validated.
    I attempted to use the applid.apple.com website to manage / validate my email, but no matter how many times I click the resend button, nothing comes.
    Any ideas on how I can get my address validated?

    Try resetting the Apple ID password.
    Apple - My Apple ID
    Something here might help also.  Frequently Asked Questions About Apple ID

  • HT201317 When I go to log onto iCloud using my Windows 7 and it asks for my login information, I get the error saying my Apple account is valid but not an iCloud account. How do I get an iCloud account? Thank you

    When I go to log onto iCloud using my Windows 7 and it asks for my login information, I get the error saying my Apple ID is valid but not an iCloud account. How do I get an iCloud account?
    I don't have any apple products personally, this is for work to use Photo Stream so when Superintendents & Project Managers take pictures of their construction site, I am able to have those images immediately.
    Thank you

    You can not create an iCloud account using a PC, you will need an Apple product. Once the account exists you can logon to it from a PC.

Maybe you are looking for