Table of Contents

Class ProductGroupFieldValue

Namespace
Dynamicweb.Ecommerce.Products
Assembly
Dynamicweb.Ecommerce.dll
This class saves the new values for ProductGroupField
[Serializable]
public class ProductGroupFieldValue
Inheritance
ProductGroupFieldValue
Inherited Members

Examples

using Dynamicweb.Ecommerce.Products;

namespace Dynamicweb.Ecommerce.Examples.Products
{
    public class ProductGroupCustomFieldsRendererSample
    {
        public void RenderProductGroupCustomFields(ProductGroupFieldValueCollection productGroupFieldValues)
        {
            var values = new ProductFieldValueCollection();

            foreach (var value in productGroupFieldValues)
            {
                var field = new ProductField();
                var fieldValue = new ProductFieldValue(field, value.Value)
                {
                    ProductField =
                    {
                        Types = value.ProductGroupField.Types,
                        TemplateName = value.ProductGroupField.TemplateName,
                        SystemName = value.ProductGroupField.SystemName
                    },
                    Value = value.Value
                };


                values.Add(fieldValue);
            }

            if (values.Count > 0)
            {
                //TODO: insert your code here
            }
        }
    }
}

Constructors

ProductGroupFieldValue()

Initializes a new instance of the ProductGroupFieldValue class.
public ProductGroupFieldValue()

ProductGroupFieldValue(ProductGroupField, object)

Initializes a new instance of the ProductGroupFieldValue class.
public ProductGroupFieldValue(ProductGroupField productGroupField, object value)

Parameters

productGroupField ProductGroupField
value object

Properties

HasValue

Gets value indicating whether the product field value has been set.
public bool HasValue { get; }

Property Value

bool

ProductGroupField

Gets or sets the ProductGroupField.
public ProductGroupField ProductGroupField { get; set; }

Property Value

ProductGroupField
The ProductGroupField object.

Value

Gets or sets the value.
public object Value { get; set; }

Property Value

object
The value.

Methods

Save(DataRow)

Saves the specified DataRow.
public void Save(DataRow dataRow)

Parameters

dataRow DataRow
DataRow.
To top