Create variable to count element meeting condition and ouptut to email
Posted: Thu Jan 04, 2024 2:55 am
Hello,
I am using Stimulsoft Designer (version 2023.2.8) embedded in a .NET application.
I created a text field with a hyperlink to open and prefill an email template. I am struggling to output one of my variables (VariableA) to that email.
In that VariableA I want to count the number of returned rows in DataBand1 where a property equals a given value.
In the report GroupHeaderBand I have created a field with the expression: {CountIf(DataBand1,Property=="OK")} and it works perfectly when I generate the report.
I figured I would be able to set VariableA as type int value + Init by expression and reuse that same expression, but it does not work.
Any recommendation?
Thank you.
I am using Stimulsoft Designer (version 2023.2.8) embedded in a .NET application.
I created a text field with a hyperlink to open and prefill an email template. I am struggling to output one of my variables (VariableA) to that email.
In that VariableA I want to count the number of returned rows in DataBand1 where a property equals a given value.
In the report GroupHeaderBand I have created a field with the expression: {CountIf(DataBand1,Property=="OK")} and it works perfectly when I generate the report.
I figured I would be able to set VariableA as type int value + Init by expression and reuse that same expression, but it does not work.
Any recommendation?
Thank you.