Referencing Data Fields in Variables
Posted: Fri Mar 07, 2014 3:33 pm
Hi Stimulsoft,
I am attempting to render several fields within label using a variable. I'm attempting this because the variable name will always be the same, versus the label name having a potentially different name.
For example, if I have a datasource "Transactions" with 6 fields:
- Date
- Item
- Item Description
- Cost
- PersonID
- PersonName
I am able to render any number of fields in the group header label using {Transactions.Item} - {Transactions.Description}.
But, If I create a variable of type string using a value type of Expression named "GroupLabel" and set the expression to "Transactions.Item", nothing is shown. If I set the Expression to "Transactions.Item + "B"", only the "B" character is shown.
Is it possible to render data fields within variables?
If so, how?
Thanks.
I am attempting to render several fields within label using a variable. I'm attempting this because the variable name will always be the same, versus the label name having a potentially different name.
For example, if I have a datasource "Transactions" with 6 fields:
- Date
- Item
- Item Description
- Cost
- PersonID
- PersonName
I am able to render any number of fields in the group header label using {Transactions.Item} - {Transactions.Description}.
But, If I create a variable of type string using a value type of Expression named "GroupLabel" and set the expression to "Transactions.Item", nothing is shown. If I set the Expression to "Transactions.Item + "B"", only the "B" character is shown.
Is it possible to render data fields within variables?
If so, how?
Thanks.