Property used in InputField input to assign a value

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Dylan
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Wed Jun 23, 2010 6:39 am

Property used in InputField input to assign a value

Post by Dylan » Tue Aug 24, 2010 3:29 pm

Hi,

What property is used in the InputField input to assign a value

// ADD IN THE PRODUCT TEMPLATE CHOICES
foreach (ProductProductTemplate ppt in product.ProductProductTemplates)
{
ProductTemplate template = ppt.ProductTemplate;
if (template != null)
{
foreach (InputField input in template.InputFields)
{
// What property is used here to set a value entered
input.

Thanks

Dylan

User avatar
s_ismail
Commander (CMDR)
Commander (CMDR)
Posts: 162
Joined: Mon Nov 09, 2009 12:20 am
Contact:

Re: Property used in InputField input to assign a value

Post by s_ismail » Tue Aug 24, 2010 9:56 pm

It can be like this

Code: Select all

  foreach (ProductProductTemplate ppt in product.ProductProductTemplates)
        {
            ProductTemplate template = ppt.ProductTemplate;
            if (template != null)
            {
                foreach (InputField input in template.InputFields)
                {
                    // What property is used here to set a value entered
                    input.Name = "test";
                    input.Save();
                }
            }
        }

Post Reply