Hi,
I modify the exiting UI controls values after calling API. But after changing the values Save button not activated. Can someone check this and give me the answer?
Here is by graph code and screen.
public class HMRCVendorRegisterMaint : PXGraph<HMRCVendorRegisterMaint>
{
public SelectFrom<HMRCVendorRegisterDetail>.View VendorRegisterDetail;
public PXAction<HMRCVendorRegisterDetail> VerifyVendor;
>PXButton(CommitChanges = true)]
>PXUIField(DisplayName = "Verify Vendor", MapEnableRights = PXCacheRights.Select, MapViewRights = PXCacheRights.Select, Enabled = false)]
protected virtual IEnumerable verifyVendor(PXAdapter adapter)
{
//Responce from the API
HMRCVendor hMRCVendor = serializer.Deserialize<HMRCVendor>(response.Content);
if(hMRCVendor!= null)
{
VendorRegisterDetail.Current.HMRCVendorVerified = hMRCVendor.IsValid;
VendorRegisterDetail.Current.HMRCVendorPrecentage = hMRCVendor.VendorPrecentage;
VendorRegisterDetail.Current.HMRCVendorRegTypeID = hMRCVendor.VendorTypeID;
VendorRegisterDetail.Current.ValidFrom = hMRCVendor.ValidFrom;
VendorRegisterDetail.Current.ValidTo = hMRCVendor.ValidTo;
VendorRegisterDetail.Current.VerifiedDate = DateTime.Now;
VendorRegisterDetail.Current.Utrno = hMRCVendor.UTRNo;
VendorRegisterDetail.Current.VerificationResult = response.Content;
VendorRegisterDetail.Current.VerifiedTypeID = RegisterTypes.System;
VendorRegisterDetail.Current.VerificationNote = "System Verified On: " + DateTime.Now.ToString();
}
return adapter.Get();
}
}
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/a414e5bd-9185-4bb2-af9f-34bb409d1189.png)