Hi there!
I’m trying to categorize a view based on the first 8 characters of each entry in a multi-valued field.
Hence, my column value is @Left(PrivateList;8), but it’s categorizing the column based on the first value only. When I remove the @Left formula, the column categorizes correctly, but I really need to categorize it by the first 8 characters only.
Any help you can provide is greatly appreciated.
Gérald
Subject: Problem with categorized view using multi-valued field.
Your formula is correct. You should check if the PrivateList field really is a multi-value field. If you had forgotten to select the “Allow Multiple Values” option on the field properties, then you could be saving something that looks like a list but isn’t.
For example, PrivateList could contain “Afganistan; Greenland” as a single value. Your formula would then result in categorising this document in the “Afghanis” category only.
Let us know how you get on. Also - I would think a formula like @Left(PrivateList; 8) is small enough to safely compute at view level. Domino isn’t that much of a performance wimp unless you’re running it on a twin-floppy IBM XT ! (Anyone remember those ?)
Subject: Problem with categorized view using multi-valued field.
Getting a view to compute this each time it’s opening is not the way to go.
You’d be better off adding an additional field, ShortPrivateList, on the form your want in the view that will do the @Left(PrivateList;8) for you.
Subject: Problem with categorized view using multi-valued field.
You could calculate those values on a hidden (computed, after validation, allow multiple values) field on your form using:
hiddenList:=@Explode(@Left(PrivateList;8))
hiddenList
Then just reference hiddenList in your view column.
Should work…