Hi all,
I am new to Dynamics GP Customization. Recently we setup POP User Defined in our GP Installation. They are great to record other relevant information before user posted the transaction (in this case is the Receipt Transaction Entry). But sometimes users make mistake in keying the User Defined Field and need to change that info. The Receipt itself is correct, so I do not see any need to void/return the transaction. User can not change the User Defined Field from Inquiry Window.
When this request to edit the User Defined raised by users, I simply edit the table directly via SQL. This works well, but I am trying to solved this via VS Tools Customization (completely new to me)
Has anyone done this kind of customization?
The POP Inquiry Receiving Form and POP Receiving Entry Form has been customized by our partner. I have learn to use DAG.EXE and has managed to create the assembly
I have coded some line to open the POP User Defined Entry Window, but it is not the same than when we open it while making Entry in POP Receiving Trx Window. It show the window, but all label (link prompt in dex lingo) is empty, and I can not make sense how to key in the primary key for all the User Defined Field, which is POPRCTNM field in the table
Below is my code so far.
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Dexterity.Bridge;
using Microsoft.Dexterity.Applications;
using Microsoft.Dexterity.Applications.DynamicsDictionary;
namespace EditPOPUserDefinedAfterPost
{
public class GPAddIn : IDexterityAddIn
{
//// Keep a reference to the Estimate Freight WinForm.
//static EstimateFreight EstimateFreightForm;
// Create a reference to the Receiving Entry Alternate Form
static PopReceivingsEntryForm POPReceivingsEntryForm = PurchaseRequisition.Forms.PopReceivingsEntry;
// Create a reference to the POP Receiving User Defined Entry Form
static PopReceivingsUserDefinedEntryForm POPReceivingsUserDefinedEntryForm = Dynamics.Forms.PopReceivingsUserDefinedEntry;
// Create a reference to the Receiving Inquiry Alternate Form
static PopInquiryReceivingsEntryForm POPInquiryReceivingsEntryForm = PurchaseRequisition.Forms.PopInquiryReceivingsEntry;
//// Create a reference to the Receiving Entry Alternate window
static PopReceivingsEntryForm.PopReceivingsEntryWindow POPReceivingsEntryWindow = POPReceivingsEntryForm.PopReceivingsEntry;
//Create a reference to the Receivings Entry User Defined Window
static PopReceivingsUserDefinedEntryForm.PopRcvUserDefEntryWindow POPReceivingsUserDefinedEntryWindow = POPReceivingsUserDefinedEntryForm.PopRcvUserDefEntry;
// Create a reference to the Receiving Inquiry Alternate window
static PopInquiryReceivingsEntryForm.PopInquiryReceivingsEntryWindow POPInquiryReceivingsEntryWindow = POPInquiryReceivingsEntryForm.PopInquiryReceivingsEntry;
// IDexterityAddIn interface
public void Initialize()
{
//// Add the menu item to open the UserDefined Window
POPInquiryReceivingsEntryForm.AddMenuHandler(OpenUserDefined, "User Defined", "N");
}
// Method to open the User Defined Window
static void OpenUserDefined(object sender, EventArgs e)
{
POPReceivingsUserDefinedEntryWindow.Open();
}
}
}
*This post is locked for comments