this is my code in open opportunity screen. I can get on screen but it doesn’t save until change value in ui. if I don’t change any value on screen and leave the screen, the data is gone
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/1a696ccf-2b82-49e6-b282-8b2576993d99.png)
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/3ca8a0f5-268c-428e-8447-46e56e4ad6b5.png)
this is my code in open opportunity screen. I can get on screen but it doesn’t save until change value in ui. if I don’t change any value on screen and leave the screen, the data is gone
Have you tried setting the value like this?
Base.Opportunity.SetValueExt<CROpportunityExt.usrExtArea>(row, contactExt.UsrExtArea);
Have you tried using the following code?
Base.Actions.PressSave(); instead of Base.Save.Press();
I don’t see any issues with your code. There are multiple ways you could be doing it, but it looks fine to me. I wonder if you’re not fighting the workflow engine, since the Open action is a workflow action. Have you tried executing the baseMethod before your code?
public IEnumerable open(PXAdapter adapter, openDelegate baseMethod)
{
var row = Base.Opportunity.Current;
var result = baseMethod(adapter);
// Your code
return result;
}
thank you all I solve it.
Hi
In Opportunity we have projection so we need to extend that project class more.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.