Display on Site
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 > Display on Site




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

    Display on Site  
Ryan Ross


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


 
02-07-04 02:36 PM

Question (Retail 2002): Display on Site. Is there a method and property
associated with the Product Object? Or does it just set a 1 or 0 in a table,
and you have to create the procedure?

Thanks,
Ryan







[ Post a follow-up to this message ]



    RE: Display on Site  
newsgroup user


Report This Message To A Moderator Edit/Delete Message


 
02-07-04 02:36 PM

It's a little painful to get that info, but here's the way to do it using th
e Commerce Server objects.  Use the Product.GetProductProperties to get iter
ate through all of the properies (which I'm sure you know already) and then 
look up each property's def
inition using the CatalogContext.GetDefinitionProperties method (where the C
atalogContext object is available from CommerceContext.Current.CatalogSystem
).  That method returns a DataSet of all the "property's properties", if you
 know what I mean.  That sh
ould give you access to the DisplayOnSite property, along with any other's t
hat you might like to use, or add there).  Hope that helps!

- Scott

----- Ryan Ross wrote: -----

Question (Retail 2002): Display on Site. Is there a method and property
associated with the Product Object? Or does it just set a 1 or 0 in a table,
and you have to create the procedure?

Thanks,
Ryan








[ Post a follow-up to this message ]



    Re: Display on Site  
Ryan Ross


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


 
02-07-04 02:36 PM

Ouch. Aright, away we go.

Thanks,
Ryan


"ScottE" <scotte@magenic.com.ihatespam> wrote in message
news:7CB614A6-AFB3-4179-BF09-E128E19C3061@microsoft.com...
> It's a little painful to get that info, but here's the way to do it using
the Commerce Server objects.  Use the Product.GetProductProperties to get
iterate through all of the properies (which I'm sure you know already) and
then look up each property's definition using the
CatalogContext.GetDefinitionProperties method (where the CatalogContext
object is available from CommerceContext.Current.CatalogSystem).  That
method returns a DataSet of all the "property's properties", if you know
what I mean.  That should give you access to the DisplayOnSite property,
along with any other's that you might like to use, or add there).  Hope that
helps!
>
>  - Scott
>
>      ----- Ryan Ross wrote: -----
>
>      Question (Retail 2002): Display on Site. Is there a method and
property
>      associated with the Product Object? Or does it just set a 1 or 0 in a
table,
>      and you have to create the procedure?
>
>      Thanks,
>      Ryan
>
>
>







[ Post a follow-up to this message ]



jtoth5 is offline     Re: Re: Display on Site  
jtoth5


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


Click Here to See the Profile for jtoth5 Click here to Send jtoth5 a Private Message Find more posts by jtoth5 Add jtoth5 to your buddy list
 
08-08-05 04:30 PM

That was close what he posted but not entirely correct...

You will want to use the CatalogContext.GetDefinitionProperties method, for 
sure, but only to get the valid properties for that device (it does not give
 you the DisplayOnSite attribute.)

Next you need to traverse through the Product.GetProductProperties columns (
each is a property.) If the property is contained within the valid propertie
s that you got above (w/GetDefinitionProperties), get the attributes of that
 property, using CatalogContext.GetPropertyAttributes.

Row 0, column 21, in the dataset returned by GetPropertyAttributes will cont
ain the DisplayOnSite attribute for that property.

It is an ugly way to do it, but it seems the only way that i know of...




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:32 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