Hi All, I´m a little bit lost here, and looking for some guidance.
I have added a UD Field to the Vendor table (Vendor_UD), List_c is the field name.
in the Invoice entry module after creating the Group and selecting the supplier, using a custom which is already working properly, we load the invoice into the system (working fine).
Right now I have been able to perform the “search” for that specific TaxID in an existing table (UD03) and return a value if found.
Here comes my issue, after that I need, if a value is returned, to update the List_c field from the Vendor table.
Hi Ken, not really, I was expecting to perform this action only based on a customiztation code. is that possible?
I haven´t used a BPM at all, yet… so I´m not familiar with the processes.
I have added at the beginning of the public class Script:
public class Script
{
//CultureInfo us = new CultureInfo("en-US");
// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
// Begin Wizard Added Module Level Variables **
public EpiDataView edvUD03;
I also have it Initialized:
public void InitializeCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
// Begin Wizard Added Variable Initialization
edvUD03 = ((EpiDataView)(this.oTrans.EpiDataViews["Ice.UD03"]));
but still can´t figure it out where is it that I´m wrong… any guess or suggestions?
If so, it might be a good idea to use a BPM. Then your custom code is not really needed . You set the epiDataView to the controls and then use the epiMagic to do the getnew, update, and what not. Then you can leverage the BPM to do the look up and fill.
If I am off, please let me know your business case so we can help you better.
Hi Ken, no it is not on the UD03 form, it is on the APInvoiceEntry form…
I have a table with some “blacklisted” TaxID numbers. I have a method which basically search for the Vendor TaxID in the invoice on that “blacklist” and want everytime the search returns a positive value to record in the UD03 table the company, taxid, fiscal period, fiscal year…
Perhaps the BPM should be better, unfortunately I have no experience on that and no Idea on how to start it that way.
Error Detail
============
Message: Object reference not set to an instance of an object.
Program: App.APInvoiceEntry.APInvoiceForm.EP.CAD02.Customization.APInvoiceGral_v1.2.CustomCode.14.dll
Method: UD03update
Error: CS0246 - line 2200 (5702) - The type or namespace name 'UD03Impl' could not be found (are you missing a using directive or an assembly reference?)
Error: CS0103 - line 2200 (5702) - The name 'UD03Impl' does not exist in the current context
Error: CS0246 - line 2201 (5703) - The type or namespace name 'UD03DataSet' could not be found (are you missing a using directive or an assembly reference?)
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Windows.Forms;
using Ice.Adapters;
using Ice.BO;
using Ice.Contracts;
using Ice.Lib.Framework;
using Ice.Lib.HelpExceptionProvider;
using Ice.Proxy.BO;
using Ice.Tablesets;
using Infragistics.Win;
using Infragistics.Win.Misc;
using Infragistics.Win.UltraWinGrid;
using Infragistics.Win.UltraWinToolbars;
using System.IO;
using Infragistics.Win.UltraWinDock;
I´ve addedd all the references and all the “usings” and still getting the following error.
Error: CS0246 - line 2213 (5718) - The type or namespace name 'UD03Impl' could not be found (are you missing a using directive or an assembly reference?)
Error: CS0103 - line 2213 (5718) - The name 'UD03Impl' does not exist in the current context
I have initialized the UD03Impl but now getting the following errors…
Error: CS0118 - line 2214 (5719) - 'Script.UD03Impl' is a 'field' but is used like a 'type'
Error: CS0118 - line 2214 (5719) - 'Script.UD03Impl' is a 'field' but is used like a 'type'
Error: CS1061 - line 2214 (5719) - 'Ice.Adapters.UD03Adapter' does not contain a definition for 'UriPath' and no extension method 'UriPath' accepting a first argument of type 'Ice.Adapters.UD03Adapter' could be found (are you missing a using directive or an assembly reference?)