Cannot print passed parameter value

Stimulsoft Reports.PHP discussion
Post Reply
fox_224
Posts: 21
Joined: Tue Oct 05, 2010 7:13 am
Location: U.S.A.

Cannot print passed parameter value

Post by fox_224 »

Hi Vladimir,
I have added a parameter in the datasource and I can use the passed parameter in the SQL select. The records come out fine but I cannot seem to print the value of that parameter in my page headings. When I drag it from the datasource list the expression comes out as:
{DataSource1.Parameters["from_date"].ParameterValue}
Is this the correct syntax for the expression? Why does it not get printed?
Regards,
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Cannot print passed parameter value

Post by Vladimir »

Hello,

The collection of parameters is not currently working. Please use the report variables:

In text expressions:
{Variable1}

In SQL queries:
SELECT * FROM {Variable1}

Thank you.
gegar
Posts: 31
Joined: Thu Dec 27, 2018 5:12 pm

Re: Cannot print passed parameter value

Post by gegar »

Hello about this topic.

I can made this and is working-> SELECT * FROM {Variable1}

But I want to print or view in text expresion {Variable1} not working?

Expression in Text property of 'Text1' can't be evaluated! [object Object]

Why?
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Cannot print passed parameter value

Post by HighAley »

Hello.

It should work right.
Could you send us a sample report template?

Thank you.
Post Reply