Hi,
In my graph I’ve a custom button(Verify Vendor) and that button click event fire again press OK on the WebDialogResult popup comes up.
Here is my screen shot and the click event.
public PXAction<HMRCVendorRegisterDetail> VerifyVendor;
rPXButton(CommitChanges = true)]
rPXUIField(DisplayName = "Verify Vendor", MapEnableRights = PXCacheRights.Select, MapViewRights = PXCacheRights.Select, Enabled = false)]
protected virtual IEnumerable verifyVendor(PXAdapter adapter)
{
//Logics here
if(VendorRegisterDetail.Current.BAccountID == null)
{
WebDialogResult result = VendorRegisterDetail.Ask(ActionsMessages.Warning, Messages.VendorEmptyMessage,
MessageButtons.OK, MessageIcon.Warning, true);
}
return adapter.Get();
}
Can someone help me out to solve this issue?
Thanks