Solved

Mobile Popup Dialog

  • 16 June 2021
  • 2 replies
  • 317 views

Userlevel 3
Badge

Hello everyone,

So I’ve developed a customization that utilized popup dialogs using the View.Ask() method. It works great on a web browser, however when it’s triggered on mobile it displays the pop up as an error. Does anyone know how to properly display pop up dialogs on mobile?

Thanks!

icon

Best answer by Cesar Betances 17 June 2021, 00:37

View original

2 replies

Userlevel 4
Badge +2

On Acumatica version 2021R1 modal dialogs are supported and you can find more details on this help article: https://help-2021r1.acumatica.com/(W(1))/Help?ScreenId=ShowWiki&pageid=e238d9b9-2d0c-4335-b74c-e64054c1bdda

Prior to 2021R1 version, modal dialogs are not fully supported in the mobile application. Sometimes you can use redirection to have similar behavior in mobile but this will work in some scenarios only and it is handled on a case-by-case basis. For more details about redirecting in Mobile you can review this help article: https://help-2020r2.acumatica.com/(W(2))/Help?ScreenId=ShowWiki&pageid=b542fc68-4edc-4b44-81ae-3f3bc8bb9381

 

If you are referring to a “Yes/No” type of modal dialog and you are on a version prior to 2021R1, you could bypass this “Yes/No” type of question in the mobile application by using the IsMobile  flag property of the PXGraph class on your code(project).  So if you have an action that prompts users to select Yes/No, on your code you can check if the action was pressed from Mobile or not, see below:

 

  protected virtual void YourAction()
        {
          
            if (yourGraph.IsMobile)
            {
                //Do Yes activity, no prompt on Mobile (not supported in versions prior to 21R1)
            }

            else

           {

                  //Your  View.Ask() method  logic goes here for Web situations(non Mobile)          

           }
        }

 

Userlevel 3
Badge

@Cesar Betances  Excellent, this is exactly what I was looking for. Thank you for the resources as well as providing an alternate solution. It’s greatly appreciated!

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