Hi Guys,
I have an app with the following code running when the app starts:
ClearCollect(colProducts, Defaults('Capex Requested Products'));
I have a gallery with a repeating table and I am attempting to patch a row to my collection using the following code:
Patch(colProducts, ThisItem,
{Title:dd_ProductFamily.Selected.Result,
ProductLine:dd_ProductLine.Selected.Result,
ProductCategory:dd_ProductCat.Selected.Result,
ProductGroup:dd_ProductGroup.Selected.Result,
ProductType:dd_ItemNo.Selected.Result,
NewSupplier_x003f_:radio_NewSupplier.Selected.Value,
NewSupplierName:txt_NewSupplierName.Text,
Supplier:If(radio_NewSupplier.Selected.Value="Yes","",dd_SupplierName.Selected.Result),
BOM:dd_BOM.Selected.Result,
EnergyStrategy_x0028_LowEmission:radio_LowEmission.Selected.Value,
UnitCost:Value(txt_UnitCost.Text),
UnitQty:Value(txt_UnitQty.Text),
LineCost:Value(txt_LineCost.Text) });
It is complaining about the LineCost column, the error is This type of argument 'LineCost' does not match the expected type Number. Found type Text
txt_LineCost is a text box which has a type of number. It is also of type number on my Sharepoint List