SteveS Posted March 23, 2007 Posted March 23, 2007 Hello, I am seeking assistance with a calculation problem. This involves a search within one record based on the values entered in a text field called, "Classification." I have a script that prints to a particular layout, based on the text entered in the classification field. This classification field has a value list of six, "Class A" "Class B" and so on. I tried the following. IF[involved layout::Classification = "Class A" or "Class B" or "Class C" Go to print layout one. The calculation works with only one Class entered. I have been at this problem for a while now and have decided to ask the experts.
mr_vodka Posted March 23, 2007 Posted March 23, 2007 First, the test should be IF[involved layout::Classification = "Class A" or Involved layout::Classification = "Class B" or Involved layout::Classification = "Class C" ] Also, assuming that you are using a checkbox for your classification field, each time you check a value, it actually is makeing the value of the field to be each value checked seperated by a pilcrow (carriage return). So if Class A, Class B, Class C has been checked then it actually: Class A¶ Class B¶ Class C Therefore, when you do your test of IF[involved layout::Classification = "Class A"] it will not work because the values do not match. You can either create individual fields for each Class and have it as a checkbox ( preferably boolean ) or Use PatternCount to find if teh value has been selected.
SteveS Posted March 24, 2007 Author Posted March 24, 2007 I would like to thank you for your quick response. Would this calculation work if I used the value list as a drop down list? Or would it look at each entry as a carriage return. Steve
mr_vodka Posted March 24, 2007 Posted March 24, 2007 How is your current classification field setup? You want to be able to assign each record muliple classifications correct?
SteveS Posted March 24, 2007 Author Posted March 24, 2007 It is set up as a text field, with a value drop down list containing the the different classes, "Class A" "Class B" etc.
mr_vodka Posted March 24, 2007 Posted March 24, 2007 Ok, then use the step that I posted earlier. If[involved layout::Classification = "Class A" or Involved layout::Classification = "Class B" or Involved layout::Classification = "Class C" ] Go to Layout [ "Layout1" ] Else Go to Layout [ "Layout2" ] End If
SteveS Posted March 24, 2007 Author Posted March 24, 2007 mr_vodka THANK YOU SO MUCH FOR YOUR HELP, it worked!!! You have saved me many hours of aggravation. Steve
Recommended Posts
This topic is 6515 days old. Please don't post here. Open a new topic instead.
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