Variables in Mobile Designer

Stimulsoft Reports.WEB discussion
Post Reply
r.bianco
Posts: 81
Joined: Thu Oct 27, 2016 2:06 pm

Variables in Mobile Designer

Post by r.bianco »

Stimulsoft.Report.MobileDesign, Version=2016.2.0.0

Hi everyone,
my goal is to populate the report variables before opening the mobile designer.
In the Page_Load event I create the object StiReport 'myreport' and force its variables:

myreport ["one"] = "blah blah";

Unfortunately it does not seem to work, if I go in preview the variables are empty.
Where am I wrong?
Soft System srl
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Variables in Mobile Designer

Post by Alex K. »

Hello,

Your code is for the compiled report.
Please try to use the following code to provide value to designer:

Code: Select all

myreport.Dictionary.Variables["one"].ParameterValue ="blah blah";
Thank you.
r.bianco
Posts: 81
Joined: Thu Oct 27, 2016 2:06 pm

Re: Variables in Mobile Designer

Post by r.bianco »

Very well, thank you.
Soft System srl
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Variables in Mobile Designer

Post by Alex K. »

Hello

We are always glad to help you!
Let us know if you need any additional help.

Thank you.
Post Reply