Solved

"Category Must Be A Single String" in Embedded view

Posted on 2008-10-08
9
1,375 Views
Last Modified: 2013-12-18
I am also getting a "Category Must Be A Single String" error.
I have the following code in the Show Single Category:
@Contains(@LowerCase(MinutesText); MLastName)

MinutesText is a computed text field of the RTF named Minutes.
the view is embedded in a document containing a field named MLastName.
the view selects the form "MeetingMinutes" and shows the Date and MinutesText fields in two columns.

the code:  @Contains(@LowerCase(MinutesText); MLastName)
seems to work just fine when I put it in as a column in a view, along with a "name" instead of the MLastName variable.

I would greatly appreciate any help to get this resolved and working.
0
Comment
Question by:tomchas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
9 Comments
 
LVL 63

Expert Comment

by:SysExpert
ID: 22673351
What version of Notes client ?

I would try the newest one, since this could be  a minor bug


I hope this helps !
0
 

Author Comment

by:tomchas
ID: 22673850
I saw that already and that's not closely related enough  nor does it give enough programming reasoning to be of use to me, that I can see.
Thanks though.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:tomchas
ID: 22673857
Sorry, the version is 7.
thanks.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 22676259
I suppose @Contains returns @True or @False, so a numeric value.
0
 

Author Comment

by:tomchas
ID: 22677207
"5. This view selection formula creates a new view that includes only documents that have a Subject field containing the text "Mary Lamb" (in any case).
SELECT form = "Memo" & @Contains(@LowerCase(Subject); "mary lamb")"

You are correct that @Contains can produce a 1 or 0 but used in a Select formula, it's used to display those documents which apply to the code.
Using the code in the view itself does not work because MLastName is not part of the documents that I'm sorting with the view, but rather part of the document that I have the embedded view in.
0
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 500 total points
ID: 22677297
We could discuss this a long time, but I can better tell you the way it's supposed to wrok:

1) make a view with the first column as text, and categorized (apparently MLastName)
2) embed the view in a form (not in a page)
3) have the value MLastName in a field on the form with the embedded view
4) use MLastName as single category formula

Now, in your case, I suppose you want to be able to show all documents that have a certain word in the text. There is a solution, even with a categorized view, but you should never use it: the formula in the first column should be @Explode(MinutesText) . What will happen is that EVERY word in a document gets indexed in the view. Which would lead to a view with 99%index and 1% content. That's not the Notes way to do this. I'm afraid that a view is out of the question.

An intermediate solution: ask the person submitting the document to fill in some key words, and you categorise on those key words.

By far the best way is to enable full-text searching on the database, and then use either the Search bar in the Notes client, or db.FTSearch in LotusScript. If you want to simulate an embedded view a little, then do the FTSearch, and create a text field where each line corresponds with a document that was found while searching.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 23373097
Now did you indeed? And what was the answer, where did you find it?

Usually, the fact that you found an answer elsewhere is irrelevant: IMHO you can only bail out if ALL our answers here are dead wrong.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question