"Category Must Be A Single String" in Embedded view

Posted on 2008-10-08
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.
Question by:tomchas
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
LVL 63

Expert Comment

ID: 22673351
What version of Notes client ?

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

I hope this helps !
LVL 63

Expert Comment

ID: 22673383

Author Comment

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.
Technology Partners: 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

ID: 22673857
Sorry, the version is 7.
LVL 46

Expert Comment

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

Author Comment

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.
LVL 46

Accepted Solution

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.
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.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below.…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 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