Issue fetching correct data



  • I'm fairly new to jsreport, and javascript in general (mostly done programming & testing in python) and I have stumbled upon an issue that I can't resolve on my own.

    I am trying to fetch data from a database using parameters, but can't seem to figure out the data the parameters hold and how to call them. Basically, when executing the script in JSReport I get a:
    "TypeError: Cannot read property 'parameter-name' of undefined", but when executing the script from the database side, the values are shown.

    Does anyone have a solution or an idea?
    (For security reasons, I don't think I am able to display the code here sadly.)


  • administrators

    @hazvick hi! i'm afraid that we won't be able to help so much if we don't see the code that fetch the data, and how it works with the response, according to the error you are describing it seems like a mistake of not using the right variable, this is my best guess without seeing the code


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.