02-07-04 02:36 PM
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
>-----Original Message-----
>Hi,
>
>I am getting all root categories by this function:
>public static DataSet RootCategories()
>{
> ProductCatalog catalog =
>CommerceContext.Current.CatalogSystem.GetCatalog
>(Constants.CatalogName);
>
> return catalog.GetRootCategories() ;
>}
>
>Thats fine.
>
>But now I want Root categories for which I
>have "DisplayFlag = 'True'".
>
>How can I add this search criteria here. Note: I need
only
>Root categories here.
>
>Thanks in advance
>-dc
>
>.
>
[ Post a follow-up to this message ]
|