We have extended inventory import to include other columns, one of these extra columns include the word description in the aliases but with other text and the index is different, the code below sets the destination property, what we have found when this is run even though the mappings grid looks correct at the top of the screen, the style description is ending up in the product description, are aliases being done on an exact match or do they work on contains the text?
- Code: Select all
newDestinationProperty.RecID = "Inventory.Style.StyleDescription";
newDestinationProperty.Caption = "Style Description";
newDestinationProperty.SetterMethod = delegate (JiwaFinancials.Jiwa.JiwaInventory.Inventory inventory, string value, string rowData, string[] row, int rowNo, JiwaFinancials.Jiwa.JiwaInventory.Import.Mapping mapping)
{
SetStyleInfo(inventoryImport, destinationPropertyCollection, ref inventory, value, rowData, row, rowNo, mapping, ref catsetter, ref stylesetter, "Inventory.Style.StyleDescription", "StyleDescription");
};
newDestinationProperty.Aliases = new String[] { "StyleDescription", "Style Description"};
SetOrAddProperty(ref destinationPropertyCollection, newDestinationProperty);