Page 1 of 1

How to set parameter and run in the report designer / through php?

Posted: Wed Jun 13, 2012 2:20 am
by Super Bread
I set the SQL in the Query Text of Designer
=> SELECT * FROM loaninfo where id = {loanid}

This parameter {loanid} is created by myself. When I preview the report in the designer, it gets the error
"Report Rendering Message.
Parser error: The name 'loanid' does not exist in the current context".

But it can work if I run through PHP on URL
http://localhost/lms/reports/stimulsoft ... iable1=ABC EFG&loanid=3

Is any mistake in my report? Thanks.

How to set parameter and run in the report designer / through php?

Posted: Thu Jun 14, 2012 2:32 am
by Vladimir
Hello,

You should create a report variable with the same name, and set its default value.

Thank you.

How to set parameter and run in the report designer / through php?

Posted: Thu Jun 14, 2012 2:52 am
by Super Bread
Hello,

The problem is solved.

Thank you so much.

How to set parameter and run in the report designer / through php?

Posted: Thu Jun 14, 2012 8:34 am
by Andrew
Great!

Have a great day!
Thank you.