anhstar Posted August 22, 2012 Share Posted August 22, 2012 Hello, I need to print different kind of text depending on some of the fields in my report: FieldA (boolean)FieldB (boolean)FieldC (boolean)If only one field above is true, I have to print "only fieldA is true"If however fieldA and fieldB are true or more fields are true, I have to print "fieldA and fieldB are true" I wonder how I can do this. I tried to use variable to keep the count of variables that are true but it seems variable assignement cant be done in this context.Anyone have any idea how I can achieve this?Thanks in advance. Link to comment Share on other sites More sharing options...
augarte Posted August 23, 2012 Share Posted August 23, 2012 Hi, I made an example for you. What I've done is the following: - As there are 7 different combinations (if I'm not wrong), create 7 static text fields with the text that should write in each case- Modify the "Print When Expression" property to show or not the text in each case- In my case I've created 3 properties to insert their value when running the report. In your case will be variables. I know that this is not the best solution because if you have more than three variables you'll have to modify the report. This solution is valid if you always use these three variables.I attach the example Hope this helpsRegards Link to comment Share on other sites More sharing options...
anhstar Posted August 23, 2012 Author Share Posted August 23, 2012 augarte, thanks for your message.Your solution is good for my case, but like you said, if theres more choices, the number of possibilities will increase and it will be a pain to manage.But I will try it for this one.Thanks again Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now