Page 1 of 1
Access "Range" or "List" variables
Posted: Wed Oct 17, 2012 2:20 pm
by yminc
Hi,
Could anyone explain how to setup so that I can get either the From value from a "Range" variable (String type), or the List options from my code in VB.NET?
We were trying to create a drop down list in our application forms dynamically (depends on the parameters of the report). Right now, I was trying to find a easy way to get the item list of the dropdown parameter.
Re: Access "Range" or "List" variables
Posted: Thu Oct 18, 2012 11:51 am
by HighAley
Hello.
yminc wrote:Could anyone explain how to setup so that I can get either the From value from a "Range" variable (String type), or the List options from my code in VB.NET?
We were trying to create a drop down list in our application forms dynamically (depends on the parameters of the report). Right now, I was trying to find a easy way to get the item list of the dropdown parameter.
Please, describe your problem more detailed.
Did you create variables in report?
Where do you want to change its value?
What form do you use?
Thank you.
Re: Access "Range" or "List" variables
Posted: Thu Oct 18, 2012 12:31 pm
by yminc
Hi, I did created a variable in the report. And I was trying to use
objStimulReport.Dictionary.Variables(index).??? to get the list of items I stored in the Range From field.
I might have done it wrong, since there is not any property for me to get the list there. So I am asking if there is another way of doing this?
Thank you for your help
Re: Access "Range" or "List" variables
Posted: Thu Oct 18, 2012 12:58 pm
by HighAley
Hello.
Here is a sample code for this before compilation:
Code:
StiReport report = new StiReport();
report.Load("d:\\stimulsoft\\1\\ReportArguments2.mrt");
report.Dictionary.Variables["Variable1"].Value = yourCancatenatedString;
report.Compile();
report.Render(false);
report.Show();
or after compilation:
Code:
report.Compile();
report["Variable1"] = yourCancatenatedString;
report.Render(false);
report.Show();
Thank you.
Re: Access "Range" or "List" variables
Posted: Thu Oct 18, 2012 1:16 pm
by yminc
Hi, Sorry I didn't explain it correctly.
What I was trying to do is to get the list of options that I can get from the variable, put into a dropdown box on my application window. And the user choice would be the one assigned back to the value field, so that it could be passed back to the proper parameter. So, I cannot put my list in the value field.
Is there another field like the From field of Range that I can use?
Re: Access "Range" or "List" variables
Posted: Thu Oct 18, 2012 2:20 pm
by HighAley
Hello.
It better to use our form or request from user variables to let users select values.
Could you send us your report template for analysis?
Thank you.