hello,
I added a dialog box in one of my customization's and noticed that Address Lookup stops working. I'm not sure what I’m doing wrong.
Normal.
Adding a Dialog
This is the result
Any help is appreciated. Thank you,
hello,
I added a dialog box in one of my customization's and noticed that Address Lookup stops working. I'm not sure what I’m doing wrong.
Normal.
Adding a Dialog
This is the result
Any help is appreciated. Thank you,
Best answer by darylbowman
This should solve your problem:
public OpportunityMaint_Extension : PXGraphExtension<OpportunityMaint>
{
public override void Initialize()
{
base.Initialize();
// Add the Page_Load event handler
var page = System.Web.HttpContext.Current?.Handler as PX.Web.UI.PXPage;
if (page is object)
page.Load += Page_Load;
}
// Executes the PXAddressLookup script which is broken by the page customization
private void Page_Load(object sender, EventArgs e)
{
var page = (PX.Web.UI.PXPage)sender;
PX.Objects.CS.PXAddressLookup.RegisterClientScript(page, Base);
}
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.