BV Commerce Forum
»
BV Commerce Support
»
General Support
»
Is there a way to get a single type property without doing a loop?
Rank: Member
Joined: 11/20/2005(UTC) Posts: 122
|
I am trying to get the value of a specific type property for the current product. I copied over some of the code from the ProductTypeDisplay.aspx.vb file, but the code is meant for retrieving all of the properties and this seems like a really long way to go to get a single type property. Is there a method that can be called where I can just pass the name of the type property and get its value? I will be needing to read more type properties as this project progresses, so I would like to do it the most elegant way possible. Here is my current (working) code, I am just trying to find a better way... Code: [color=#0000ff][color=#0000ff][2]End[/color][/2][/color][color=#0000ff][color=#0000ff][2]Property [/color][/2][/color]
In addition, I am not sure what the purpose of passing this through the Catalog.ProductProperty.GetProductTypePropertyValue() method is, since the value I am after is being passed INTO the method as the second parameter. Am I missing something, or is the API not using a Dictionary object to store a key/value pair? |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.