I am trying to update a Product with data that is read from SQL database. When i use code below it returns "Application error" error. I am coding this application in C#. Please help.
...
...
ProductList pLookup;
pLookup = ACTAPP.ActFramework.Products.GetProducts(null);
pLookup[index].Name = ProductName;
pLookup[index].Price = ProductPrice;
pLookup[index].Cost = ProductCost;
newProduct.SetData(pLookup[index].Cost);
...
...
I am coding in C#
...
...
ProductList pLookup;
pLookup = ACTAPP.ActFramework.Products.GetProducts(null);
pLookup[index].Name = ProductName;
pLookup[index].Price = ProductPrice;
pLookup[index].Cost = ProductCost;
newProduct.SetData(pLookup[index].Cost);
...
...
I am coding in C#