Commerce Server General - Root Categories with specific property

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > February 2004 > Root Categories with specific property





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Root Categories with specific property
dc

2004-02-07, 9:36 am

Thanks for the help Scott!

I got it working by using a CatalogSearh &
CatalogSearchOptions object. And then in SQlWhereClause, I
set the value "DisplayFlag = 'True'".

-dc

>-----Original Message-----
>This is just a thought, but I know that root categories
>don't have a ParentOID, or at least it's -1 or something
>like that. You might be able to do a catalog search
>searching onthose two properties (ParentOID and
>DisplayFlag) and only return category objects.

Otherwise,
>I'm afraid you're stuck iterating though each of the
>categories and checking them one by one, where you could
>then dump the ones you want into another collection or
>array.
>
>Best of Luck!
>
> - Scott
>
>only
>.
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com