Solved

"Category Must Be A Single String" in Embedded view

Posted on 2008-10-08
9
1,345 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
  • 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
 
LVL 63

Expert Comment

by:SysExpert
ID: 22673383
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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Creating a bat file fo Note.ini 4 212
Word Pro Conversion utility 13 34
DAOS - Backup / Restore 2 188
IBM Notes 9 crashed when open any attachment file 16 486
This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

777 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