Solved

Handle Popup through REST API

  • 27 January 2022
  • 4 replies
  • 310 views

Userlevel 7
Badge +11

Hi All,

When we update specific fields on some forms under certain circumstances, the system displays popup dialog boxes where we need to respond to a question (by clicking a button “Yes” or “No”) in order to proceed.
For example, when we update the Customer Class value on the Customers (AR303000) form for an existing customer, the system displays a warning dialog box with the text Please confirm if you want to update current customer settings with the customer class defaults. Otherwise, original settings will be preserved. and the Yes and No buttons. we should click Yes to proceed with changing the customer class.

We can able to add command and achieve this through SOAP API calls, But, how we can handle this through REST API?   

icon

Best answer by Dmitrii Naumov 27 January 2022, 16:02

View original

4 replies

Userlevel 7
Badge +5

As far as I remember, the default REST API behavior is that it automatically clicks ‘Ok’ or ‘Yes’ in all popups if they appear. 

Userlevel 7
Badge +11

Hi @Dmitrii Naumov 

Thanks for the update. we checked this with the default Acumatica screen is working fine. But our custom screen not updating the details properly.

Should we write the separate code based on the IsContractBasedAPI field?

Any other best way to work the same with the custom screen?

 

 

Userlevel 7
Badge +5

@jinin yes, I think for your custom screen you can skip showing the confirmation using IsContractBasedAPI  flag.

Userlevel 7
Badge +11

Thanks a lot, @Dmitrii Naumov. We will check.

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved