When I use @IsCategory it returns the same string regardless whether a category is selected or not. The string that is returned is is: “|10”
Anybody else have problems with @IsCategory with Release 6?
When I use @IsCategory it returns the same string regardless whether a category is selected or not. The string that is returned is is: “|10”
Anybody else have problems with @IsCategory with Release 6?
Subject: @IsCategory not working as expected
You say “@IsCategory … returns the same string regardless whether a category is selected or not.” I don’t think you understand what this function does. The Domino Designer help says that it may only be used in a view column formula. Where are you trying to use it, and for what?
If you want to tell whether a document is highlighted, you could try reading a field from the current document – the Form field, for instance, if that’s available in all your documents – or use @NoteID and see whether it returns a valid ID.
Be aware, however, that depending what you’re doing, the highlighted view row and the document on which the formula acts may not be the same.
Subject: RE: @IsCategory not working as expected
I’m using it in a view column formula to determine if a column is categorised.
Subject: RE: @IsCategory not working as expected
I see. When you said it returns the same value whether or not a category “is selected,” that made it sound like you were trying to tell whether the user had selected a category.
@IsCategory doesn’t return a simple text value – it does in fact always return the same value, but this value is a string containing a special character sequence that signals something to the view display code. Let’s says it’s something like, “|x:y|” (it’s not that exactly, but let’s say it is). The view code understands the string to mean, “if this is a category, display x, else y.”