User Requested Variable with Data Columns

Stimulsoft Reports.NET discussion
Post Reply
Fuglesteg
Posts: 10
Joined: Tue Jul 09, 2013 7:34 am

User Requested Variable with Data Columns

Post by Fuglesteg »

Hello,

I am using a version of Reports.NET, delivered with VR Report Generator from Visure Requirements. I want to prompt the user with a variable containing a list of string values from Data Columns. This works fine, but I would like the inital value to be empty instead of the first item in the data column. Is there any way to accomplish this? See attached pictures for reference.
EditVariable.png
EditVariable.png (39.49 KiB) Viewed 2847 times
Desired function.png
Desired function.png (9.54 KiB) Viewed 2847 times
Best regards,

Anders Fuglesteg Nilsen
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: User Requested Variable with Data Columns

Post by Alex K. »

Hello,

Please try to set the Expression property for variable.

Thank you.
Attachments
Capture.PNG
Capture.PNG (26.17 KiB) Viewed 2845 times
Fuglesteg
Posts: 10
Joined: Tue Jul 09, 2013 7:34 am

Re: User Requested Variable with Data Columns

Post by Fuglesteg »

Hello, Thanks for the reply,

The first item in the data column is still displayed when excecuting the report. Not an empty field.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: User Requested Variable with Data Columns

Post by Alex K. »

Hello,

Sorry, we did not quite understand your problem. Sorry again, but that is not possible. In this case the first entry will always be shown. Could you describe in more detail why you need this, we will try to find a workaround.

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: User Requested Variable with Data Columns

Post by Alex K. »

Hello,

Sorry, we did not quite understand your problem. Sorry again, but that is not possible. In this case the first entry will always be shown. Could you describe in more detail why you need this, we will try to find a workaround.

Thank you.
Fuglesteg
Posts: 10
Joined: Tue Jul 09, 2013 7:34 am

Re: User Requested Variable with Data Columns

Post by Fuglesteg »

Ok. Thanks

The situation is this:

The users generate a report containing requirements for a given product. Each of these requirements have a set of predefined attributes and could in addition have user defined attributes. When the user wants to generate a report, they are presented with some variables (containing report meta data and strings that initialize report content filters). One of these filters is requirements attributes. I have included 4 variables containing the data column shown in Desired function.png. When the user starts to define the variables for the report, all the four attribute variables is intialized with the first element in the data column. If the user doesn't want to include any attributes, they have to wipe the text from each of the four input boxes.

For context:
The attribute variables are used to filter databands.
Fuglesteg
Posts: 10
Joined: Tue Jul 09, 2013 7:34 am

Re: User Requested Variable with Data Columns

Post by Fuglesteg »

I replaced the four variables with a list variable instead, then all the items are selected by default, but at least its fast to tick off on the ones to include. The filter expression looks like this:
(Requirements_Attributes.Name==Attribute[0] || Requirements_Attributes.Name==Attribute[1] || Requirements_Attributes.Name==Attribute[2] || Requirements_Attributes.Name==Attribute[3]). Would it be possible to make the filter scaleable to contain more or less than four conditions depending on the number of items in the data column?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: User Requested Variable with Data Columns

Post by Alex K. »

Hello,
Fuglesteg wrote:Would it be possible to make the filter scaleable to contain more or less than four conditions depending on the number of items in the data column?
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.
Post Reply