Error in retrieving value from the inputfield.

Hi Experts,
There is this behaviour I saw in WD which was understood by me.
Let me explain it :
I am doing a comparison scenario where I compare 2 products in a grid format.
For this I have a table with a various types of variants.
In this grid I have a inputfield which takes an integer input and based on which there is an effect on other variant field of that product.
Now I am retriving the value of the input field in the modify view through
input.getValue(); parse this string to an Integer and then pass it to the model.
Here is the problem everything works fine when the user goes and changes the value for the firsttime but if he does the same thing without the input field loosing focus it throws a Numberformat exception this occurs because the string value retrived this time is an empty string which obviously can't be parsed.
Can anyone explain me the why is it behaving in this way?
Any help will be truly appriciated.
Best Regards & Thanks in Advance
Amit

Hi,
If u want to change the focus before retrieving the data from input field, try
IWDButton b=(IWDButton)view.getElement("Button");
b.requestFocus();
before
IWDInputField in1=(IWDInputField)view.getElement("InputField2");
int a=Integer.parseInt(in1.getValue());
Regards
Fahad Hamsa

Similar Messages

  • How to retrieve values from the struts DAO to Struts JSP

    Hi friends,
    I have one question. i want to display values in the struts jsp file from the struts DAO class. can anyone tell how do it.
    Appreciated for your help.
    Thanks
    G1 :)

    Hi Santosh,
    Thanks for your prompt reply.
    Actually, my problem is i want to display complete rows from the DAO to JSP page. I'm displaying all the rows in the DAO from DB.
    But i dont know how to retrieve all these data from DAO. Can i take arraylist.??
    DAO:
    ------------     public Customers getData(Customers customers){ // Reading data from DB
         //ArrayList list = null ;
         try
              Connection conn = getSQLConnection();
              Statement statement = conn.createStatement();
              String qry = "select * from register";
              ResultSet resultSet = null;
              PreparedStatement pstat = conn.prepareStatement(qry);
              // pstat.setString(1, customers.getFname());
              resultSet = pstat.executeQuery();
    //Print the data to the console
    while(resultSet.next()){
              String fnam = resultSet.getString(1);
              String lnam = resultSet.getString(2);
              String gen = resultSet.getString(3);
              String addres = resultSet.getString(4);
              String cit = resultSet.getString(5);
              String zip = resultSet.getString(6);
              String county = resultSet.getString(7);
              String emal = resultSet.getString(8);
              System.out.println("First name:"+fnam);
              System.out.println("Last name:"+lnam);
              System.out.println("Address:"+addres);
              customers.setFname(fnam);
              customers.setLname(lnam);
              customers.setGender(gen);
              customers.setAddress(addres);
              customers.setCity(cit);
              customers.setZipcode(zip);
              customers.setCountry(county);
              customers.setEmail(emal);
                   statement.close();
                   conn.close();
              }catch(Exception e1){
                   e1.printStackTrace();
              return customers;
    Bean:
    I have specified in this line in Bean:
    request.getSession().setAttribute("customers", customers);
    But in JSP. how will i populate all these data. Pls..send some code.
    I'm sorry this is just practicals. i'm not doin any real time project. that;s why i have placed all these code.
    Thanks for your patience for resolving my problems.
    Thanks
    G1

  • Retrieving values from Database in Excel Task Pane App

    So far,
    I created a website with a database on Azure, I then published my App to Azure. My problem is that I'm not sure how I retrieve values from the database (in SQL: SELECT * FROM EXAMPLE_TABLE WHERE date = str). If someone could provide me with sample code,
    that would be amazing! :D
    It would also be very helpful if anyone knew a method to automatically update the database using information from a xml stream on another website, once a day.
    Thank you!

    Hi,
    >> My problem is that I'm not sure how I retrieve values from the database
    You can use jquery ajax call to call your webserivce or REST API, which will query the database and return a json result.
    Sample:
    Apps for Office: Create a web service using the ASP.NET Web API
    >> It would also be very helpful if anyone knew a method to automatically update the database using information from a xml stream on another website
    For the database sync-up question, I suggest you posting them on the forums like SQL Server Forum.
    Thanks for your understanding.
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • "An error occurred while attempting to retrieve the KPI value from the list"

    Hi all.
    when I used KPI, this error occured:
    An error occurred while attempting to retrieve the KPI value from the list
    what happened?
    any suggestion.
    thanks.

    Hello,
    Unfortunatly, I don't have the option to re-create my SP list.  I have created my KPI list in the same site as the targeted list.  I have made all items available in the list view, I've tried several different list views, I still get the
    An error occurred while attempting to retrieve the KPI value from the list.
    message. 
    I am at a loss here, I've search the internet high a low and haven't found any helpful info. 
    In MOSS 2007 I've created a list with about 24 columns.  I need a KPI based on one of the columns.  I've tried to creat a view with that one column, I've tried to creat a view with all columns
    and make it the defualt column...  I don't know what else to try here.
    Any help would be very appriciated!
    Cheers,
    ~Bryan

  • Error while extracting values from SOAP Body using XPath (Retrieve from Message filter)

    Hi,
    I am using 'Retrieve from Message' filter to extract element value from the following SOAP response envelope:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:math="http://example.com/math.xsd">
    <soapenv:Header/>
    <soapenv:Body>
    <math:DivideResponse>
    <iResult>10</iResult>
    </math:DivideResponse>
    </soapenv:Body>
    </soapenv:Envelope>
    I am using the XPath expression - /soapenv:Envelope/soapenv:Body/math:AddResponse/iResult
    soapenv = http://example.com/math.xsd
    math = http://schemas.xmlsoap.org/soap/envelope/
    ERROR
    4/19/15, 19:29:03.016
    Empty attribute retrieved from message via XPath
    ERROR
    4/19/15, 19:29:03.016
    The message [Id-59643455b76a00000000000045edd6a6] logged Failure at 04.19.2015 19:29:03,015 with log description: Failed to extract attributes via XPath
    ERROR
    4/19/15, 19:29:03.017
    Retrieve math result from SOAP response
    Could you please help me resolve it?
    Thanks,
    Aneesh.

    Hi Aneesh,
    XPath Expression: /soapenv:Envelope/soapenv:Body/math:DivideResponse/iResult
    You are using AddResponse in your XPath there is no element named like that.
    Cheers,
    Stefan

  • Passing values to subreport in SSRS throwing an error - Data Retrieval failed for the report, please check the log for more details.

    Hi,
    I have the subreport calling from the main report. The subreport is based on MDX query agianst the SSAS cube. some dimensions in cube has values 0 and 1.
    when I try to pass '0' to the sub report as the parameter value, it gives an error "Data Retrieval failed for the report, please check the log for more details".
    Actually I am using table for storing these parameter values. In the main report I am calling this table (dataset) and passing these values to subreport.
    so I have given like [0],[1] and this works fine. when I give only either [0] or [1] then it is throwing an error.
    Could you please advise on this.
    Appreciate all and any help.
    Thanks,
    Divya

    Hi Divya,
    Based on the current description, I understand that there is no issue if you pass two values from main report to subreport, while the issue occurs when passing one value to subreport.
    To narrow down the issue, I want to confirm whether the subreport can run if there is only [0] or [1] in the subreport. If so, it indicates the query statements exist error in the subreport. If it’s not the case, this shows the issue occurs during passing
    values from main report to subreport. To make further analysis, please post the details of query statements of the subreport to the forum.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • Mapping values from the payload in the standard error message in PI 7.31

    Hi,
    I am working on files that are very large and when such a file fails with some error ,it becomes very difficult to track exactly for which record it is failing.
    For example if the file has 6000 records and the problem is at 641st record,it takes a lot of time to identify which is the 641st record even with Notepad++.
    One of the ways this can be taken care is if we can add any unique value from the record say "employee id" and add it in the error  that we receive in the alert message.
    Please let me know if any one has handled a similar situation or implemented any other solution to reduce delays in error analysis.

    Hi Indrajit,
    Thanks for your response.
    We have a dual stack installation but we have developed the Interface using only java stack.
    In this case if we use SALERT_CREATE and define container variables in ALRTCATDEF,will it work?
    Also the source xsd for all the Interfaces is same ,so we were thinking when a message fails at say Record[50],then we can take the 50th employee id and display it in the alert.
    Do you have an idea if this is possible?
    Nitin

  • How to retrieve query string value from the URL in my portlet

    Hi,
    When user clicks on "Advance Search", i am redirecting to page in the community. At the same i am adding some more values to the query string (to the URL).
    My URL will look like this.
    http://ctp-mc0149/portal/server.pt?space=CommunityPage&parentname=CommunityPage&parentid=0&in_hi_userid=200&cached=true&control=SetCommunity&PageID=202&CommunityID=200&searchType=2
    Now in one of my portlet in that page, i want to retrieve the query string values from the URL.
    Please help me regarding this.
    Thanks in advance.
    Thanks,
    sreekanth.

    Hi,
    Look at the following threads,
    For programmatically getting the iview properties,
    Programmatically getting iView Properties
    Also,
    Get Properties of IView Programmatically
    Permanent change of iView property programmatically
    Hope these threads help u.
    Regards
    Srinivasan T

  • Failed to retrieve data from the database Error

    I had some reports setup in Crystal XI based on a Sql server but recently we had an upgrade, the database has been moved to IBM Informix.
    There is a certain table that seems to be causing the problem.
    The error: 
    "Failed to retrieve data from the database
    Details: 42000:[informix][informix ODBC Driver][informix]A syntax error has occured .[Database Vendor Code:-201]".
    I run the same query in MS Access and it seems to run fine.
    I even tried to do a simple dump of the table onto Crystal but no luck.
    Any help is appreciated.
    Thanks!
    Achett13

    Hi,
    It seems your ODBC Driver is not compatible, try to download a driver which supports Informix through CR XI.  I think you may have to download Data Direct Drivers 5.1 version to access Informix data tables through CR XI.
    You can google it for Data Direct Drivers 5.1
    Thanks,
    Sastry

  • Report error "Failed to retrieve data from the database."

    Post Author: tknorst
    CA Forum: .NET
    I have an application using CR XI R2, and on certain users computers when they try to run a report they get the following error:
    Failed to retrieve data from the database.Details: &#91;Database Vendor Code: 229&#93;Failed to retrieve data from the database.Error in File C:\DOCUME1\turkj\LOCALS1\Temp\WhseEmpJobAndActivityByUserAndDate {22DA2F53-4391-4307-9F2A-0E3C3EBE2198A}.rpt
    The report uses SQLOLEDB (ADO) and integrated authentication - it runs fine on the development machine.
    I found very little info on this error on the web (google) - so I hope someone here has an idea.

    You need to make sure that those systems can get conneted to the database that is supposed to return data. To check that create a udl in clients machine.
    Also do not change the schema of he report.

  • Failed to retrieve data from the database error message

    Hello,
    I have a fairly simple report that correctly retrieves the data from the database providing that there are no selection formula.
    However, as soon as I add the record selection formula:
    {fireService.serviceDate} >= DateTime (2009, 10, 3, 0 ,0 ,0)
    I get the following errors:
    Failed to retrieve data from the database
    Cannot determine the queries necessary to get data for this report. Details: An invalid range operator has been encountered.
    However, when I use the Database / Show SQL Query option and copy the query directly into the sql query analyser it works perfectly.
    Any ideas?

    I am using a table to select the records from.
    In fact it is a series of joined tables.
    The SQL Query generated is:
    SELECT "fire"."unitNumber", "configLocation"."location", "configFireEquipmentType"."type", "configFireEquipmentSize"."size", "configFireEquipmentRating"."rating", "fire"."yearManufactured", "fire"."LPT", "configFireServiceLevel"."Level", "configTest"."test", "fireService"."serviceRepairs", "customer"."name", "customer"."customerGUID", "customer"."address1", "customer"."address2", "fireService"."serviceDate", "fireService"."comment"
    FROM   (((((((("SAFE2"."dbo"."fire" "fire" INNER JOIN "SAFE2"."dbo"."customer" "customer" ON "fire"."customerGUID"="customer"."customerGUID") INNER JOIN "SAFE2"."dbo"."fireService" "fireService" ON "fire"."fireGUID"="fireService"."fireGUID") LEFT OUTER JOIN "SAFE2"."dbo"."configLocation" "configLocation" ON "fire"."locationGUID"="configLocation"."locationGUID") INNER JOIN "SAFE2"."dbo"."fireEquipment" "fireEquipment" ON "fire"."fireEquipmentGUID"="fireEquipment"."fireEquipmentGUID") LEFT OUTER JOIN "SAFE2"."dbo"."configFireEquipmentRating" "configFireEquipmentRating" ON "fireEquipment"."ratingGUID"="configFireEquipmentRating"."fireEquipmentRatingGUID") LEFT OUTER JOIN "SAFE2"."dbo"."configFireEquipmentSize" "configFireEquipmentSize" ON "fireEquipment"."sizeGUID"="configFireEquipmentSize"."fireEquipmentSizeGUID") LEFT OUTER JOIN "SAFE2"."dbo"."configFireEquipmentType" "configFireEquipmentType" ON "fireEquipment"."typeGUID"="configFireEquipmentType"."fireEquipmentTypeGUID") LEFT OUTER JOIN "SAFE2"."dbo"."configFireServiceLevel" "configFireServiceLevel" ON "fireService"."serviceLevelID"="configFireServiceLevel"."levelID") LEFT OUTER JOIN "SAFE2"."dbo"."configTest" "configTest" ON "fireService"."testID"="configTest"."testID"
    WHERE  "fireService"."serviceDate">={ts '2009-10-03 00:00:00'}
    ORDER BY "customer"."name", "customer"."customerGUID"
    It looks complext but is not.  Most of these joins reference lookup tables.

  • Failed to retrieve data from the database.---- Error code:-2147482925

    Hi,
    I am  getting random error while generating a PDF report in Crystal Report XI R2.
    The error details are
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Impossibile r
    Error in File C:\WINDOWS\TEMP\{11834722-3B8E-4DFF-B7B6-B3D52DF904C1}.rpt:
    Failed to retrieve data from the database.---- Error code:-2147482925 Error code
    name:failed
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputControlle
    r.export(Unknown Source)
    at ps_emxCrystalReportUtil_mxJPOZsBymAAAAAEAAAAD.getReport(ps_emxCrystal
    ReportUtil_mxJPOZsBymAAAAAEAAAAD.java:488)
    at ps_emxCrystalReportUtil_mxJPOZsBymAAAAAEAAAAD.ps_storeReportWithoutCh
    eckin(ps_emxCrystalReportUtil_mxJPOZsBymAAAAAEAAAAD.java:183)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    Please help me.
    Thanks in advance
    -Abhi

    Not enough info.
    The exception just states there were problems retrieving data from your data source.
    Sincerely,
    Ted Ueda

  • Error retrieving data from the web server in Excel fo BPC

    Hello Everybody,
    I'm working with BPC v7.5 , i created some reports with the EVDRE formula and they were working perfectly.
    The problem started when i created new users, that in fact have the same access profile and task profile as my user.
    i started to test these new users in excel and every time i expand the report this legend appears: " EVDRE Retrying... EVDRE encountered an error retrieving data from the Web Server. Retrying in (X) Seconds...". After waiting a while a push cancel, then appears a window with the legend: Ev4excel Addin, Errors found retriening data.
    The funny thing is that when i login back to my user everything works fine again, any idea what could be the problem? the other user have the same permissions.
    Thanks a lot in advance!!
    Nidia Olguí

    very strange. Normally the member access profile must be diifferent. So it is not important the task profile but the member access profile. Can you please double check ?
    If you are doing a simple EVDRE with users having problems is it working or you still have problems?
    Regards
    Sorin Radulescu

  • EVDRE encountered an error retrieving data from the Web Server

    Hi,
    I'm working on a presales AppSet "Demo5b".
    When I create a brand-new EVDRE report on FINANCE app, there is no problem.
    However, after changing to ICMATCHING app, when I type =EVDRE() on a blank sheet and press Refresh, the following message pops up.
    EVDRE encountered an error retrieving data from the Web Server
    Retrying in (??) seconds
    Any idea why this happens and how it can be solved?
    Thanks!
    Sunny

    Hi Joost,
    I have the same problem. When I try to retrieve data on an input schedule is launched that error.
    I am working on an VM on MS BPC.
    I am not working with cubes so the solution is not the same.
    If i process all my dimensions this error does not appear any more?
    Best regards,
    Vitor

  • Retrieving  the score value from the captivate into flash

    Hi,
    We have used Captive 2 to built course & publishing it as
    a non e-learning output
    and loading the published swf file in custom built flash
    movie (wrapper).
    We have accessed some of the captivate variables to control
    the captivate swf.
    Does anyone know how to retrieve the score value from the
    captivate into flash ?
    Thanks
    Regards
    Chetan

    Hello,
    Use the Object Browser in .NET and search on "Summaryinfo" and you'll find the API to use.
    Thank you
    Don

Maybe you are looking for