Solved

"Category Must Be A Single String" in Embedded view

Posted on 2008-10-08
9
1,334 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
Comment Utility
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
Comment Utility
0
 

Author Comment

by:tomchas
Comment Utility
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
 

Author Comment

by:tomchas
Comment Utility
Sorry, the version is 7.
thanks.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 46

Expert Comment

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

Author Comment

by:tomchas
Comment Utility
"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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now