I’m having dificulty getting the selection of documents that I want.I’ve got this formula:
SELECT (Form = “Property Card”) & (@Contains (status; “Given Notice”)) & (!@Contains (archive; “Archive”))
I also want documents with the status of “Vacant”
I can’t seem to get an Or to work in the (@Contains (status; “Given Notice”)) section.
I’m looking for:
Form=Property Card
and
status=Given Notice or Vacant
and
archive=Archive
thanks in advance for your time
Jim
Subject: View selection
This is exactly why I use this method:
An article detailing the concept of soft-inlusion via View Selection Formula. Using an opt-in scheme instead of explicit formulas, you can very easily mass-produce new views, maintain older views, and ensure that only the documents you want...
It sometimes requires a change in methodology from a development standpoint, but it’s proven extremely useful time and time again. I get the documents I want to display in the views that I want, and it’s controlled by logic at the document-level.
HTH,
-Chris
Chris Toohey
This site is designed to be the go-to resource for the enterprise application developer. Here we cover industry news, reviews, features, and more on the topics that you'll need to survive your next development project.
Subject: View selection
Jim, I don’t have data in front of me to confirm this is correct, but I think this will work.
SELECT Form = “Property Card” & (Status = “Given Notice” | Status = “Vacant”) & Archive != “Archive”
values in quotes are case sensitive.
Stephen
hcl-bot
January 25, 2006, 12:28pm
4
Subject: RE: View selection
Or the simpler form, comparing Status to a list …(I also like to break lines for readability)
SELECT
Form = “Property Card”
& Status = “Given Notice”:“Vacant”
& Archive != “Archive”