rhayhurst Posted June 20, 2023 Share Posted June 20, 2023 Hi. I'm a total noob and not a Java developer. I'm also totally desparate.I want create a table with parameters. This means that I the SQL must contain parameters.In order to add parameters, the dataset needs to exist. In order to create the dataset, the parameters need to exist. Paradox.Specifically, here are my steps. - I've created a report using a template that I created.- Next, I need to create a table. I drag the element into the "Details" band.- The Wizard starts, which will create a new Dataset.- I name the Dataset, and tell it to use the existing connection.- I give the SQL, which contains syntax for parameters. ("...WHERE logs.AccountID=$P{accountId}...)- I get an error: Exception... Reason: Parameter "accountId" does not existOf course it doesn't exist! I haven't had the chance to create it!Can anyone help? Link to comment Share on other sites More sharing options...
anish.rai Posted June 20, 2023 Share Posted June 20, 2023 Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times. Link to comment Share on other sites More sharing options...
rpachipu Posted June 20, 2023 Share Posted June 20, 2023 Before using the parameter in sql , need define the parameter accountId as below: Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now