Root Categories with specific property
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > Root Categories with specific property




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Root Categories with specific property  
ScottE


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:19 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register