Start a new topic

Help with code

We are trying to calculate a receipt amount based on Gift Amount minus what we call Advantage. Advantage is a VF with a dictionary based off Gift Amount. Here is the code but it is not filling in a value for Receipt Amount. Any suggestions?


    Public Overrides Sub AfterDictionaries(Cancel as ImportOM.API.iCancel)

        'The data row at this point has gone through dictionaries

        'Use the Fields object to access the data

        'Example: Import.Fields.GetByExcelName("D").Value = "New Value for D Column"

               Import.Fields.GetByName("CalculatedReceiptAmt").Value = Import.Fields.GetByName("AMOUNT").Value - Import.Fields.GetByName("Advantage").Value

1 Comment

Never mind, ran the import and it worked! Yay!

Login or Signup to post a comment